Contributions
cieto Featured Products with description
cieto Featured Products with desc V1.0
Lets you show featured products in the main page with a short description.
You can set the short description in diferent languages.
The short description is not a short version of the description of each product. You have to write it in a diferent text box.
Expand All / Collapse All
***********************************
THIS IS NOT A NEW VERSION
***********************************
NO NEED TO DOWNLOAD, JUST REPLACE STEP # 1 FROM THE INSTALL INSTRUCTIONS WITH THE FOLLOWING
***********************************
In step #1, the following should be added to /admin/includes/languages/english/categories.php:
define('TEXT_PRODUCTS_SHORT', 'Products Short Description:');
define('TABLE_HEADING_FEATURED', 'Featured');
define('TEXT_PRODUCT_YES', 'Enabled');
define('TEXT_PRODUCT_NO', 'Disabled');
define('TEXT_BUY_NOW', 'Buy now');
define('TEXT_MORE_INFO', 'More information');
instead of
define('TEXT_PRODUCTS_SHORTDESCRIPTION', 'Products short Description:');
define('TEXT_PRODUCTS_FEATURED', 'Featured:');
define('TEXT_PRODUCT_YES', 'Enabled');
define('TEXT_PRODUCT_NO', 'Disabled');
define('TEXT_BUY_NOW', 'Buy now');
define('TEXT_MORE_INFO', 'More information');
Ironed out some minor bugs in categories and solved the issue of status switching not working thanks to Maz.
Ironed out some minor bugs in categories and solved the issue of status switching not working thanks to Maz.
Updated the readme.txt file and added a seperate readme file for making changes in the admin/categories.php file
Updated the Readme.txt file along with some minor corrections.
Just added the Buy Now image link
11/04/2003
File admin/categories.php
Replace the old categories.php from the last package. (Sorry)
11/03/2003 V2.51 MS2
*Many bugs fixed.
->Some functions where missing in the last release.
->Date available and featured until date now works.
->Featured status in update product page has previos value as default.
*New languages lines (I forgot them in the last release)
For support: http://forums.oscommerce.com/index.php?showtopic=63923
Upgrade for readme.txt
Missing step now added.
### [ Step 3 ] ##################
### File : admin/includes/functions/general.php
Replace this:
// Sets the status of a product
function tep_set_product_status($products_id, $status) {
if ($status == '1') {
return tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '1', products_last_modified = now() where products_id = '" . (int)$products_id . "'");
} elseif ($status == '0') {
return tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0', products_last_modified = now() where products_id = '" . (int)$products_id . "'");
} else {
return -1;
}
}
With this:
// Sets the status of a product
function tep_set_product_status($products_id, $status) {
if ($status == '1') {
return tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '1', products_last_modified = now() where products_id = '" . (int)$products_id . "'");
} elseif ($status == '0') {
return tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0', products_featured = '0', products_last_modified = now() where products_id = '" . (int)$products_id . "'");
} else {
return -1;
}
}
////
// Sets the featured status of a product
function tep_set_product_featured($products_id, $featured) {
if ($featured == '1') {
return tep_db_query("update " . TABLE_PRODUCTS . " set products_featured = '1', products_last_modified = now(), products_featured_until = '". date('Y/m/d', time() + 86400 * DAYS_UNTIL_FEATURED_PRODUCTS)."' where products_id = '" . (int)$products_id . "'");
} elseif ($featured == '0') {
return tep_db_query("update " . TABLE_PRODUCTS . " set products_featured = '0', products_last_modified = now(), products_featured_until = NULL where products_id = '" . (int)$products_id . "'");
} else {
return -1;
}
}
10/30/2003 V2.5 MS2
Many bugs fixed.
Cleaner files.
Less files to get this thing work.
No language files, minor modification to osC language files.
Now it's possible to use the green/red light button to activate a featured product.
Set featured products from the Contents. It's possible to create a product and assign the featured status right there with expire date.
The featured section in Catalog it's gone.
Configuration from admin:
Featured period (how many days do you want a featured product to be as featured when you click on the green light).
For support:
http://forums.oscommerce.com/index.php?showtopic=63923
CHANGELOG
04/20/2003 V2.1 beta
Now it shows only products from the category you are in!!! Thanks to Dreamscape
Configuration from admin:
Show or not the featured products.
Quantity of featured to show.
Columns in layout.
Words of description (from product's description) if short description it's not entered.
Cieto Featured Products v2 by Emiliano Castaņo <cieto@msn.com>
for osCommerce V2.2 CVS (http://www.oscommerce.com)
CHANGELOG
03/02/2002 V2.0
Cleaner files.
Posibility to set up as many columns as you want.
Shows only products from the category you are in.
Thanks to everyone
cieto Featured Products V1.5
Not tested in cvs 2.1 but it should work.. (just guessing)
Many fixed bugs from version 1.0.
Lets you show featured products in the main page with a short description.
You can set the short description in diferent languages.
The short description is not part of the description of each product. You should write it in a diferent text box.
Contact me if you have any problem with it.
cieto Featured Products with desc V1.0
Lets you show featured products in the main page with a short description.
You can set the short description in diferent languages.
The short description is not a short version of the description of each product. You have to write it in a diferent text box.
Note: Contributions are used at own risk.