• shoptak

    (@shoptak)


    Hello,

    I’m facing a slowness with Add to cart using OceanWP Theme.

    For troubleshooting purposes I did the below scenarios:

    1- Disabled all the plugins except the Woocoomerce plugin and OceanWP theme.

    Results ( Slow Add To Cart )
    Chrome developer mode showed the below warnings while clicking on Add To cart.

    [Violation] Forced reflow while executing JavaScript took 217ms

    [Violation] ‘setTimeout’ handler took 57ms
    sdk.js?hash=efed2e70efe1f8e77c1e24ddb1e25ac1:47`

    2- Disabled all the plugins except the Woocoomerce plugin and
    Twenty Twenty theme

    Result ( extremely Fast Add To Cart ) and no warnings in Chrome developer mode.

    Please advise.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter shoptak

    (@shoptak)

    Hello Again,

    In addition to the above, I’ve excluded all my dynamic pages from caching ( cart, checkout, my account )

    One more thing is there a possible way to force ajax in mini cart after each time I add an item?

    The reason I’m asking for this is that I’m using a multi-currency plugin so if I add a product to my cart in USD for example and I switch my site currency to a foreign currency the amount in the mini cart for each product converted successfully but the subtotal kept in USD as amount but having foreign currency symbol. If I go to the cart page and recheck the mini cart everything is correct as total and subtotal.

    Screenshot: https://ibb.co/c1bD2Dg

    I was wondering if forcing ajax in the mini cart as a background product after adding any item would refresh the mini and keep everything correct.

    Thank you

    • This reply was modified 3 years ago by shoptak.
    • This reply was modified 3 years ago by shoptak.
    Shahin

    (@skalanter)

    Hello @shoptak,

    Regarding the cart issue, please share a live URL from your issue.

    Regarding “is there a possible way to force ajax in mini cart after each time I add an item?” We don’t have any option about it. Would you please get in touch with your third-party plugin author? Maybe they have a solution that we are not aware of.

    Best Regards

    Thread Starter shoptak

    (@shoptak)

    Thank you @skalanter for your reply.

    Force ajax in the mini cart was resolved by enabling an option in the third-party plugin.

    As for add to cart slowness, the site is baytplus.com, especially on mobile

    Thank you

    Hello @shoptak,

    Sorry for the late reply,

    On your website, you have too many images and a long page, but please note that: It shouldn’t have many heavy files, so sometimes “1.49MB” may is a large number. I’ll suggest reducing file sizes, please check this screenshot: https://i.postimg.cc/05tZ5Bw9/image.png and this one: https://i.postimg.cc/NjrwkTcr/image.png

    Another issue is on the server: https://i.postimg.cc/bvspMMkd/image.png
    TTFB; This is related to the host configurations, and users should use the compatible host with WordPress.
    https://en.wikipedia.org/wiki/Time_to_first_byte#:~:text=Time%20to%20first%20byte%20(TTFB,received%20by%20the%20client’s%20browser. So you need to check it too.

    Best Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Slow Add To Cart’ is closed to new replies.