Zen Cart Logo
Forums / Features Wish List / SaleMaker: Lesser of Sales Price or Special Price

SaleMaker: Lesser of Sales Price or Special Price

Locked

Views: 1,094

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
22 Nov 2007, 03:17
#1
jstuff avatar

jstuff

New Zenner

Join Date:
Sep 2005
Posts:
20
Plugin Contributions:
0

SaleMaker: Lesser of Sales Price or Special Price

In SaleMaker, I recommend adding an option to the "If a product is a Special" menu such as:

Use Lesser of Sales Price or Specials Price

I needed this option and used something like the following code in the function zen_get_products_special_price in functions_prices.php (also in admin):

        switch($sale->fields['sale_specials_condition']){
...
          case 3:
            return number_format((($sale_product_price < $special_price) ? $sale_product_price : $special_price), 4, '.', '');
            break;

My specific situation is that I have items in a "Clearance" category with a Sale attached. I regularly put a group of items on Special, some of which are in the Clearance category, some of which are not. The Clearance Price is lower than the Special Price, but I want the items on Clearance to still use their Clearance Price. However, I also list daily loss leader items as Specials, some of which are also Clearance items, with a Specials Price lower than the Clearance Price. So, generally speaking, I want to use the lesser of the Specials Price or the Clearance Price.

Thanks,
Jason