• Resolved justingiesbrecht

    (@justingiesbrecht)


    Seems like I’m having some weird behavior with the plugin on the ‘shop’ page / archive pages.

    I looked into the code and noticed that the script was only loading on the ‘single page’.

    I had to change it to:
    file: woo-ajax-add-to-cart.php
    if (function_exists(‘is_product’) && is_product() || is_shop() || is_product_category()){
    wp_enqueue_script(‘woo-ajax-add-to-cart’);
    }

    Maybe it will help others, or the author can make some tweaks.

  • The topic ‘Product Archive Code Adjustment’ is closed to new replies.