GDP Overrides Customized “Place Order” Button Text
-
Something weird I have just noticed. It seems that when GoDaddy Payments is selected as the payment method, it somehow overrides the customized text on the the WC “Place Order” button.
I had seen this with my earlier situation where I was setting the payment gateways available based on the billing country. So I today removed that code and simply had GoDaddy Payments enabled. No matter whether I used the add_filter( ‘woocommerce_order_button_text’ approach or add_filter( ‘woocommerce_order_button_html’ approach whenever the GDP payment option is selected the “Place Order” button is changed to the default “Place Order” text. It overrides the filter I have set. When selecting a different payment option, the Place Order button uses the “Make Payment” wording that I’m trying to get with using a filter.
What is it with the GDP option that causes the Place Order filters to be overridden?
add_filter( 'woocommerce_order_button_html', 'ybc_custom_place_order_button_html' ); function ybc_custom_place_order_button_html( $button_html ) { $button_html = str_replace( 'Place order', 'Make Payment', $button_html ); return $button_html; }
The page I need help with: [log in to see the link]
- The topic ‘GDP Overrides Customized “Place Order” Button Text’ is closed to new replies.