Contributions
Control New Products module for 2.2-MS2
By default, OsCommerce shows the latest added items as new items both on the startpage and on the category pages.
But the default version of OsC does not handle when to remove these items from the "New products in.." box.
If you are not frequently adding new items to your shop, this looks pretty dull after a while, since the same products
lay there all the time.
This Mod lets lets you choose for how long newly added items should be shown in the "New products in.." box on the frontpage.
Default is 30 days, but it can be changed to that ever you like.
You can choose if you want to show the box with a custom text like "No new products this month" or not show the box at all.
See comments in new_products.php for more info.
The thread for this contribution is:
http://forums.oscommerce.com/index.php?showtopic=141502
Enjoy!
/ Zipper
Expand All / Collapse All
This is again... the full package, includes all 3 files controlling new products, plus updated
instructions.
Include SQL-file. If you use the Contol_New_Products-sql.sql Then you can define EXPIRE_NEW_PRODUCTS
in your admin shop in configuration/Control New Products [New products in..]
Thanks to "coolcl" for the small add on ' . EXPIRE_NEW_PRODUCTS . ' to the catalog/includes/languages/ files just to
make life easier.
But ther was a littel bug in catalog/includes/languages/english.php... define('TABLE_HEADING_EXPIRE_NEW_PRODUCTS', 'New .........
'); in the end of the line was missing...
Great mod! Thanks.. to all special "zipper" for starting this!
Just a small add on ' . EXPIRE_NEW_PRODUCTS . ' to the catalog/includes/languages/ files just to make life easier.
Great mod! Thanks..
This is the full package, includes all 3 files controlling new products, plus updated instructions. Include SQL-file. If you use the Contol_New_Products-sql.sql Then you can define EXPIRE_NEW_PRODUCTS in
your admin shop in configuration/Control New Products [New products in..]
This is a great mod!
I just clarified step 1 and corrected step 3 in the readme.txt.
Step 3 should read:
catalog/includes/modules/products_new.php
Attached file includes only the readme.txt
Missed one important file. This is the full package, includes all 3 files controlling new products, plus updated instructions.
Thanks to zipper for the sql code that made life better and making a forum suggestion into a contribution! This upgrade is based on his SQL code for calculating a cutoff date, but this contribution update uses the original new-products.php and completes the other half of the project, which is controlling the new products cutoff date when someone clicks on the new
products info box.
Also, there should not be any changes here that will not be compaitble with any other modifications you may have made to these files, since I am using the original osCommerce files, and have only made minor changes, maintaining the integrety of the original coding.
16/3-05
Some minor problems fixed.
By default, OsCommerce shows the latest added items as new items both on the startpage and on the category pages.
But the default version of OsC does not handle when to remove these items from the "New products in.." box.
If you are not frequently adding new items to your shop, this looks pretty dull after a while, since the same products
lay there all the time.
This Mod lets lets you choose for how long newly added items should be shown in the "New products in.." box on the frontpage.
Default is 30 days, but it can be changed to that ever you like.
You can choose if you want to show the box with a custom text like "No new products this month" or not show the box at all.
See comments in new_products.php for more info.
The thread for this contribution is:
http://forums.oscommerce.com/index.php?showtopic=141502
Enjoy!
/ Zipper
Note: Contributions are used at own risk.