BradScott Posted October 14, 2015 Share Posted October 14, 2015 Hey All, I want to change the text on the "Buy Now" Button on the featured products section of the home page to read Add to Cart like they do on the category pages.I'm using the Mican - Black Skin with some minor tweaks Any help appreciated Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 14, 2015 Share Posted October 14, 2015 In the skin template box.featured.php, near the bottom:Find: <input type="submit" class="button_default" value="{$LANG.catalogue.buy_now} »" /> Change to: <input type="submit" class="button_default" value="{$LANG.catalogue.add_to_basket} »" /> Quote Link to comment Share on other sites More sharing options...
BradScott Posted October 15, 2015 Author Share Posted October 15, 2015 Thanks, And I f want to change it in the new stuff section on the home page or on products pages? Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 15, 2015 Share Posted October 15, 2015 The Latest Products uses the template content.homepage.php, and the Product Details page uses the template content.product.php.Look for {$LANG.catalogue.buy_now} and replace with {$LANG.catalogue.add_to_basket}. Quote Link to comment Share on other sites More sharing options...
BradScott Posted October 15, 2015 Author Share Posted October 15, 2015 Thanks heaps If I wanted to change the text to something custom, would that also be simple? Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 15, 2015 Share Posted October 15, 2015 More or less.I have not done it this way, but I think it would work:Copy the file /language/en-GB.xml to a different name - en-GB-BradScott.xml, for example. (Use the language code you intend to use.)Change the <group> name to "bradscott" and the <string> name to "custom_buy_now". Change the phrase, <![CDATA[County]]>, to what you want.Then, where changed {$LANG.catalogue.buy_now}, replace that with {$LANG.bradscott.custom_buy_now}.It is possible to change an existing phrase, but then that change applies everywhere. Creating a custom file allows you keep the existing phrase where you want to show the existing phrase, but add your own. Quote Link to comment Share on other sites More sharing options...
BradScott Posted October 15, 2015 Author Share Posted October 15, 2015 Cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.