• Resolved Wouter

    (@estudioio)


    Such a great plugin ! Thanxalot! Although I’m having trouble with a side effect. I’m creating a website in portuguese and that’s why the button of the productarchives is showing the portuguese words for buy now “Comprar (PT)”. After installing this new but wonderful plugin of yours, those portuguese words are changed in plain English “Select Options” . So I tried to change that using Loco Translate to translate the sttring of this “select options” but no way to find it over here. Anybody can help me out please?
    Thanxalot!- Obrigado (PT)

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m having a very similar issue with yours on this page: https://lampica.rs/personalizovane-lampe/

    I’m using a widget from Essential Addons for Elementor called Product Grid which has an option of adding custom text for Add to Cart button. By using this custom text option I’ve translated “Select options” to “Dodaj u korpu” which is Serbian for Add to Cart.

    When the page is first loaded everything looks good. But when I click to move on the second page by using the Product grid Pagination option, our custom text is replaced with a default option (Select options). When the Product grid widget Load more option is used we don’t see this behaviour.

    Have you managed to find a solution to this issue?

    Thanks

    Hi,

    Please check the Plugin’s global settings. The translation is already included in the plugin itself. Path: Settings -> Custom Product Addons -> Contents/Strings.

    Screenshot: https://prnt.sc/10fu5tg

    Thank you

    Thread Starter Wouter

    (@estudioio)

    Thanxalot for helping us out with that. great also that it makes part of the plugin. I hadn’t seen that but in the meantime I had found another way that solved my problem also.

    Using the next snippets in the wp snippets plugin or functions.php

    // To change add to cart text on single product page
    add_filter( ‘woocommerce_product_single_add_to_cart_text’, ‘woocommerce_custom_single_add_to_cart_text’ );
    function woocommerce_custom_single_add_to_cart_text() {
    return __( ‘Compre Aqui’, ‘woocommerce’ );
    }
    // To change add to cart text on product archives(Collection) page
    add_filter( ‘woocommerce_product_add_to_cart_text’, ‘woocommerce_custom_product_add_to_cart_text’ );
    function woocommerce_custom_product_add_to_cart_text() {
    return __( ‘Ver detalhes’, ‘woocommerce’ );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to translate the buy button after using this plugin’ is closed to new replies.