mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
Added default currency for updateOrderItems
This commit is contained in:
parent
06ca38be56
commit
b9445e3cd3
@ -1805,6 +1805,11 @@ class RetailcrmHistory
|
||||
];
|
||||
|
||||
$orderdb = new Order($orderId);
|
||||
|
||||
if (null === Context::getContext()->currency) {
|
||||
Context::getContext()->currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
|
||||
}
|
||||
|
||||
foreach ($orderdb->getProducts() as $item) {
|
||||
if (isset($item['product_attribute_id']) && 0 < $item['product_attribute_id']) {
|
||||
$productId = $item['product_id'] . '#' . $item['product_attribute_id'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user