![]() |
static pages make sense?
Hi there-
I realize I am about to get "boo"-ed out of here but I am building a store that will only have about 12 products and all of the product page layouts are very different (highly graphic based*), so the efficacy of templating is kinda lost on me. Does anyone have any experience with building static PHP pages and then just using the variables from x-cart to populate the data? All of the smarty templates are just made up of TOO MANY modules and variables. I dont need all of this extra stuff... just a product listing, shopping cart and checkout... no mailing lists. top sellers, etc etc thanks for any help spoonernyc * NOTE I tried to disuade the client from going with a totally graphicly crazy layout store but this is what they want. |
:arrow: http://smarty.php.net
With 13 {if $product.productid 1} (replace 1 with id of course) ... statements you could easily make product.tpl setup to display product listing setups. hth. ;) |
oh I see... so I could contain all of my layouts within one tpl file..
and just use "if then"-s to discern which product... thanks very much! now if every product page has addt. info links that go to once again (*sigh) a distinct layout pages can I use if $page =2 (second page layout) $page=3 (third page layout) for example in this URL http://www.sharpsusa.com/store/customer/product.php?productid=16133&cat=249&page=1 is the page variable used in other places? thanks ps I LOVE your little doctor character it is such a great icon for your company! |
You could easily use extra fields for this as you have a limit of 10 additional fields or just simply hardcode the links and info in the product.tpl page:
Code:
{if $product.productid eq "16133"} This is the basic jest, however if your client adds a new product your gonna need to make adjustments by hand since its not dynamic. hth. ;) |
All times are GMT -8. The time now is 01:22 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.