Thread Starter
tim13n
(@tim13n)
1_Add the free plugin called Code Snippet
2_Insert the code below
Enjoy!
// Code Start
// 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 __( ‘Buy Now’, ‘woocommerce’ ); // Replace “By Now” text with your own text
}
// 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 __( ‘Buy Now’, ‘woocommerce’ ); // Replace “By Now” text with your own text
}
// Code End
Then go to :
Extension>Cart All In One For WooCommerce>setup>Add To Cart Button>Add to Cart button label
save
and it’s done
Hello,
This question is not about this plugin.
Anyway, great that you can solve it yourself and thanks for sharing the solution.
Best regards
Thread Starter
tim13n
(@tim13n)
1-Yes it is!
When I add a product manualy, buttons are in French.
When I add a product with your plugin, buttons are in English.
Ok, if you really want to take care of that .
2-Why Brave/Chrome’s app doesn’t allow to use another currency than USD.
This is the error message in the app when you use Aliexpress in EUR:
” Please switch AliExpress currency to USD ”
Maybe my button will be in French as my entire website after resolving point 1 or 2.
Sorry but the issue is not related both 1 and 2.
When I add a product manualy, buttons are in French.
Is this a simple product?
When I add a product with your plugin, buttons are in English.
And this is a variable product?