Jump to content
PeterVajda

Unit price not converted to current currency

Recommended Posts

Hello,

I am using 1.7.6.1 and I discovered a bug with unit price not being converted to the current currency.

Each product on my site has two options: 1 piece or 12 pieces (box). The unit price for a piece in a box is calculated as box price minus value.

Example:

1 piece costs 10 euros. Unit price is 10 euros.
Box of 12 pieces costs 110 euros. Unit price is 9.167 euros. I enter it in the admin as impact on unit price as 110 euros - 100,833 euros to get the right price.

So far so good.

When the customer change the currency, he/she gets the right price for a 1 piece product and for 1 piece unit price. But the unit price for box is incorrect. Instead of converting the value 100,833 euros and deducting it from box price to get unit price, it deducts 100,833 of any other currency from the box price.

I think the issue might lay in ProductController.php, there is nothing about currency conversion for unit price, but I miss the knowledge to go any further.

Any help will be appreciated.

Thank you!

 

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More