| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Adding a language variable | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Must be having one of those days
![]() I need to add a text variable (as highlighted) to the shipping methods template at the checkout on a client's site. Code:
I've created the txt file but it never shows. What blatantly obvious thing am I missing? Thanks
__________________
XCart 4.5.4, 4.6.1, 4.64 stores Many, many mods from Altered Cart XCart Mods Reboot template The XCart Store Templates and Mods WCM CDSEO Pro BCSE Rewards Points and Gallery Mods and a few others |
|||||||||
#2
|
|||||||
|
|||||||
![]() You've got the language variable outside the table cell, it'll never show. Put it between the <td> and </td>
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Quote:
Thanks Balinor, I tried that and it still doesn't show. I created a new cell which now bumps the rest of the page down a little so I know that is working but even placing the txt variable between those tags it still doesn't show. This is so easy, so I'm stumped why it won't show. Any other suggestions???
__________________
XCart 4.5.4, 4.6.1, 4.64 stores Many, many mods from Altered Cart XCart Mods Reboot template The XCart Store Templates and Mods WCM CDSEO Pro BCSE Rewards Points and Gallery Mods and a few others |
|||||||||
#4
|
|||||||
|
|||||||
![]() You sure you copied the variable exactly as you created it?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Yeah mate, I've lost count how many times I've checked it.
![]() I'm going to send a message to Jon at WebsiteCM as I'm using their Ezy checkout, however when using Webmaster mode it tells me that their mod still uses all the standard XCart fastlane checkout templates but just changes some language variables and the way the array is shown. Perhaps their mod bans anyone from making alterations ?? ![]() Thanks for helping out.
__________________
XCart 4.5.4, 4.6.1, 4.64 stores Many, many mods from Altered Cart XCart Mods Reboot template The XCart Store Templates and Mods WCM CDSEO Pro BCSE Rewards Points and Gallery Mods and a few others |
|||||||||
#6
|
|||||||
|
|||||||
![]() Na, doubt that. So if you type text in where the language variable is, does that update on the site? And have you cleared your cache?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Cleared the cache but still doesn't show. typed in "Delivery Notes" between the TD and /TD tags and that appears so I have no idea why I can't show a variable.
Weird, weird. I suppose I can just replace Delivery Notes with the text from the variable, but it's ugly doing it that way.
__________________
XCart 4.5.4, 4.6.1, 4.64 stores Many, many mods from Altered Cart XCart Mods Reboot template The XCart Store Templates and Mods WCM CDSEO Pro BCSE Rewards Points and Gallery Mods and a few others |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() Have you tried using a standard lng variable like {$lng.txt_welcome}, or a similar language variable you're familiar with, in its place? If it printed that would most likely prove whether the var you have created is at fault or not (I would have thought).
Can you search for your language variable directly by inputting the variable name in the filter under languages? For example, in admin, this page below should give a result... (although you may have some different requirements to be entered below) Code:
I know the questions are silly to ask - but you never know.
__________________
Doms kube v4.1.9 |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() Quote:
Thanks Kube for replying. Yes I can search and find the variable and it has a plain text value with no html. If I include {$lng.txt_welcome} it appears fine, so I created a new variable again and it still won't appear. So I raise the white flag.
__________________
XCart 4.5.4, 4.6.1, 4.64 stores Many, many mods from Altered Cart XCart Mods Reboot template The XCart Store Templates and Mods WCM CDSEO Pro BCSE Rewards Points and Gallery Mods and a few others |
|||||||||
#10
|
|||||||||
|
|||||||||
![]() *scratches head* What could possibly be doing that?
Can you print the variable, you have created, somewhere else? Like on the home page home.tpl. That would definitely confirm something is up if it did print.
__________________
Doms kube v4.1.9 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|