| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How do I add a new label | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hi,
I seem to get stuck on what would appear to be the simplest of tasks. All I want to do is to add a label either within the Help menu or the Categories menu. I just want to insert a link within that label so that when the label is clicked the link is activated. I have created a new label but haven't a clue on how to access that labels properties to insert code - even worse I don't know how to display the newly created label. I have managed to insert a label in the Categories menu but that is as far as I have been able to go. I haven't a clue on where to insert the link code. The method must be more complicated than I imagined as I have spent hours pouring over this forum and the X-cart manual without success - would someone be good enough to guide me in the right direction. TIA
__________________
Version = X-Cart 4.1.3 Gold Status - Closed Addon: Magnifier OS = Windows Western Australia ![]() |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() First add a language label. It will look something like this:
lbl_your_text_label To insert is, you may have to edit some templates. For example you want to use this label for a menu: And include the label in the template like this: {$lng.lbl_you_text_label} And then if you want to use the label with a link / url do it like this: <A href="your url here">{$lng.lbl_your_text_label}</A><BR> That should do the trick. It only works in templates, not the php files. Hope this gives you a start..
__________________
Best regards, Niki Buitenrust Hettema X-Cart Gold 4.1.8 (Live & Loaded) Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more... |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Sorry for being tardy with my reply but I have been going around in circles.
I eventually worked it out but it involved a php file and a tpl file (as you menioned). I also placed the label in the Categories Menu so that also involved the categories.tpl. Many thanks for your advice, it put me on the right track. Regards
__________________
Version = X-Cart 4.1.3 Gold Status - Closed Addon: Magnifier OS = Windows Western Australia ![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|