Jump to:

2076 Posts in 857 Topics by 449 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Editing "click to read more" link

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 896 Views
  • ramshackle
    Avatar
    Community Member
    22 Posts

    Editing "click to read more" link Link to this post

    Hi there,

    Simple question - I need to edit the "click to read more" link which appears directly after the product description cutoff on the products home page. Cant find this in any of the ecommerce / payment template files. It's the link to the full product description. I need to edit the text on the link.

    Cheers

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: Editing "click to read more" link Link to this post

    Hi Ramshackle,
    You should find it in ecommerce/templates/Includes/ProductGroupItem.ss
    on the latest version its on line 10 you'll see something like <% _t("READMORECONTENT","read more") %>
    this is just for multilingual sites, you can just replace that code with what ever you desire!

  • ramshackle
    Avatar
    Community Member
    22 Posts

    Re: Editing "click to read more" link Link to this post

    Hi Bambii7,

    That's where I thought initially but changing the text doesn't change the rendered page text - flushed cache etc.. weird, can't find reference to that text anywhere at all in any of the templates, frustrating but not a massive deal. Searched every template file for the word 'click' but no results & it still appears on the products page.. anywhere else it might be?

    cheers

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: Editing "click to read more" link Link to this post

    Just to double check, did you also check the includes?

  • ramshackle
    Avatar
    Community Member
    22 Posts

    Re: Editing "click to read more" link Link to this post

    Yep, checked those also. Its driving me mad. Should be easy but I can't find it!

  • Jedateach
    Avatar
    Forum Moderator
    227 Posts

    Re: Editing "click to read more" link Link to this post

    Hi guys, note that you'll need to replace the entire tag: <% _t("READMORECONTENT","read more") %>. The "read more" text inside the tag is only used when a translation isn't available, otherwise it uses the text from the active language (probably US). You'll find that text in ecommerce/lang/en_US.php
    Jeremy

  • ramshackle
    Avatar
    Community Member
    22 Posts

    Re: Editing "click to read more" link Link to this post

    Thanks alot Jedateach - it was the en_GB.php file

    cracked open the bubbles!

    And great work all round on the module, helping us mere mortals no end

    cheers!

    896 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.