How to speed up the “add to cart” button?

This topic has 3 replies, 2 voices, and was last updated 1 months, 2 weeks ago ago by Jack Richardson

  • Avatar: hafunerix
    hafunerix
    Participant
    August 1, 2024 at 18:02

    I have been trying to deal with the speed of the Xstore theme for a long time.

    I decided to buy it because in the demos your theme worked efficiently and quickly like my previous store on the Woodmart theme.

    Unfortunately, after some time I found out that in order for xstore to work quickly you use the WP Rocket plugin in the Premium version.

    I purchased a subscription to the WP Rocket plugin, but it caused a delay in the cart functionality. The site did indeed work faster, but after clicking ADD TO CART the adding process took about 10 seconds. Such an operation of the most important function in the store is an automatic conversion killer!!!

    Half of the users who start the shopping process and see such operation of the cart function will simply close the store page and buy the product from another competitor’s store.

    I have currently purchased another premium plugin for accelerating pages (probably the most expensive one on the market) NITROPACK – but with it the cart does not work properly again. The process of adding to the cart takes 10-15 seconds again! This is not how it should look. A store that works like this is doomed to failure. All the advertising money ends up in the trash!

    How does the add to cart function work so fast on your demo sites (with the WP Rocket plugin)? Do I need to optimize the database? What do I need to do? It’s too late for me to change the WooCommerce theme to another one now that I’ve spent dozens of hours optimizing my store based on the Xstore.

    AND UNFORTUNATELY I AM DISAPPOINTED WITH XSTORE. Despite hundreds of functionalities, it does not fulfill one basic requirement – IT IS NOT POSSIBLE TO MAKE EASY SHOPPING THROUGH IT.

    Here you can see how my site works with the NITROPACK plugin enabled: https://jmp.sh/ZNukPg4i

    and here with the NItropack plugin disabled: https://jmp.sh/8h9ILk8l

    With nitropack disabled it takes about 5 seconds. With nitropack enabled it takes 10 seconds.

    In both cases it takes too long.

    2 Answers
    Avatar: hafunerix
    hafunerix
    Participant
    August 2, 2024 at 18:23

    Thank you for not giving a damn about what I wrote.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 3, 2024 at 08:43

    Dear @hafunerix,

    Thank you for reaching out and providing a detailed account of your experience with the Xstore theme and your efforts to enhance its performance. We recognize the importance of seamless functionality in your store, particularly concerning the cart feature.

    Please note that response times may vary, typically within 24 hours on weekdays and up to 48 hours on weekends. We kindly request that you avoid submitting multiple topics for the same issue, as it does not expedite our response time.

    The speed of the Ajax “Add to Cart” feature is influenced by server response times and database structure. The theme sends requests to your database and waits for a response. If you are experiencing delays, we recommend contacting your hosting provider to discuss potential improvements in server response times.

    To further assist you in improving the performance of your Xstore theme, especially the “Add to Cart” functionality, please consider the following suggestions:

    ### 1. **Check for Plugin Conflicts**
    – Temporarily disable all plugins except for WooCommerce, and then reactivate them one at a time to identify any conflicts with WP Rocket or NitroPack.

    ### 2. **Database Optimization**
    – Use plugins like **WP-Optimize** to regularly clean your database of unnecessary data, which can enhance overall performance.

    ### 3. **Server Performance**
    – Verify that your hosting plan provides sufficient resources to handle your store’s traffic. Upgrading to a more robust hosting solution may be necessary.

    ### 4. **Implement a CDN**
    – Employing a Content Delivery Network (CDN) such as Cloudflare can significantly boost your website’s speed by serving content from servers nearest to your users.

    ### 5. **Review Custom Code**
    – Ensure any custom code on your site is optimized and not contributing to performance issues. Inefficient code can drastically reduce site speed.

    ### 6. **Advanced Caching Techniques**
    – Apply advanced caching methods with WP Rocket, ensuring dynamic content like the cart is appropriately managed.

    #### Specific to WP Rocket and NitroPack:
    – **WP Rocket:** Activate and properly configure **”Optimize JavaScript Delivery”** to minimize render-blocking resources.
    – **NitroPack:** Fine-tune the optimization settings to avoid impacting dynamic functionalities such as the cart.

    Also, we would like to know if you followed the suggestions about dowgrading the PHP version previously described in next reply -> https://www.8theme.com/topic/adding-a-product-to-the-cart-takes-10-seconds/#post-402865 ?

    Also, we suggest you to read the similar request another customer posted -> https://www.8theme.com/topic/urgent-add-to-basket-button-lagging-not-working-properly-and-not-adding-the-items-to-cart/.

    We would ask you to provide us the correct wp-admin + FTP access so we could make own test of the performance of your web-site and searching for the main reasons of such issue you faced with.

    Should you require further assistance, please do not hesitate to contact us. We are eager to assist you.

    Best regards,
    Jack Richardson
    8Theme’s Team

  • Viewing 3 results - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.