Place Order button text translation is overridden by Ajax
-
We are trying to change the “Place order” text on the checkout page.
We are using the following code to change the text:
/* * Change 'Place Order' on checkout page */ add_filter( 'woocommerce_order_button_text', 'woo_custom_order_button_text' ); function woo_custom_order_button_text() { return 'Start Subscription'; }
I can see that the text is added to the button in a ‘data-value’ attribute, but an Ajax call is overriding that and setting a ‘value’ attribute back to ‘Place Order’. Is there an easy around this without modifying WC core files?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Place Order button text translation is overridden by Ajax’ is closed to new replies.