Forums / Bug Reports / Sale does not apply to attributes with Specials Condition: Ignore Specials Price

Sale does not apply to attributes with Specials Condition: Ignore Specials Price

Views: 1,987

Results 1 to 2 of 2
22 Nov 2012, 3:07 AM
#1
swguy avatar

swguy

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.

23 Jun 2013, 12:59 AM
#2
gian123 avatar

gian123

New Zenner

Join Date:
Sep 2010
Posts:
6
Plugin Contributions:
0

Re: Sale does not apply to attributes with Specials Condition: Ignore Specials Price

Hi did this work?

I need attributes to apply salesmaker special to it, but not replace the other specials.

This is really driving me nuts as no where can I see an answear and this has been the only thing to come close. and I am not confident in changing files alone

Thanks
John