View Details text change - by rnbutler87

This topic has 6 replies, 3 voices, and was last updated 6 years, 9 months ago ago by Amzy Leel

  • Avatar: rnbutler87
    rnbutler87
    Participant
    July 1, 2017 at 13:50

    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

    5 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 3, 2017 at 15:46

    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

    Avatar: rnbutler87
    rnbutler87
    Participant
    July 3, 2017 at 17:38

    The translation files? Is that a function I’ve got to add to my functions.php?

    Thanks!

    Avatar: amzy
    Amzy Leel
    Participant
    July 4, 2017 at 08:11

    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,

    Avatar: rnbutler87
    rnbutler87
    Participant
    July 9, 2017 at 08:22

    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!

    Avatar: amzy
    Amzy Leel
    Participant
    July 10, 2017 at 06:55

    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,

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.