JadedMan Posted May 17, 2004 Posted May 17, 2004 I am using the Price Break contrib (http://www.oscommerce.com/community/contributions,1242) and I would like to use the Product Accessory Multiplier contrib (http://www.oscommerce.com/community/contributions,1936), because I would like to have product attributes add to the price as a percentage of the base price, which changes depending on the quantity you select. I have the Price Break contrib working properly, but when I add the Product Accessory Multiplier contrib, the shopping cart does not add properly when I use a percentage as opposed to a normal + or -. You can see this in action by going to http://www.jubilee-store.com and selecting a product (there is only one there currently), selecting an attribute with an '*' (Size XXL), select quantity of 12 and add to cart. The price for the items is correct, but the sub-total is incorrect. It appears that the cart is taking the item total and multiplying it again by the quantity. The cart functions normally when you select a '+' attribute (Size XXXL). Any help is appreciated :) Quote
Karloenzo Posted August 7, 2004 Posted August 7, 2004 (edited) I thing i've solved the BUG :D in catalog/includes/classes/shopping_chart line 258 new code $this->total = ($this->total * $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax))/$qty; instead of old code $this->total = $this->total * $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); now it shows korrect (i think), i don't know why, but it works :blink: Karloenzo Edited August 7, 2004 by Karloenzo Quote
Karloenzo Posted August 7, 2004 Posted August 7, 2004 sorry i'am silly also can work: $this->total = $this->total * tep_add_tax($attribute_price['options_values_price'], $products_tax); Quote
Karloenzo Posted August 7, 2004 Posted August 7, 2004 Now i have a ultimate Idea. I have the following line often tested an it works now without any errors and the prices are correct (in my shop with b2b Contrip). $this->total = ($this->total + ($qty * (tep_add_tax((($products_price * $attribute_price['options_values_price'])-$products_price), $products_tax)))); Quote
adiwillow Posted May 1, 2005 Posted May 1, 2005 great ! thanks for this.. it's been bugging me for a few days now... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.