bedava hesaplar nulled scripts mod apk indir youtube mp3 dönüştürücü

remove WooCommerce cart page

Hi

I want to remove cart page and add it to the checkout page , and found this code and add that to the function.php :

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

after that need to remove cart page from woocomerce settings -Advanced - cart page

this is work on default wordpress theme but in bethem dos not work and when I chose the product the page will refresh and show me the with page with noting.

can you help me ?

Thanks

Comments

Sign In or Register to comment.
bedava hesaplar nulled scripts mod apk indir youtube mp3 dönüştürücü