Add Cart Table to the Checkout page

Add the cart to the top of the Checkout page.

Add the below snippet to your themes functions.php file.

//Add cart table to checkout page

function add_woo_cart_on_checkout_page() {
    if ( is_wc_endpoint_url( 'order-received' ) ) return;
    echo do_shortcode('[woocommerce_cart]');
add_action( 'woocommerce_before_checkout_form', 'add_woo_cart_on_checkout_page', 5 );

Leave a Reply

Your email address will not be published. Required fields are marked *

Get In Touch

Have a question? or perhaps spotted a problem?
Maybe you have something you would like to add. Drop us a line anytime!