On Monday, June 18, 2007 3:52 PM cfdvlpr <> said: > Now, the prices are dynamically generated, but only for 1 size of > product. > I'm hardcoding the size of the product where you see the 0. > However, I'm not sure how to take this to the next step and to take > into account the size.
By "size" do you mean small, medium, and large? > Do I need a more complicated variable structure? You somehow need to pass the "size" into that function along with all your other data so that you can replace all those zeros with a variable called "size". > Any examples out there like this that I can take a look at? I'm not even completely sure what you're doing. Let's say 1 product costs $10. But 5 or more products costs $9. So with this function, when someone updates the qty in their cart from <4 to 5+, the price per unit will change from $10 to $9. Right? If so, that's why I'm confused about what "size" means. If "size" is an attribute of the product (e.g. color, material, etc.) then you should be returning the price break levels for that specific product (a brown, large, widget made of clay) and not fishing them out of an array. But I have a feeling that's not what size means... Chris.