This topic has 6 replies, 3 voices, and was last updated 7 years, 5 months ago ago by Amzy Leel
Hi, my store is set to Just Catalog and as such the Add to Cart button on product archives reads “View Details” by default.
Can you point me in the right direction to override this in php so that I can call it ‘View Course’.
I know how to change this button text when the ‘Just Catalog’ is Off. However, I’m struggling to find the right hook when Just Catalog is On.
Any pointers in the right direction would be gratefully received!
Many thanks
Richard
Hello,
Try translation files of WooCommerce plugin and XStore theme, find the necessary string “View Details” and use translation to change it to ‘View Course’. I think it’s more simple way then edit files.
Regards
The translation files? Is that a function I’ve got to add to my functions.php?
Thanks!
Hello,
No, you just have to use free translation plugin like Loco Translate to translate/change the texts.
check this for more details : https://optimizerwp.com/documentation/how-to-translate-theme-using-loco/
Regards,
Perfect, thanks for this. I changed the tranlation in the Xstore theme as it was saying something about there were no translations file set up in the child.
It works perfectly, just a couple of questions:
– willl these remain if I update the theme
– I’ve just changed a couple of strings – using this plugin to do this, is this going to have an impact on site speed at all?
Thanks!
You are welcome
will these remain if I update the theme
– yes if you are using the child theme
I’ve just changed a couple of strings – using this plugin to do this, is this going to have an impact on site speed at all?
– no.
Regards,
You must be logged in to reply to this topic.Log in/Sign up