Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascripts loaded on homepage / product page / product category page / shop archive page #311

Open
valmedia opened this issue Aug 31, 2022 · 0 comments

Comments

@valmedia
Copy link

function callback_for_setting_up_scripts() {

// 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant