Javascripts loaded on homepage / product page / product category page / shop archive page
valmedia opened this issue · comments
// Load on Cart, Checkout, pay for order or add payment method pages. if ( ! is_cart() && ! is_checkout() && ! isset( $_GET['pay_for_order'] ) && ! is_add_payment_method_page() ) { return; }
This code does not work too well because the mini cart will cause the homepage / shop archive / category / product pages to become "is_cart()" true.