| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
variable values | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I am not able to find out where the actual values for the variables comes from.
for example in the skin1/customer/main/welcome.tpl template, line 7; {$lng.txt_welcome} Is the default welcome text, other than just replacing the whole file or replacing the line, where can i replace the default value so that i can leave the template file unchanged. Any information is much appreciated thank you
__________________
ver 4.0.0 pro, on linux |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Go to Languages in admin, do english in the dropdown and then you can do a search for labels and text further down the page.
![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() holy shnikeys! that easy eh!!!!! i would kiss you if i could. Alright now to satisfy the nerd in me, where are those valuse stored, in the database somewhere?
__________________
ver 4.0.0 pro, on linux |
|||||||
#4
|
|||||||||
|
|||||||||
![]() ^ Like she said, language variables are stored in the language database. All variables that start with $lng. are stored there.
Other variables are assigned from the php scripts which are then passed to smarty. Smarty also has some built in variables. |
|||||||||
#5
|
|||||||
|
|||||||
![]() ok 1 more, line 10 of skin1/menu.tpl :
<FONT class="VertMenuBoxNewsTitle">{$menu_title}</FONT></TD> this provides the title for the menus like categories, specials, users online, etc. Now lets say i want to change the title on only the categories menu, where is this value comming from?
__________________
ver 4.0.0 pro, on linux |
|||||||
#6
|
|||||||||
|
|||||||||
![]() I'm not positive about version 4.0 but in 3.5 its called "lbl_categories" under languages. Most everything is under languages.
Another thing you can use is webmaster mode. Its very handy in that it puts a popup window and you just scrolldown it until you find the piece of code you see hilite in your cart, then click it and the template pops up! |
|||||||||
#7
|
|||||||
|
|||||||
![]() Found it, i had to use windows because my linix mozilla browser was not brining up the descriptive windows, thank you for your help
__________________
ver 4.0.0 pro, on linux |
|||||||
#8
|
|||||||||
|
|||||||||
![]() no problem
![]() |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() Look at skin1/customer/categories.tpl
You'll see a capture start: Code:
A bunch of junk in the middle, and then a capture end: Code:
This code calls menu.tpl and passes the variable menu_title to it. Menu.tpl then puts a frame around all the junk between capture start and capture end using the menu_title variable that's passed to it. Make sense? |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|