• Resolved unicco

    (@unicco)


    “Tekst p? ordreknap” doesn’t work – it simply dosen’t change the button text. Searching through your plugin, I can’t find any use of the callback filter: “woocommerce_order_button_text” – which defines button text.
    https://ibb.co/b19fAw

    The problem is that you define order_button_text as a concrete gateway implementation, which inherits from WC_Payment_Gateway, but looking deeper into the payment.php template, the button is being implemented outside the WC_Gateway scope. Not quite sure how this is suppose to work…

    I just change the text myself; using this filter, but I think you should use the filters WooCommerce design for developers disposal.

    • This topic was modified 7 years, 4 months ago by unicco.
    • This topic was modified 7 years, 4 months ago by unicco.
Viewing 1 replies (of 1 total)
  • Plugin Author PerfectSolution

    (@perfectsolution)

    Using the WC_Payment_Gateway::order_button_text property is the official and the correct way of modifying the text on the checkout button. The property is used in templates/checkout/payment-method.php.
    If the text is not changing in your case, there is a good chance that either a plugin or a custom snippet in your theme is overriding it.

Viewing 1 replies (of 1 total)
  • The topic ‘Button text not changing’ is closed to new replies.