Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3782658
Localization not working
Open

Comments

  •  1
    Charlie started the conversation

    Hello,

    I seems that when i go to WPC Product bundle settings and to the Localization tab and set the "Add to cart" button labels to "Köp" instead of the default "Lägg till i varukorgen" 

    It seems to have no effect and does not change at all even though i have cleared cache multiple times.


    Please advice.

  •  1
    Charlie replied

    Resolved it by disable plugin that set the add to cart string, which does not add it for this type of product. Then used following code to set it in functions.php :

    // Change add to cart text on single product page
    add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_add_to_cart_button_text_single' ); 
    function woocommerce_add_to_cart_button_text_single() {
        return __( 'Add to Cart Button Text', 'woocommerce' ); 
    }

    // Change add to cart text on product archives page
    add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_add_to_cart_button_text_archives' );  
    function woocommerce_add_to_cart_button_text_archives() {
        return __( 'Add to Cart Button Text', 'woocommerce' );
    }