Home › Forums › Calendar Products › Events Calendar PRO › Change "Add to Basket" Text
- This topic has 6 replies, 3 voices, and was last updated 10 years, 5 months ago by
Support Droid.
-
AuthorPosts
-
October 1, 2015 at 12:57 am #1010340
laughmasters
ParticipantI’ve done a bunch of work customising Woo Commerce before buying TEC Pro – seems all my button text changes are lost using Woo Tix. Is there a way for example to change:
Add to basket to register?
Update basket to just update?
“Improv Level 1” has been added to your basket. to cart?
etc.October 1, 2015 at 12:25 pm #1010585George
ParticipantHey @laughmasters,
How, specifically, did you originally customize those WooCommerce button text? Can you paste all of that code into a Gist at http://gist.github.com and link to that Gist?
And also, do you mean that your customizations show up fine without WooCommerce Tickets, but then if you do nothing but simply activate WooCommerce Tickets then your customized strings stop working?
If this latter example is the case, can you also post your system information here? Here’s how → https://theeventscalendar.com/knowledgebase/sharing-sys-info/
Thank you!
GeorgeOctober 1, 2015 at 6:20 pm #1010726laughmasters
ParticipantEasy.
We used the WooCommerce Customiser plugin.
It’s rad.October 2, 2015 at 5:38 am #1010822George
ParticipantHey @Laughmasters,
That might be the root of the problem, actually – I do not know how that plugin adds its customizations, but I’m curious: to test for this, can you temporarily deactivate that plugin altogether on your site, and then go to your theme’s functions.php file and try adding this filter to change the “Add to Basket” text to “My Button Text”:
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' );function woo_archive_custom_cart_button_text() {
return __( 'My Button Text', 'woocommerce' );
}
This is a code example taken from here: https://docs.woothemes.com/document/change-add-to-cart-button-text/
Once you do this, let us know what you find; does the button text indeed change?
Thanks!
GeorgeOctober 2, 2015 at 9:12 pm #1011132laughmasters
ParticipantWe use WooCommerce Customiser for more than just button text so we’re reluctant to disable it…
October 6, 2015 at 12:27 am #1011775George
ParticipantNo worries @laughmasters, I can totally understand that reluctance to disable the plugin. The hand-coded filters worked for me, though, so with that in mind if we cannot test your plugin here then there are unfortunately not many other steps we can do; not many “moves on the chessboard”, so to speak…
I’m really sorry about that! One thing that might be a great step at this moment is to contact the support team for the “WooCommerce Customiser” plugin – describe your problems and share a link to this forum thread, perhaps, and see if they have any insights into this. They may have seen something similar before or have a known code-level issue, you never know!
Let us know if you are able to contact them for support and, if so, what you find 🙂
Thank you!
GeorgeOctober 21, 2015 at 7:05 am #1016518Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Change "Add to Basket" Text’ is closed to new replies.
