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

Display more featured products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-28-2006, 11:08 AM
 
fhiremark fhiremark is offline
 

Advanced Member
  
Join Date: Apr 2006
Location: New York
Posts: 66
 

Default Display more featured products

Hello,

I just got the script and I started tweaking the templates etc. Everything was pretty smooth until this:

I have set the products per page option to 9. This is fine, however, how do I show more than 9 products on the featured product page without having to click next?

In short, I don't want the script to divide the $f_products array into 9s, I want the $f_products array to show continuously without being divided into pages.

Any help is appreciated, Thanks.
__________________
X-cart GOLD v 4.0.18
Reply With Quote
  #2  
Old 04-28-2006, 05:14 PM
 
balinor balinor is offline
 

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

Default

Featured products uses the same template as products, so if you want to display a different number of featured products you will need to create a duplicate of products.tpl or products_t.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-28-2006, 08:18 PM
 
fhiremark fhiremark is offline
 

Advanced Member
  
Join Date: Apr 2006
Location: New York
Posts: 66
 

Default

Hey Balinor,

It seems like in featured.tpl, if $total_pages is greater than 2 I will have my featured products indexed by a navigation. This makes me believe that my $f_products array is divided by the total number of products allowed. I'm not sure on the impact of this on the script, but do you know where the $total_pages variable is calculated? -- I think there's got to be an easier way to fix this without actually duplicating products_t.tpl perhaps placing some special conditions on $total_pages for $f_products?
__________________
X-cart GOLD v 4.0.18
Reply With Quote
  #4  
Old 04-30-2006, 04:38 PM
 
fhiremark fhiremark is offline
 

Advanced Member
  
Join Date: Apr 2006
Location: New York
Posts: 66
 

Default

Hmm.. does anybody know where the $total_pages variable in featured.tpl is made?

Any help is appreciated -- Thanks
__________________
X-cart GOLD v 4.0.18
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 04:58 AM.

   

 
X-Cart forums © 2001-2020