| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Custom Smarty Objects | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Need a little help with smarty/x-cart though not sure how to search for this┘ it's somewhere between a mod and basic template hacking...
Basically I need to create a new smarty object and be able to define it's variable in the admin. Allowing for custom text and link fields to be used. So for example- * $newobject field created in database * Use {$newobject} in a tpl file * Assign $newobject a line of text on the admin (in this case I already have a blank custom 'banners' page in the admin ready to go) Any pointers to do this? I have a php developer I could call but trying to learn a lot myself.
__________________
X-Cart Pro 4.4 |
|||||||
#2
|
|||||||
|
|||||||
![]() Depends on where you want it in the admin.
If you want it in general settings then all you need to do is put the new row into the config table and you'll be able to use {$var} on templates and it'll automatically appear in the settings area. |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Or you can just define new language variable so no files or tables have to be modified
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|