Forums
Home / Plugin: WooCommerce / Change cart button text to basket
(@rikardo85)
10 years, 9 months ago
Hello,
I have added below code supplied from the codex from the woothemes website
add_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' ); function woo_custom_cart_button_text() { return __( 'My Button Text', 'woocommerce' ); }
This works fine on the product pages but does not change the text on widgets and the basket (cart) page.
Does anyone know who to change the text in the widgets and basket page?
Any help much appreciated.
Thanks
http://wordpress.org/extend/plugins/woocommerce/
(@jameskoster)
There are two filters you need to change as described here; http://docs.woothemes.com/document/change-add-to-cart-button-text/
I have added the two filters to the functions.php file and uploaded.
The site does not appear.
Any ideas?