[-] BO : #PSCFV-3036 : fix bug and fix notice and fix deprecated function
This commit is contained in:
@@ -552,7 +552,7 @@ class OrderCore extends ObjectModel
|
||||
$row['product_quantity'] = 0;
|
||||
foreach ($selectedProducts as $key => $id_product)
|
||||
if ($row['id_order_detail'] == $id_product)
|
||||
$row['producsvt_quantity'] = (int)($selectedQty[$key]);
|
||||
$row['product_quantity'] = (int)($selectedQty[$key]);
|
||||
if (!$row['product_quantity'])
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -683,7 +683,7 @@ class AdminOrdersControllerCore extends AdminController
|
||||
$languages = Language::getLanguages($order);
|
||||
foreach ($languages as $language)
|
||||
{
|
||||
$voucher->description[$language['id_lang']] = $this->l('Credit Slip for order #').(int)($order->id);
|
||||
$cartrule->description[$language['id_lang']] = $this->l('Credit Slip for order #').(int)($order->id);
|
||||
// Define a temporary name
|
||||
$cartrule->name[$language['id_lang']] = 'V0C'.(int)($order->id_customer).'O'.(int)($order->id);
|
||||
}
|
||||
@@ -702,7 +702,7 @@ class AdminOrdersControllerCore extends AdminController
|
||||
$products = $order->getProducts(false, $full_product_list, $full_quantity_list);
|
||||
// Totals are stored in the order currency (or at least should be)
|
||||
$total = $order->getTotalProductsWithTaxes($products);
|
||||
$discounts = $order->getDiscounts(true);
|
||||
$discounts = $order->getCartRules();
|
||||
$total_tmp = $total;
|
||||
foreach ($discounts as $discount)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user