// Problem with product return

This commit is contained in:
mDeflotte
2011-12-22 09:39:44 +00:00
parent 2879ad59a4
commit 35aadde8c6
4 changed files with 9 additions and 7 deletions
+4 -4
View File
@@ -1933,10 +1933,10 @@ class CartCore extends ObjectModel
if (!isset($delivery_option[$id_address]))
foreach ($options as $key => $option)
if ($option['is_best_price'])
{
$delivery_option[$id_address] = $key;
break;
}
{
$delivery_option[$id_address] = $key;
break;
}
if (count($delivery_option) == 1)
$this->id_carrier = $this->getIdCarrierFromDeliveryOption($delivery_option);
+1 -1
View File
@@ -204,7 +204,7 @@ class DiscountCore extends CartRule
public static function createOrderDiscount($order, $productList, $qtyList, $name, $shipping_cost = false, $id_category = 0, $subcategory = 0)
{
// Todo
die ('TODO');
//die ('TODO');
$languages = Language::getLanguages($order);
$products = $order->getProducts(false, $productList, $qtyList);