X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Display more featured products (https://forum.x-cart.com/showthread.php?t=21437)

fhiremark 04-28-2006 11:08 AM

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.

balinor 04-28-2006 05:14 PM

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

fhiremark 04-28-2006 08:18 PM

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?

fhiremark 04-30-2006 04:38 PM

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

Any help is appreciated -- Thanks


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.