X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   layout change (https://forum.x-cart.com/showthread.php?t=61679)

RedandBlue 11-17-2011 06:53 PM

layout change
 
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

cflsystems 11-17-2011 06:59 PM

Re: layout change
 
products.php performs search (with include/search.php) and results are assing to search_result.tpl which calles other tpls...

RedandBlue 11-17-2011 07:12 PM

Re: layout change
 
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:

Originally Posted by cflsystems
products.php performs search (with include/search.php) and results are assing to search_result.tpl which calles other tpls...


cflsystems 11-17-2011 07:34 PM

Re: layout change
 
Use an if statement something like

{if $cat eq 'xxx'}
{include file=" yyy.tpl"}
{else}
{include file="zzz.tpl"}
{/if}

RedandBlue 11-19-2011 09:25 PM

Re: layout change
 
should i add this in home.php ?

and how can i make this work for all categories not for one category

cflsystems 11-20-2011 08:12 AM

Re: layout change
 
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


All times are GMT -8. The time now is 06:34 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.