| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
layout change | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||||
|
|||||||||
|
home.php picks customers/home.tpl
product.php also picks customers/home.tpl but for products.php no tpl file is associated. how can i declare a .tpl file for products so that i can design my layout as needed. thanks |
|||||||||
|
#2
|
|||||||||
|
|||||||||
|
products.php performs search (with include/search.php) and results are assing to search_result.tpl which calles other tpls...
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||||
|
|||||||||
|
i have created a categories.tpl and i want this layout to be applied for only subcategories and products under a category.
How can i do this. any help? Quote:
|
|||||||||
|
#4
|
|||||||||
|
|||||||||
|
Use an if statement something like
{if $cat eq 'xxx'} {include file=" yyy.tpl"} {else} {include file="zzz.tpl"} {/if}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#6
|
|||||||||
|
|||||||||
|
Use it in the template that calls the template you want to replace and you can use it for any category. webmaster mode will tell you which template
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||