MainWP Community

Hide Cart Total if using Cart and Checkout Shortcodes on the same page in WooCommerce

Hide Cart Total if using Cart and Checkout Shortcodes on the same page if using WooCommerce on your child site.

Snippet Type

Execute on Child Sites

Snippet

add_action( 'woocommerce_after_cart_table', 'woocommerce_show_cart_totals', 10 );
function woocommerce_show_cart_totals() {
    wc_get_template( 'cart/cart-totals.php' );
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.