Hi I need a bit of help with this if someone has any ideas.
I have a set of attributes which are a set of radio buttons laid out in a grid format like this.
Column 1
250 (£90.00)
500 (£150.00)
750 (£200.00)
Column 2
250 (£110.00)
500 (£170.00)
750 (£220.00)
Column 3
250 (£120.00)
500 (£180.00)
750 (£210.00)
250, 500, 750 are the quantities for the order (please note the quantity in the quantity box will always be set to 1 so if someone selects 250 from column 1 it will add 1 x 250 = £90.00 to the cart)
This part works fine but then I have a more complex situation after that. Customers are then asked to select more attributes options but these are priced per individual item. These individual items when added to the cart need to be calculated according to the main set of attributes.
E.g. If 250 (£90.00) and Individual Item 1 = £0.03 was selected the calculation would be
250 = £90 + (250 x 0.03 = £7.50) = £97.50
So the quantity on the 250 radio would multiply a individual item 1 by 250.
The problem is that 250 is the name of the option and not a real quantity such as that found when you add a quantity in the quantity box. Also even if 250 was selected and it was an actual quantity that was added to the cart as if it was in the quantity box then it would need to be able to calculate 250 x Individual Item 1 (0.03) = £7.50 before adding to the cart and in order to add £90.00 + £7.50 together in the cart.
I've looked at using stock quantity attributes but I am unsure if it is intelligent enough to do the above calculation correctly. I'm not even sure if this is possible in zen cart.
I really would appreciate some help with this, I already have a cart set up with the attributes in place so can supply a url upon request, although the attributes layout is a bit messy due to development. As I said Column 1, Column 2, Column 3 work fine because they are straighforward. It is multiplying further individual items beneath these by the quantities in Column 1, Column 2, Column 3.
Hope that makes sense.
Thanks
Nick


Reply With Quote
