X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Changing the # of products in Latest Additions (https://forum.x-cart.com/showthread.php?t=29112)

TheMommyMarketplace 02-23-2007 03:39 AM

Changing the # of products in Latest Additions
 
Right now 4 products show on my home page under Latest Additions. How do I change that to 6? I'd like it to balance =).

balinor 02-23-2007 04:21 AM

Re: Changing the # of products in Latest Additions
 
Latest additions...is this an add-on or do you mean featured products?

TheMommyMarketplace 02-23-2007 04:24 AM

Re: Changing the # of products in Latest Additions
 
I think it's an add on it is above the featured products: www.themommymarketplace.com .

balinor 02-23-2007 04:27 AM

Re: Changing the # of products in Latest Additions
 
Ahhh...will need to know which one it is in order to help I'm afraid :( Firetank's perhaps? Moving to Third Party Add-Ons.

TheMommyMarketplace 02-23-2007 04:55 AM

Re: Changing the # of products in Latest Additions
 
I just looked at the files & it is from Firetank. It is named Newest Products.

The Digichick 03-20-2009 07:56 AM

Re: Changing the # of products in Latest Additions
 
What you want to do is edit the fts_newest_products_display.tpl file in two places, replacing the "2" with "$config.Appearance.products_per_row":

1. Near line 6, replace this line
Code:

{if %i.first% or %i.index% is div by 2}
with this:
Code:

{if %i.first% or %i.index% is div by $config.Appearance.products_per_row}

2. Near line 27, replace this line
Code:

{if (%i.index% + 1) is div by 2 or %i.last%}
with this:
Code:

{if (%i.index% + 1) is div by $config.Appearance.products_per_row or %i.last%}

Hope that helps! :mrgreen:

Acquamarina 03-25-2009 01:45 PM

Re: Changing the # of products in Latest Additions
 
Hi,

I just tried the suggestion but the actual number of items to be displayed is in fts_newest_products.tpl

Change the number on about line 37:

{assign var='num_products' value=4}

Change the 4 to whatever number of products you wish to display. It worked for me, we have the same version, should work for you too.

Now if I could only figure out how to apply products.tpl to the newest products mod display, I'd be very happy!

Hope this helps!

Vera


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

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