Hello, I’ve made some changes in cart.php and form-checkout.php to make them one page view. Everything is ok but i cant get empty cart message to show… I have resolved it with function that redirect if cart is empty but i would like to write code in cart or form-checkout file to show original empty cart message.
In checkout i’ve only added shortcode to display cart:
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<?php
if ( is_wc_endpoint_url( 'order-received' ) ) return;
echo do_shortcode('[woocommerce_cart]');
?>
and in cart file I’ve deleted some lines which were displaying info table on right and coupon button.