| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Add Array to xcart_config table | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Add Array to xcart_config table
Hi All,
I was wondering is there a way to do this? I have a graphic that I want to appear on a number of my static pages in x-cart. I have a lot of them. SO I would like to add a list of pages such as page1.html, page2.html, page3.html... And in a couple of the tpl files I would like to do something like {if $page_data.filename|in_array($config.Appearance.fw mp_pages)} display image{/if} Does anyone have any idea how to do this? Thanks, FWM.
__________________
X-Cart 4.1.9 X-Cart 4.4.1 X-Cart Platinum 4.6.1 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Add Array to xcart_config table
Sure, this can be done. I don't perfectly understand what you want to do, but I can help you initialize a variable and query a table to build your array and load your variable.
I am performing a search for example code, will check back with it in a minute. -Mike
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||
|
|||||||
Re: Add Array to xcart_config table
Thanks for the note,
However I figured out a different way to do the same thing.
__________________
X-Cart 4.1.9 X-Cart 4.4.1 X-Cart Platinum 4.6.1 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Add Array to xcart_config table
Good deal. For future reference I have found that postauth.php is a great place to initialize site wide custom variables.
-Mike
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|