Add to Cart Custom Text Reverts to Default
-
Upon upgrading to WC 2.1, my “Add to Cart” buttons (which I had renamed to read “Buy”) reverted back to the default “Add to Cart” text. I am using the following code (which I believe is updated for 2.1:
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 + function woo_custom_cart_button_text() { return __( 'Buy', 'woocommerce' ); } add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text_single' ); function woo_custom_cart_button_text_single() { return __('Buy', 'woocommerce'); }
I’m sure I’ve missed something simple, I just don’t know what it is. Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add to Cart Custom Text Reverts to Default’ is closed to new replies.