Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New products for the month of.......


Ken_Shea

Recommended Posts

The simple answer is no! they way the code is writen it just defaults to showing a set number of products from db.

To chnage this you will need to edit the code! or make a new mod. You need to introduce "products_date_added" into the equation.

Then you can filter what is displayed something like this,(note not been tested) or ask a developer to do this mod for you.

<?php
$mydate = "products_date_added";
if ($mydate < strtotime('-30 days'))
{
      ?>

 

 

Link to comment
Share on other sites

There are addons that allow you to change what is shown.  Search the addons area for featured products. There are several. Depending on your version of oscommerce some may need altering but there are BS versions available. You will then be able to select which products show on the front page and also in some cases a new page that only shows the featured products. Select the right addon and its a simple case of uploading the files and clicking install and changing a few settings before you can start adding products.

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

Thanks, I'll look into this.

Wonder where these products are selected and why?

Seems like they would be selected from the data base "products_date_added" colums but apparently not.

 

thanks for the input

Link to comment
Share on other sites

49 minutes ago, Ken_Shea said:

Seems like they would be selected from the data base "products_date_added" colums but apparently not.

The problem is if new products were limited in anyway to a time limit form adding, say 30 days you would either need to constantly add new products or you would have a bank space in place of new products.

As it is now if you add a new product it is given priority in the new products! So as you add new products they are autocratically picked up and displayed.

This means you have one less thing to worry about.

With most of the add-on you need to first add add new product then go to the addon and select and set it for display! Now that’s not bad if you only have a few products but can be a pain if you have larger numbers to process.

The stock osC is a good compromise in that new products get priority but if no new products are available the space still is used to show products.

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...