Jump to content

Product Calculation Error on Attribute Price Increase


Recommended Posts

Hi

I have a product is a pair of sunglasses, it has 2 additional attributes namely

 

Color

Additional Lenses

 

Now the price is set to 1099 incl tax as normal but when you choose an additional lense i want the price to increase by 150 for example.

 

Now i have set the attribute to increase with 150 on the price.

 

This works but the problem is when you click on the category here

 

http://www.emarce.co.za/category.php?id_category=9

 

the price is correct at 1270.00

 

But when i actually click on the item to go into detail

 

http://www.emarce.co.za/product.php?id_product=46

 

The price has changed to 2595.25

 

But when i add the product to my cart, the price is the correct price at 1270.00

 

can anyone tell me what the problem is ??

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Today I had the same error, its because of the currency…

 

In themefolder/js/product.js

 

 

var taxExclPrice = (display_specific_price && display_specific_price >= 0  ? (specific_currency ? display_specific_price : display_specific_price * currencyRate) : priceTaxExclWithoutGroupReduction) + selectedCombination['price'] * currencyRate;

if (display_specific_price)
productPriceWithoutReduction = priceTaxExclWithoutGroupReduction + selectedCombination['price'] * currencyRate; // Need to be global => no var

 

If you delete " * currencyRate;" at the end of each sentence it works fine, i have not tested it in other currencies, just in my default, because I only offer one currency in my shop. If you use more than one currency at a time, maybe something breaks.

Maybe setting default currency rate to 1 makes it run smoothly without having to delete that code part.

Edited by mercro (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

Same problem in product.tpl

 

The problem only occurs when a fix price discount is set and the currency conversion rate is not 1.

 

Clicking on attributes is also decreasing the displayed discount ammount and raising the displayed our_price_display.

 

Suggested solution not able to fix due to multiple currencies.

Any other solutions other than not using the specific price amount option?

 

I believe this is a bug...

Link to comment
Share on other sites

×
×
  • Create New...