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

How can I add a Custom Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-29-2005, 06:04 AM
 
dejital dejital is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 28
 

Default How can I add a Custom Page

Hi everyone, I am rather a newb so please any help will be appreciated.
I am trying to add a custom page to the cart that can perform as follows:

Basically I want to add a link to the Categories section that says
"products from $15 to $25"
This link would take the user to a page that will out put all the products that fit that criteria (or any other customized criteria).

My store will be selling wine, so another example would be a link that said
"Wines from California"
This link would lead to a page that only listed products that originated from california dynamically.

Could someone please guide me on how to make a custom page that can produce this sort of dynamic content?
Thsnks!
__________________
Dee in the house
X-Cart 4.4.5
Apache 2.2.22 (Unix)
PHP 5.3.13
Reply With Quote
  #2  
Old 09-29-2005, 06:12 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Just add new categories. Products can go under multiple categories by selecting them in the 'modify product' area.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 09-29-2005, 06:30 AM
 
dejital dejital is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 28
 

Default

Thanks for the reply,
but that would not be dynamic..... Plus if I had thousands of products it would be tedious putting 100s of them into these categories separately.

Isn't there a simpler way using the sql within the smarty tags/x-cart system to list the products dynamically based on certain criteria that is passed in the url maybe?
__________________
Dee in the house
X-Cart 4.4.5
Apache 2.2.22 (Unix)
PHP 5.3.13
Reply With Quote
  #4  
Old 09-29-2005, 09:33 AM
 
rcci@mindspring.com rcci@mindspring.com is offline
 

Advanced Member
  
Join Date: Nov 2004
Location: Youngsville, NC
Posts: 48
 

Default

You *could* create product variables (in product creation screen) to indicate your breakouts....

Variable1: Price level, i.e. $15-$25, $25-35, etc.
Variable2: Location, i.e. California, Australia, France, etc.
Variable3: Wine Type, i.e. Shiraz, Merlot, etc.

...and so on.

Then, create static pages for each variable you wish to search on (they will appear automagically in the menu) and set it to parse Smarty (in the static pages setup for each page), and using Smarty code, pull based on those variables.

Simplified, but it seems to me that while digging through all the templates during my winery setup, I saw code that could fairly easily be lifted, changed and used to do this, just insert the relevant variables to search on.
__________________
Vicky Rowe
Satori Digital Marketing
http://www.satoridigitalmarketing.com
X-Cart Pro Version 4.0.13, running on a Unix server
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:48 AM.

   

 
X-Cart forums © 2001-2020