Skip to content

About ByPercent.php under different currencies #581

Closed
@tmp2000

Description

@tmp2000

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.

Metadata

Metadata

Assignees

Labels

Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions