• Resolved Vishal Lohar

    (@vlohar08)


    Hi,
    I am using the LiteSpeed cache plugin to optimize my website. I am using JS combine and minify options of LiteSpeed Cache.

    But, when I use these options, the add to cart doesn’t work properly. Can you please give me the JS file names that are responsible for adding to the cart function so that I can exclude them from any optimization?

    Currently, I have excluded add-to-cart.min.js. Add to cart works but it reloads the page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @vlohar08,

    By the add to cart doesn’t work properly, could you please be more specific? Maybe you can share with us your live site URL so we can check it directly?

    Looking forward to hearing from you.

    Kind regards,
    Herman ??

    Thread Starter Vishal Lohar

    (@vlohar08)

    Normally without any optimization Add to cart is done using AJAX without reloading. But with Litespeed optimization, it reloads the page.

    So I just needed the names of the files responsible for this Add to cart functionality.

    Anyway, I figured it out.

    Excluded add-to-cart.css and my cart plugin CSS files from all optimization. It’s working now!

    Very pleased to know that, @vlohar08,

    And thank you for sharing how you solved this.

    Kind regards,
    Herman ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add to cart is reloading the page’ is closed to new replies.