Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

static pages make sense?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-25-2004, 12:43 PM
 
spoonernyc spoonernyc is offline
 

Member
  
Join Date: Apr 2004
Posts: 18
 

Default 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.
Reply With Quote
  #2  
Old 04-26-2004, 01:52 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 04-26-2004, 07:09 AM
 
spoonernyc spoonernyc is offline
 

Member
  
Join Date: Apr 2004
Posts: 18
 

Default

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!
Reply With Quote
  #4  
Old 04-26-2004, 07:19 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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"} Product Title: {$product.product} Some link etc... {elseif $product.productid eq "16134"} Product Title: {$product.product} Some Other links etc... {/if}

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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:05 AM.

   

 
X-Cart forums © 2001-2020