![]() |
Re: can different product templates be used?
Yes exactly, my business need doesnt need the xcart default layout.
My home page is index.php I have a menu Home Products Articles Forum Products linked to xcart home.php Products -> Product 1, Product 2, Product 3, Product 4 Clicking on the products 1.Categories 1 - Product 1 , Product 2 2.Category 2 - Product 3, Product 4 My question is can I have different product templates for each of the products. as I am just hyperlinking the product from my menu. Please let me know, if this clarifies, and let me know if this is possible. Thanks Prakash Apologies Asked in the thread: (PS -- Padraic busts his butt here to help everyone, and your pissy response back is not a good way to start. You didn't follow the forum guidelines, so you were asked to post your version. Basic stuff. Please respect our moderator! Ballinor I am sorry, I have updated the signature. I was pissed, because i typed my question, and the first mail, i see is someone asking me to update my signature.) |
Re: can different product templates be used?
yes, you can easily have different product (and/or category) template layouts ona per-product or per-category basis.
It has NOTHING to do with "linking". You probably shouldn't use that terminology, as it will confuse the issue. You have 2 ways to do this: 1. use if/else statements, as suggested by Padraic 2. use the mod(s) from websiteCM. If you want to see how the if/else in products.tpl work, on a very basic way, on my site I have 2 different products_t.tpl variations... all are determined by an if/else in products.tpl. Some products are displayed with a 2-up category page, some with 3, some just use the default products listing. Code:
{if $usertype eq "C" and $cat eq "20" or $cat eq "11" or $cat eq "3" or $cat eq "1" } This is for CATEGORY pages -- but it all works the same way... this is a VERY simple way to implement this. You can make it much more complicated as your store requires. The thread Padraic suggested is a great start. |
All times are GMT -8. The time now is 05:32 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.