magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

About ByPercent.php under different currencies

Open tmp2000 opened this issue 12 years ago • 4 comments

I found since magento 1.7 to 2.0 ,the logic is the same for ByPercent shopping cart rule for $discountData->setBaseOriginalAmount(($qty * $baseItemOriginalPrice - $item->getDiscountAmount()) * $_rulePct); The problem exists for mutli currencies: If quote currency is different with web currency,and there is already one shopping cart price rule applied before for the item in the shopping cart,then the $item->getDiscountAmount() would be the discount value under the quote currency,while $baseItemOriginalPrice is web currency ,so it would be wrong for this substract logic.

tmp2000 avatar Jun 04 '14 05:06 tmp2000

@tmp2000, thank you for reporting this issue to us! We created the ticket in the backlog and will have the person responsible for the area take a look at it. We will get back to you once we complete the analysis.

verklov avatar Jun 04 '14 11:06 verklov

Ticket: MAGETWO-25084

vpelipenko avatar Jan 19 '15 12:01 vpelipenko

@tmp2000, fix will be delivered with next publication. Thank you for your contribution.

mcspronko avatar Jan 22 '15 09:01 mcspronko

This issue is fixed and available in 0.42.0-beta5.

vpelipenko avatar Jan 23 '15 21:01 vpelipenko