[英]Custom price for cart item not converting based on currency Magento 2
當我要在 checkout_cart_product_add_after 觀察者中通過以下方法將自定義價格添加到購物車項目時,它工作正常,但是當我要從購物車更改貨幣時,價值不會按照匯率轉換,因此任何其他方式將自定義購物車項目價格添加到購物車.
$customPrice = $getSlectedAttrOptions['current_price'];
$item->setCustomPrice($origCustomPrice);
$item->setOriginalCustomPrice($origCustomPrice);
$item->getProduct()->setIsSuperMode(true);
請看一下:
https://github.com/magento/magento2/issues/12493#issuecomment-352038477
似乎自定義價格僅用於管理區域,沒有考慮貨幣變化。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.