• Resolved hdpixeldesign

    (@hdpixeldesign)


    Hello
    When I enable minify (any options) my add to cart function for items with variations does not work.
    am I missing something?

    had to disable minify for now so users can still add items (https://libidolovers.co.uk/)

    Hope all is well your end

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @hdpixeldesign

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Can you please re-enable minify and disable the settings in Performance>Minify one by one, save all settings and purge the cache after each setting is disabled, and see which option might be causing the issue?
    If the issue is with JS minify try excluding the file https://libidolovers.co.uk/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=4.8.0 from being minified in Performance>Minify>Advanced>Never minify following JS files and add:
    /wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=4.8.0
    or without a query string:
    /wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js
    I hope this helps!
    Thanks!

    Thread Starter hdpixeldesign

    (@hdpixeldesign)

    Hello,
    Thanks again for the quick reply, it really is appreciated.

    Right, I have done some testing and found if I have

    JS minify settings – combine or combine and minify

    that’s what breaks the cart action.

    I have added the file you mentioned to the exclude but still no luck, works ok if I have just “minify only” enabled

    css combine and minify works ok

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @hdpixeldesign

    Thank you for the information.
    That’s why there are different options for you to use. If Minify only works then you should keep that option for JS minify.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding to cart stops working’ is closed to new replies.