• Resolved giovanni57

    (@giovanni57)


    button product_type_simple add_to_cart_button

    Hello ,
    I’ve searched on web how to modify the label of button and I found this simple code.
    I went to Appearence / Theme file editor / Astra: Theme Functions?(functions.php)
    and I added at the bottom this without success. I’m not a programmer but it looks correct.

    add_filter(‘woocommerce_product_single_add_to_cart_text’, ‘woo_custom_cart_button_text’);
    function woo_custom_cart_button_text() {
    return __( ‘Configura il prodotto’, ‘woocommerce’); }

    Why I don’t see translated label ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @giovanni57,

    It seems the code isn’t working on our end either. You might want to reach out to the code developer for further assistance. Just a heads-up—providing custom code is outside our support scope.

    As an alternative, if you’re looking to translate the button text, you can do so using a multilingual plugin. For detailed steps, please check out this [documentation link].

    I hope this helps!

    Kind regards,
    Aradhy

    Thread Starter giovanni57

    (@giovanni57)

    I did by myself (as usual…) and it works

    Hi @giovanni57,

    I’m glad to hear that you were able to figure out the solution!

    Feel free to mark this ticket as resolved. Also, don’t hesitate to reach out if you need any further assistance in the future.

    Best regards,
    Aradhy??

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.