| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Heres A Tough One For You | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Heres A Tough One For You
I to be able to switch the template when I switch to a different section.
Example: For the Category Night Life I want a darker night time feel. But for the Wedding Category I want a brighter look and feel to the page. If someone could assist on this concept it would be greatly appreaciated. Thanks, John 7 |
|||||||
#2
|
|||||||||
|
|||||||||
Just an idea, but you could store CSS (either a pointer or the actual CSS code) in the category database (or a separate cross referenced database). This could either replace the existing tags, or you could have specific tags for the category page.
In reality it shouldn't be ~that~ difficult to do. Brian |
|||||||||
#3
|
|||||||||
|
|||||||||
I have a particular mod that I've labeled skin_swap if you want to search the forums for this it may help you in doing what you want, however it requires alot of modification backend wise to the cart in order for this functionality to exist.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#4
|
|||||||
|
|||||||
Good question, I have a similar problem.
My problem is that I have two templates : home and (non-home)
The first is the homepage, the other is everything else. So when a user comes to the homepage, there is one look and every other page has a different look. In the customer file home.tpl calls head.tpl and then calls home_main.tpl . Basically I need a solution that has two X-Cart templates/setups. |
|||||||
#6
|
|||||||
|
|||||||
Hmmm perhaps this...
I was thinking perhaps somehow I could setup two different home.tpl files and somehow have it switch between the different files. This would in effect allow me to change the look of the page.
Does anyone have any idea on how to make this happen? Thanks John7 |
|||||||
#7
|
|||||||
|
|||||||
I have an idea!
What if I install a second copy of xcart to a different directory but have it use the same database as the first copy.
And then in each copy have it use a different home.tpl I think this would do what I want. What do you think? Is this feasable? John7 |
|||||||
#8
|
|||||||
|
|||||||
I think the easiest way would be to amend home.tpl from:
Code:
to: Code:
You will need to create two other versions of the skin1.css file and insert the category ids of the two categories that you wanted.
__________________
ex x-cart guru |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|