Administrator
- Join Date:
- Feb 2006
- Location:
- Tampa Bay, Florida
- Posts:
- 10,732
- Plugin Contributions:
- 56
Sale does not apply to attributes with Specials Condition: Ignore Specials Price
When creating a sale, using "Specials Condition: Ignore Specials Price - Apply to Product Price and Replace Special", on a product priced by attributes, it seems like the sale is not applied to the attributes.
Using "Specials Condition: Apply SaleDeduction to Specials Price - Otherwise Apply to Price" does correctly apply the sale to attributes. (Of course, this may not be the desired behavior if there are specials on the products going on sale, since now the products will be double discounted.)
Possible fix: (lines are v 1.5.0; file is includes/functions/functions_prices.php)
line 503 - add $discount_type_id 5 to the list being checked
if (($discount_type_id == 120 or $discount_type_id == 1209) or ($discount_type_id == 110 or $discount_type_id == 1109 or $discount_type_id == 5)) {
line 538 - use multiplicand of $sale_maker_discount, not $special_price_discount
$calc = ($attributes_amount * $sale_maker_discount);
Thoughts?
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.