cqpbert Posted October 8, 2021 Share Posted October 8, 2021 Hello All, I am using the crosshatch theme and want to change some of the text on button. Specifically I want to change "BUY" in the product buying area to "Add to Cart". And I would like to change "View Basket" to "View Cart" I think I see in the CSS files how to change styles of said buttons, but where is the text stored? Link to comment Share on other sites More sharing options...
bsmither Posted October 8, 2021 Share Posted October 8, 2021 In CubeCart's admin, Languages, click the Edit icon for the language(s) you wish to change the phrases for. The next screen has a drop-down selector for the groups of phrases. The phrases you mentioned are in the Catalogue group. However, the Catalogue group also contains a "add_to_basket" phrase. You now have a choice of changing the template - {$LANG.catalogue.buy} to {$LANG.catalogue.add_to_basket}, for example - or to actually change the displayed phrase. Changes made in admin are databased, so they will persist across upgrades and different skins. Link to comment Share on other sites More sharing options...
cqpbert Posted October 8, 2021 Author Share Posted October 8, 2021 Where exactly are the templates located? Like what folder/file name? Link to comment Share on other sites More sharing options...
cqpbert Posted October 8, 2021 Author Share Posted October 8, 2021 To be more specific, I know where to find templates. I just don't have a clue how to find where {$LANG.catalogue.buy} is located for example. Link to comment Share on other sites More sharing options...
bsmither Posted October 8, 2021 Share Posted October 8, 2021 The template file you are looking for depends on the skin being used. For Foundation, find the file element.product.call_to_action.php. This file contains all the HTML code to show prices, availability, quantity to purchase, and the Add to Basket button. That button code will be near line 40. Other template files where the customer can add the item to the cart are: content.category.php (near lines 119 and 178), and content.homepage.php (near line 65). Please let us know what skin you are using, and where you see Buy. (Oops! I see now that you did provide this info.) Link to comment Share on other sites More sharing options...
cqpbert Posted October 8, 2021 Author Share Posted October 8, 2021 I am using crosshatch. I was able to change the language in the admin section as you suggested. It seems like that is the best idea since that will persist across updates. (Assuming I correctly understand your first reply). Now I am just trying to better understand the coding behind the scenes, that is why I am looking for the templates. Thanks for the help!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.