Skip to content
Advertisement

Avoid proceed-to-checkout-button text refreshing to default text in WooCommerce cart page

In WooCommerce, in my Storefront child theme, I edited the code in proceed-to-checkout-button.php to change the wording from “Proceed to checkout” to “Checkout”:

JavaScript

But when the user changes product quantity in the cart page, then the button text goes back to default “Proceed to checkout”.

Is there a filter or where to edit this updated text?


EDIT – Problem Solved

The issue was related to a specific cart option in WooCommerce Better Usability pro plugin where the option “Display text while updating cart automatically” requires to be disabled (unselected).

Advertisement

Answer

Instead of overriding proceed-to-checkout-button.php file, should use the following instead:

JavaScript

Code goes in functions.php file of your active child theme (or active theme). Tested and works on last WooCommerce version under Storefront theme.

Now as you have done a lot of customizations in your templates or may be you are using some plugin in cart page for customization, the problem can remains due to those customizations.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement