[-] BO: Fix admin carts currency prices on view and listing
This commit is contained in:
1 parent
05410d764c
commit
3d8b28ac93
1 file changed
+3
-2
@@ -101,15 +101,15 @@ class AdminCartsControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
if (!($cart = $this->loadObject(true)))
|
if (!($cart = $this->loadObject(true)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$customer = new Customer($cart->id_customer);
|
$customer = new Customer($cart->id_customer);
|
||||||
|
$currency = new Currency($cart->id_currency);
|
||||||
$this->context->cart = $cart;
|
$this->context->cart = $cart;
|
||||||
|
$this->context->currency = $currency;
|
||||||
$this->context->customer = $customer;
|
$this->context->customer = $customer;
|
||||||
$products = $cart->getProducts();
|
$products = $cart->getProducts();
|
||||||
$customized_datas = Product::getAllCustomizedDatas((int)$cart->id);
|
$customized_datas = Product::getAllCustomizedDatas((int)$cart->id);
|
||||||
Product::addCustomizationPrice($products, $customized_datas);
|
Product::addCustomizationPrice($products, $customized_datas);
|
||||||
$summary = $cart->getSummaryDetails();
|
$summary = $cart->getSummaryDetails();
|
||||||
$currency = new Currency($cart->id_currency);
|
|
||||||
|
|
||||||
/* Display order information */
|
/* Display order information */
|
||||||
$id_order = (int)Order::getOrderByCartId($cart->id);
|
$id_order = (int)Order::getOrderByCartId($cart->id);
|
||||||
@@ -739,6 +739,7 @@ class AdminCartsControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
$context = Context::getContext();
|
$context = Context::getContext();
|
||||||
$context->cart = new Cart($id_cart);
|
$context->cart = new Cart($id_cart);
|
||||||
|
$context->currency = new Currency((int)$context->cart->id_currency);
|
||||||
$context->customer = new Customer((int)$context->cart->id_customer);
|
$context->customer = new Customer((int)$context->cart->id_customer);
|
||||||
return Cart::getTotalCart($id_cart, true, Cart::BOTH_WITHOUT_SHIPPING);
|
return Cart::getTotalCart($id_cart, true, Cart::BOTH_WITHOUT_SHIPPING);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user