Contributions

Features (Category Index)
Search: 

CustomerDiscount

This contribution adds a Discount Rate per Customers, the administrator can
easily edit discounts from the administration Customers panel.
Every Customers has its own discount rate.
The prices in catalogue are already shown with the applied discount, unlike
other contributions like this that use the "order_total" method, to show a
final discount.
Discount rate is applied on every price, also on product attributes, but it is
not applied on special prices.

Please visit osCommerceITalia @ http://www.oscommerceitalia.com

Expand All / Collapse All

Bug Fixes update: if you using specials_products_price 3 Aug 2007

if you using specials products price....
and customer login first...
on the listing product, CustomerDiscount must not applied on special prices...

***Script Change***
IF Special Price CHANGE display_price TO display_price_nodiscount

so.. lets change...

###Begin.......

catalog/includes/modules/product_listing.php

Search for:
********************
case 'PRODUCT_LIST_PRICE':
$lc_align = 'right';
if (tep_not_null($listing['specials_new_products_price'])) {
$lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice"><font size="6">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</font></span> ';
} else {
$lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ';
}
break;

********************


Replace With :
********************
case 'PRODUCT_LIST_PRICE':
$lc_align = 'right';
if (tep_not_null($listing['specials_new_products_price'])) {
$lc_text = ' <s>' . $currencies->display_price_nodiscount($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice"><font size="6">' . $currencies->display_price_nodiscount($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</font></span> ';
} else {
$lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ';
}
break;
********************

##Done.... that it....


This is a full package. by hOZONE 18 Nov 2003

sub total fix and advanced cartbox v2 contribution fix 16 Nov 2006
The installation file 10 Jul 2006
CustomerDiscount hOZONE 18 Nov 2003

Note: Contributions are used at own risk.