This is a discussion on CustomerDiscount within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; if you using specials products price.... and customer login first... on the listing product, CustomerDiscount must not applied on special ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| 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 = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } 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 = ' ' . $currencies->display_price_nodiscount($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ' . $currencies->display_price_nodiscount($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } 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 More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||