Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Price Break & Product Accessory Multiplier


Recommended Posts

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 :)

Link to comment
Share on other sites

  • 2 months later...

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 by Karloenzo
Link to comment
Share on other sites

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))));
Link to comment
Share on other sites

  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...