• Link to X
  • Link to Facebook
  • Link to LinkedIn
Amherst, NH | Contact | Make a Payment
  • Shopping Cart Shopping Cart
    0Shopping Cart
Walnut Hill Design
  • Home
  • Website Development
    • WordPress Websites
    • eCommerce Websites with WooCommerce
    • Digital Marketing Services
  • Website Management
  • Our Work
  • About Us
    • Blog
    • Contact
      • Request a Quote
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu

Archive for category: WordPress

A Solution to a Very Slow WooCommerce Checkout

WordPress

THE PROBLEM

We discovered the last step of the WooCommerce checkout was very slow, taking about 20 seconds to complete.  The orders eventually went through successfully.  The hangup seemed to be on the ?wc-ajax=checkout stage of the checkout.

In our case the problem was happening with all sites hosted on InMotion VPS servers.  We tested about 6 different sites, and even created a new one.  It was happening on all of them, even a completely different VPS server.  Other sites we tested on other hosts such as Siteground were not experiencing the issue.

It wasn’t the gateway, because it was doing it with just Pay By Check active.

It took almost 2 days to figure this out and we found very little information on the web about it.  There were plenty of olders posts about it, but very few solutions.

 

THE SOLUTION

The email sending was the next area of focus.  It must be hanging up on this process. Turning off the main order notification emails, showed an improvement and brought down to 8-10 seconds. Better than 20, but still unacceptable. Deferring transactional emails entirely is what solved it for us, which processes the emails after the order is submitted.   Adding this filter to the functions.php file resolved the issue.

Add this to your functions.php file.

add_filter('woocommerce_defer_transactional_emails', '__return_true' );

March 27, 2020
/wp-content/uploads/whd-logo-r2-350x104.png 0 0 whadmin /wp-content/uploads/whd-logo-r2-350x104.png whadmin2020-03-27 17:10:092020-04-28 16:34:12A Solution to a Very Slow WooCommerce Checkout

LATEST POSTS

  • A Solution to a Very Slow WooCommerce CheckoutMarch 27, 2020 - 5:10 pm
  • Best and Fastest Way To Migrate Your Email To a New HostMarch 9, 2020 - 10:25 am

Tip Jar

Did this help you out?  I try to post valuable information that will save someone else the many hours of labor I went through to find these solutions.  If you would like to leave a tip I would greatly appreciate it.

Donate to our Tip Jar

FROM OUR BLOG

  • Solution for Websites not working on Safari after enabling HTTP2 (Protocol Error. NSPOSIXErrorDomain:100)September 3, 2020 - 5:29 pm
  • A Solution to a Very Slow WooCommerce CheckoutMarch 27, 2020 - 5:10 pm
  • Best and Fastest Way To Migrate Your Email To a New HostMarch 9, 2020 - 10:25 am
Top Web Designer in Nashua

RECOMENDED VENDORS

Recommended WordPress Website Hosting Plan:

  • InMotion WordPress Hosting
  • GoGeek plan at SiteGround

Best VPS Hosting: InMotion Hosting

Hosted Email Services:
(G Suite) a.k.a. Google Apps for Business

Credit Card Gateway
Authorize.net

©Copyright - Walnut Hill Design, - Amherst, New Hampshire
  • Home
  • Our Work
  • WordPress Websites
  • Digital Marketing Services
  • Website Development
  • eCommerce Websites with WooCommerce
  • WordPress Maintenance & Support Plans
  • About Us
  • Blog
  • Contact
Scroll to top Scroll to top Scroll to top