I've struggled with this issue before and it was covered somewhat in this thread:
http://www.zen-cart.com/forum/showthread.php?t=77659
I tried 1.3.8 hoping it was fixed, but the issue still appears to be there.
I have 2000 products to get into a project (real soon now!) and am hoping this can be resolved (or somebody can show me where I am going wrong!)
PROBLEM
Items with attributes that affect price do not calculate correctly when a 'Special' price is applied.
And there are 2 aspects:
1) The Attribute price as displayed on Prod info page
2) The combined price (Sale_Price + Attribute_Price) for product added to cart
STEPS TO REPRODUCE:
Using a virgin Demo Zen Cart 1.3.8 install:
add a new category = 'My New Cat'
add a new product = 'My New Product', Price = 200
go to attribute controller and use existing attributes to add
attributes to 'My New Product' as follows:
Color->Red
prefix +
Price: 0.00
Price Factor: 0.00
Price Factor Offset: 0.00
Color->Orange
prefix +
Price: 0.00
Price Factor: 1.2
Price Factor Offset: 1.00 (= +20%)
Color->Yellow
prefix -
Price: 0.00
Price Factor: 0.90
Price Factor Offset: 1.00 (= -10%)
Product is NOT 'Price by attribute'
Attribute switches are all as follows:
Used For Display Purposes Only: No
Attribute is Free When Product is Free: Yes
Default Attribute to be Marked Selected: No
Apply Discounts Used by Product Special/Sale: Yes
Include in Base Price When Priced by Attributes: Yes
Attribute Required for Text: No
These settings will display the attribute prices as:
Red
Orange ( +40.00 )
Yellow ( -20.00 )
PLEASE NOTE: These are the correct attribute prices
Items added to Cart show:
My New Product
* Color - Red £200.00 £200.00
* Color - Orange £240.00 £240.00
* Color - Yellow £180.00 £180.00
PLEASE NOTE: These are the correct combined product + attribute prices
Now, place this item on Special Offer at 100 via Admin Menu > Catalog > Specials
The Product Info Page now shows:
(£200.00) £100.00
Save: 50% off
This is correct.
The attribute prices display as:
Red
Yellow ( +10.00 )
Orange ( -5.00 )
PLEASE NOTE: The Yellow and Orange attribute prices are now INCORRECT.
They should be +20 and -10
Items added to Cart show:
My New Product
* Color - Red £100.00 £100.00
* Color - Orange £140.00 £140.00
* Color - Yellow £80.00 £80.00
PLEASE NOTE: The combined (sale_price + attrib_price) added to cart are now INCORRECT.
They should be 120 and 90
These incorrect attribute amounts are also DIFFERENT from the incorrect attribute prices displayed on the Product Info page.
SOLUTION:
I set out what I thought might be cause(s) of the problem(s):
http://www.zen-cart.com/forum/showpo...8&postcount=12
I'm still using these fixes for demo purposes on the project and (with very limited testing) they seem to work OK, but I dont know the code well enough to consider what else might be getting scrambled
Hoping someone can help with a solution to this.
thanks if you can
l.





