| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
can different product templates be used? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() 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.)
__________________
Xcart Gold Linux LAMP Server Xcart Version 4.1.2 |
|||||||
#12
|
|||||||
|
|||||||
![]() 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:
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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|