PointRetrait : on démarre sur le frontOffice
This commit is contained in:
@@ -6,6 +6,7 @@ use Propel\Runtime\Connection\ConnectionInterface;
|
||||
use Propel\Runtime\Propel;
|
||||
use Thelia\Core\Translation\Translator;
|
||||
use Thelia\Install\Database;
|
||||
use Thelia\Model\AddressQuery;
|
||||
use Thelia\Model\Country;
|
||||
use Thelia\Model\OrderPostage;
|
||||
use Thelia\Module\AbstractDeliveryModule;
|
||||
@@ -65,12 +66,12 @@ class PointRetrait extends AbstractDeliveryModule
|
||||
|
||||
$price = 0;
|
||||
$con = Propel::getConnection();
|
||||
// $currentAddressId = $this->getRequest()->getSession()->getOrder()->getChoosenDeliveryAddress();
|
||||
// if (!empty($currentAddressId)) {
|
||||
// $zipcode = AddressQuery::create()->filterById($currentAddressId)->findOne($con)->getZipcode();
|
||||
$currentAddressId = $this->getRequest()->getSession()->getOrder()->getChoosenDeliveryAddress();
|
||||
if (!empty($currentAddressId)) {
|
||||
$zipcode = AddressQuery::create()->filterById($currentAddressId)->findOne($con)->getZipcode();
|
||||
// $areaId = LpsAreaCityQuery::create()->findOneByZipcode($zipcode)->getIdArea();
|
||||
// $price = LpsAreaQuery::create()->findOneById($areaId)->getPrice();
|
||||
// }
|
||||
}
|
||||
|
||||
return $price;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user