• Resolved elisabethlou

    (@elisabethlou)


    Hi,

    First of all, many thanks for developing this plugin that works like a charm!

    I have a question : I tried to reduce the update delay in the plugin configuration, setting it from 1000 to a lower value. I even set it to 10 and 1 to test. On the front end, it still takes time updating the cart price on quantity change, as if it were 1000.

    Could you please advise?
    Many thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author taisho

    (@taisho)

    Hello,

    I’ve checked the website. On the cart page on “+” or “-” button click, Ajax Cart AutoUpdate for WooCommerce fires basically instantly (the spinning wheel is displayed when it fires). A request is made from the website to the shop server that changes cart quantity in the backend. How long this request takes, is based on general website speed. Keep in mind that it is actually a request + response from the server that request was successful and the spinning wheel can be displayed no more.

    I checked the HTML of the cart page and found the following line:

    var acauPhpVars = {"acau_update_delay":"0"};

    It means that the current update delay is 0 milliseconds (instant) what is not recommended, as it will result in a request every single time the user changes the quantity in the cart (for example quantity change from 1 to 10 by clicking will result in 10 requests to the server. Should it be 1-second delay, the request will only be sent after 1 second has passed without the user changing quantity.

    To sum up – the quantity will never be changed instantly, be it through the default “Update cart” button or with my plugin – to keep the quantity synchronized on the website and the server, a request from the website to the server needs to be done. It can be faster when the general performance of the server/website improves. The fastest and easiest tweak is installing a caching plugin. I can recommend WP Fastest Cache (easy to set up) and W3 Total Cache (advanced, with more customization options). While they are called caching plugins, they offer improvements for server response time unrelated to caching.

    Apart from what was mentioned above, due to very long load times of the website, I can recommend Optimole (image compression, new web formats and smart resizing) and Autoptimize (CSS & JavaScript minification, combining CSS and JS files) plugins. You can compare the performance on GTmetrix and Google PageSpeed Insights before and after.

    Best regards,

    Ryszard

    • This reply was modified 5 years, 4 months ago by taisho.
    • This reply was modified 5 years, 4 months ago by taisho.
Viewing 1 replies (of 1 total)
  • The topic ‘Update delay changed but doesn’t work?’ is closed to new replies.