wbs1969 Posted June 8, 2017 Share Posted June 8, 2017 Hello, can someone point me in the right direction on where to find the file to edit the text on my checkout page. I would like to add something above or below "Your Shopping Basket" I think I have looked at every file, but I just can't find it. Any help is appreciated. Quote Link to comment Share on other sites More sharing options...
keat Posted June 9, 2017 Share Posted June 9, 2017 Could you supply a mockup image, we might have a clearer understanding of what it is your'e trying to achieve . Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted June 9, 2017 Share Posted June 9, 2017 There are three checkout related files, not the counting ones for specific sizes. And there are two basket ones. Quote Link to comment Share on other sites More sharing options...
wbs1969 Posted August 6, 2017 Author Share Posted August 6, 2017 I still can not find the file to edit. I am trying to add text above or below where it says "Your Shopping Basket" I am attaching a screen grab of the page. Quote Link to comment Share on other sites More sharing options...
ayz1 Posted August 6, 2017 Share Posted August 6, 2017 public_html/skins/foundation/templates/content.checkout.php I think you need to add your text above or below <h2>{$LANG.checkout.your_basket}</h2> Quote Link to comment Share on other sites More sharing options...
wbs1969 Posted August 6, 2017 Author Share Posted August 6, 2017 No - that doesn't work. I think I need to find the file with: <h2>Your Shopping Basket</h2> Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 6, 2017 Share Posted August 6, 2017 CubeCart uses templates, and the templates have language {$placeholders}. Each {$placeholder} is replaced by the appropriate phrase when the template is 'rendered'. This allows for the same template to be populated with different languages. So, you won't find the actual phrase that you see in your browser (as this is a final-rendered template). The 'key' to the phrase is as mentioned earlier: {$LANG.checkout.your_basket}. But you need to know that CubeCart "caches' a template at a step that is mid-point in the rendering process - repeating sections, if/else sections, etc. Therefore, you may be successfully editing a template, but the template rendering engine is still using the internally cached mid-render copy. Try this: in admin, Store Settings, Advanced tab, disable Caching. This should stop the rendering engine from using the cached templates, showing immediately the changes being made to the source templates. Re-enable the caching when finished. Quote Link to comment Share on other sites More sharing options...
wbs1969 Posted August 6, 2017 Author Share Posted August 6, 2017 OK - so I am editing this line: <h2>{$LANG.checkout.your_basket}</h2> Where do I put the actual words that I want displayed? Inside the brackets? In new brackets? Note: Whenever I edit the words within the bracket - the whole phrase "Your Shopping Basket" disappears. Maybe you can advise a different way to achieve this. I want to add text that advises that we wouldn't be shipping an order until a certain date. See image. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 6, 2017 Share Posted August 6, 2017 In the template content.checkout.php: Near line 17, find: <h2>{$LANG.checkout.your_basket}</h2> {include file='templates/content.checkout.medium-up.php'} {include file='templates/content.checkout.small.php'} Change to: <h2>{$LANG.checkout.your_basket}</h2> <h3>NOTE: Orders are not shipped until XX date</h3> {include file='templates/content.checkout.medium-up.php'} {include file='templates/content.checkout.small.php'} Quote Link to comment Share on other sites More sharing options...
wbs1969 Posted August 6, 2017 Author Share Posted August 6, 2017 OMG! I guess that was too obvious! LOL Thank you so much - that worked perfect! Quote Link to comment Share on other sites More sharing options...
navimaps4u Posted February 27, 2022 Share Posted February 27, 2022 How come I just cannot get this to work for me? I am trying to do exactly the same thing but it is not working. I am using version 6.4.4 with Basix skin. Any help would be much appreciated. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 27, 2022 Share Posted February 27, 2022 We assume you have edited the correct phrase in admin, Languages (if that's what you want to do). Or, maybe you are customizing the template? Quote Link to comment Share on other sites More sharing options...
navimaps4u Posted February 27, 2022 Share Posted February 27, 2022 Yes I have edited the language file and it is now showing at check out but I want it on the line below "Your Shopping Basket" This is what I have done. <h2>{$LANG.checkout.your_basket}</h2> <h3>LANG.NOTE:If you ordered a DOWNLOAD the link will be emailed to you within a few minutes, Check your INBOX and also SPAM/JUNK folder</h3> {include file='templates/content.checkout.medium-up.php'} {include file='templates/content.checkout.small.php'} Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 27, 2022 Share Posted February 27, 2022 From what I see in the Basix template content.checkout.php: There is this: <h2 class="content-title">{$LANG.checkout.your_basket} <a href="{$STORE_URL}/index.php?_a=basket&empty-basket=true" class="pull-right"><i class="fas fa-trash"></i> <span class="hidden-xs">{$LANG.basket.basket_empty}</span></a></h2> {foreach from=$ITEMS key=hash item=item} Change to: <h2 class="content-title">{$LANG.checkout.your_basket} <a href="{$STORE_URL}/index.php?_a=basket&empty-basket=true" class="pull-right"><i class="fas fa-trash"></i> <span class="hidden-xs">{$LANG.basket.basket_empty}</span></a></h2> <h3>If you ordered a downloadable product, the link to it will be emailed to you within a few minutes. Check your INBOX and also SPAM/JUNK folder.</h3> {foreach from=$ITEMS key=hash item=item} The two {include file} statements are not part of the original Basix template code. 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.