// MERGE with 1.4 r7770
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7776 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+2
-2
@@ -143,7 +143,7 @@ class CarrierCore extends ObjectModel
|
||||
{
|
||||
if (!parent::add($autodate, $nullValues) OR !Validate::isLoadedObject($this))
|
||||
return false;
|
||||
if (!$result = Db::getInstance()->ExecuteS('SELECT `id_carrier` FROM `'._DB_PREFIX_.$this->table.'` WHERE `deleted` = 0'))
|
||||
if (!Db::getInstance()->ExecuteS('SELECT `id_carrier` FROM `'._DB_PREFIX_.$this->table.'` WHERE `deleted` = 0'))
|
||||
return false;
|
||||
if (!$numRows = Db::getInstance()->NumRows())
|
||||
return false;
|
||||
@@ -432,7 +432,7 @@ class CarrierCore extends ObjectModel
|
||||
{
|
||||
// Get id zone
|
||||
if (!$id_zone)
|
||||
$id_zone = (int)$defaultCountry->id_zone;
|
||||
$id_zone = Country::getIdZone(Country::getDefaultCountryId());
|
||||
|
||||
// Get only carriers that have a range compatible with cart
|
||||
if (($shippingMethod == Carrier::SHIPPING_METHOD_WEIGHT AND (!Carrier::checkDeliveryPriceByWeight($row['id_carrier'], $cart->getTotalWeight(), $id_zone)))
|
||||
|
||||
Reference in New Issue
Block a user