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

Changing the # of products in Latest Additions

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 02-23-2007, 03:39 AM
 
TheMommyMarketplace TheMommyMarketplace is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 41
 

Default 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 =).
__________________
Amy

X-cart Pro 4.1.9
www.themommymarketplace.com
Reply With Quote
  #2  
Old 02-23-2007, 04:21 AM
 
balinor balinor is offline
 

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

Default Re: Changing the # of products in Latest Additions

Latest additions...is this an add-on or do you mean featured products?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-23-2007, 04:24 AM
 
TheMommyMarketplace TheMommyMarketplace is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 41
 

Default Re: Changing the # of products in Latest Additions

I think it's an add on it is above the featured products: www.themommymarketplace.com .
__________________
Amy

X-cart Pro 4.1.9
www.themommymarketplace.com
Reply With Quote
  #4  
Old 02-23-2007, 04:27 AM
 
balinor balinor is offline
 

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

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-23-2007, 04:55 AM
 
TheMommyMarketplace TheMommyMarketplace is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 41
 

Default Re: Changing the # of products in Latest Additions

I just looked at the files & it is from Firetank. It is named Newest Products.
__________________
Amy

X-cart Pro 4.1.9
www.themommymarketplace.com
Reply With Quote
  #6  
Old 03-20-2009, 07:56 AM
  The Digichick's Avatar 
The Digichick The Digichick is offline
 

Senior Member
  
Join Date: May 2007
Posts: 111
 

Default 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!
__________________
Kim Lichtfuss, owner of The Digichick
X-Cart Pro v4.5.2 (with X-Special Offers)
LAMP [Apache 2.2.11 | PHP 5.2.8 | MySQL 5.0.67-community]
Reply With Quote
  #7  
Old 03-25-2009, 01:45 PM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default 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
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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 07:56 PM.

   

 
X-Cart forums © 2001-2020