Hello Zen Cart
my first post, and I'm sure I wont be the last to say what a great piece of work.
I've been playing about with various aspects and can grasp the basis of most OK...
except Attribute Pricing!
I've read a fair bit of this area of the forum and judging by the number of confused posters it seems I'm not alone.
Honestly... The terminology doesnt help. It would be a great asset if somebody who understands how it's supposed to work could set it out very clearly at the top of a sticky and particularly explain:
how the calculations are supposed to work, what formula are applied at what points?
what a price factor is?
what a price factor offset is?
and what the diff is between a price factor and a 'one time factor'?
Here's a typical case from my situation with some general numbers:
Product with a basic price of 500 (call it Full Price, List Price, MRRP or whatever)
I want to give 20% discount off that = 100, which makes it a 400 sell price.
Lets say the product has 3 options which mean we need to:
add 5% and 15% of the price
subtract 10% of the price
To get a 5% addition I figured out that I can use a price factor of 0.05 and an offset of 0
or a price factor of 1.05 and an offset of 1
for the 15% case, a pf of 0.15 and offset of 0, or 1.15 and 1 will work.
And these work consistently on the Product Info page, and show correct %ages of the Discount price in the Options drop down. eg
400 x 5% = 20, 400 x 15% = 60
But a minus %age...? Well I can get a -10 figure to appear on the 'Edit Attributes' page by using a Price Factor 0.0000 and Offset -0.1000
But doesnt seem to be possible to get a minus 10% figure to show in a drop down on the Product Info page. It always shows up as +40
And then there appears to be a (serious) problem when an item with a %age priced att. gets added to the cart...
According to my testing it seems that the %age that gets added when the item gets bought:
If the %age is + its taken to be a percentage of the Full Price. namely 25 and 75 (not 20 and 60)
If the %age is minus (I got a -40 figure showing in the Edit Atts screen), the cart ignores it completely and just uses the 400 discount price.
The logic may or may not be correct, but none of these %ages added to the cart are what the customer has selected in a drop down.
I've tried various changing various combinations of these product table fields:
products_priced_by_attribute
products_discount_type
products_discount_type_from
But it always comes out wrong (or right?) in the cart, using the given %age of the Full Price
What else?
I didnt go rummaging about in the code yet so its all pretty much virgin. I did try Kuroi's stock by attributes but that makes no difference.
Or maybe I'm missing the obvious, and just dont get how its supposed to work.
Anyway, can anybody throw light on this please?
thanks
l.
ps - great product!
Bookmarks