Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Reduce new product list


hi2_damage

Recommended Posts

Posted

Can anybody help me reduce the number of products in the new product category. The entire catalog is shown in this section and I would like to reduce it.

Thanks

Posted
Thanks for your help but I mean the the text at the top of the section as follows;

 

Displaying 1 to 5 (of 624 new products)

 

It seems to take all the product sin the shop as being new instead of just a few.

 

Any ideas?

 

 

That's exactly what the database query does. It selects all products in the database odered by date.

 

You can change it, if you edit the query and add a range of dates between what you think it's new. But beware of getting empty results, if you didn't add new products for, let's say four weeks.

 

Other than this, to avoid getting empty results, you can add a ' LIMIT 0 , 5' to the query and only the last five added products are displayed.

 

Hope that helps.

Posted

What I prefer to do is remove the new products of the month all together and code in the featured products that I want to use in the define text in the includes/languages/english/index.php define('TEXT_MAIN', 'in here');

 

That way I can put anything there I want to when I want to.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...