From 3c9a1364e8b8a9f3fc6dc1e987fbd87f654dda5b Mon Sep 17 00:00:00 2001 From: rMalie Date: Wed, 7 Sep 2011 15:47:45 +0000 Subject: [PATCH] // Fix carrier creation for multistore --- classes/Carrier.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Carrier.php b/classes/Carrier.php index 62364880e..229520cee 100644 --- a/classes/Carrier.php +++ b/classes/Carrier.php @@ -673,8 +673,8 @@ class CarrierCore extends ObjectModel $rangePriceID = ($range == 'range_price') ? $rangeID : 'NULL'; $rangeWeightID = ($range == 'range_weight') ? $rangeID : 'NULL'; - $sql = 'INSERT INTO '._DB_PREFIX_.$range.' (id_carrier, id_shop, id_group_shop, id_range_price, id_range_weight, id_zone, price) - SELECT '.$this->id.', id_shop, id_group_shop, '.$rangePriceID.', '.$rangeWeightID.', id_zone, price FROM '._DB_PREFIX_.$range; + $sql = 'INSERT INTO '._DB_PREFIX_.$range.' (id_carrier, id_range_price, id_range_weight, id_zone, price) + SELECT '.$this->id.', '.$rangePriceID.', '.$rangeWeightID.', id_zone, price FROM '._DB_PREFIX_.$range; Db::getInstance()->Execute($sql); } }