WOOCOMMERCE_CHECKOUT define inside header.php
-
Hi,
I have defined woocomerce checkout and woocomerce cart inside the header.php like this:
define( ‘WOOCOMMERCE_CHECKOUT’, true );
echo do_shortcode(“[woocommerce_checkout]”);define( ‘WOOCOMMERCE_CART’, true );
echo do_shortcode(“[woocommerce_cart]”);the issue im having with this is that if i do not define in woocommerce setting the Checkout page the whole set up does not work properly as woocommerce does not know where the checkout is. But if I define than the setup works only on the page that you set up in woocommerce settings, but in my case the checkout should be available on every page including single product page and the rest of the pages that’s why I have put the define and the shortcode inside the header.
What should Ido in this case or is this not possible to fix?
- The topic ‘WOOCOMMERCE_CHECKOUT define inside header.php’ is closed to new replies.