[SOLVED] Order status has changed from pending payment to failed. Please retry.

Order status has changed from pending payment to failed. Please retry.

Order status has changed from pending payment to failed. Please retry.

In short, this translates to a BIG headache for every online shop owner. You cannot process the orders anymore, losing clients and money. In this article, I will try to find a solution for this WooCommerce issue. In one of my client’s cases, the solution I found was pretty easy to check & repair: Through one of her site performance plugins, she disabled the “jquery-blockui,” so everything went crazy.

[SOLVED] You cannot add another product to your cart WooCommerce. Payment processing failed. Please retry
Order status has changed from pending payment to failed. Please retry.
I checked what plugins she have installed and found a known script manager plugin, which I also use on some of my sites (Perfmatters). I checked the WooCommerce area, and I found she disabled all the necessary WooCommerce scripts on the entire site, even on the product, cart, and checkout pages. Big mistake! It is ok to disable this script where you do not need them, but you should not do this on these pages.

Disable All WooCommerce Styles and Scripts Except Shop Pages

The main idea behind disabling “jquery-blockui” is to gain more website speed. As you may be aware, the WooCommerce scripts are loading on every page, even when it is not needed. The right thing to dodo is to disable this script and other WooCommerce scripts (cart fragments, price slider, single product script, etc.) on blog pages, pages, and anywhere else where you do not plan to sell something (or adequately use the WooCommerce plugin). For example, if your site has 100 articles and you sell 1 product, the CSS and JS scripts will load 101 times (if the articles are accessed simultaneously). Even if no one lands on the product page, the WooCommerce scripts will load, slowing your website.

Can you post the WooCommerce scripts?

Yes. To make a better idea of how many useless scripts are loaded, take a look below:

CSS scripts:

/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.9.2 
/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.9.2
/wp-content/plugins/woocommerce/assets/css/your-theme.css?ver=5.9.2

JS scripts:

/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.9.2
/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.9.2
/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4-wc.5.9.2
/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-style.css?ver=5.9.2
/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-vendors-style.css?ver=5.9.2

Many useless resources will be loaded if you do not pay attention, which translates into a slow website. If you also have a ton of plugins installed, an outdated or (even worse) a bloated theme, uncompressed images, and (the cherry on top of the cache) a slow hosting, be happy if your site speed score will pass 15% – 20%.

If you plan to speed up your WooCommerce site, be aware of these things and pay attention to everything you do there (“measure seven times, cut once”).

Order status has changed from pending payment to failed. Please retry.

The “jquery-blockui” is a solution for the case above. However, what if you have not touched the scripts, and everything was suddenly broken?

In this case, you have to look at what was recently installed on your site (or auto-updated, if you have this feature on). You should also look at the WooCommerce Status (admin Dashboard > selecting WooCommerce > Status.). Anything marked with the red color is a WooCommerce error, so you must get rid of it.

You should also check if your gateway account (Stripe, PayPal, etc.) is in good shape. If the account is blocked for different reasons (require validation, the keys and webhooks need to be updated, etc.), talk with the support team, and they will help you solve the issue.

Related articles:

WooCommerce Frequently Questions and Answers

[SOLVED] Your Cart Is Currently Empty Error – WooCommerce

[SOLVED] WooCommerce Mini Cart Not Update

[SOLVED] How To Change WooCommerce Button Text

 

Previous Post
Google Analytics 4: Everything You Need to Know about Migrating to GA4
Next Post
WordPress Excerpts: The Definitive Guide
Buy WordPress Transfer Service

Tags

Affordable WordPress Hosting Auslogics DiskDefrag Pro FREE Best 3 Ways to Get Quality Cheap Hosting for WordPress business website wordpress Cheap Hosting for WordPress cheap ssd hosting cheap wordpress hosting Christmas WordPress Hosting Discount - All features for $50/Year complete web design solution cost of wordpress website cost over $600 ) fast wordpress hosting 2019 fast wordpress hosting us fast wordpress speed FotoJet Designer FREE How much costs a WordPress website? how to add cloudflare to wordpress How To Get 17 Paid Software For FREE ( Normally How To Have A Powerful Website [BONUS: Video] LiteSpeed WordPress Cache - A Boost For Your WordPress Website's Speed litespeed wordpress cache plugin free New WordPress Update : WordPress 5.0 "Bebo" power of website ScreenCamera FREE Seed4.Me VPN FREE Something went wrong and we couldn't process your request." and be stuck ... your request. Please go back to the previous page and try again. ssd cloudflare wordpress strong website Web Designer in Vancouver CA Website Builder With WordPress Website Development solutio What are the benefits of Railgun? What Is Cloudflare Railgun™? Improve WordPress Speed 100% What is Railgun? WooCommerce WordPress Administration wordpress cache plugin wordpress cloudflare speed wordpress hosting 2019 WordPress Security Tips wordpress site wordpress website cost [2019] To Build or Not to Build: A WordPress Website Cost Analysis [SOLVED] Module 'i360' already loaded in Unknown:0 whmcs [The Ultimate Guide] Best 6 Free Do-Follow Strong Backlinks - November 2018
Buy WordPress Transfer Service
Menu