Implemented getDeliveryAddress()
This commit is contained in:
@@ -20,6 +20,7 @@ use Thelia\Condition\ConditionEvaluator;
|
|||||||
use Thelia\Core\HttpFoundation\Request;
|
use Thelia\Core\HttpFoundation\Request;
|
||||||
use Thelia\Core\Template\ParserInterface;
|
use Thelia\Core\Template\ParserInterface;
|
||||||
use Thelia\Core\Template\TemplateHelper;
|
use Thelia\Core\Template\TemplateHelper;
|
||||||
|
use Thelia\Model\AddressQuery;
|
||||||
use Thelia\Model\Coupon;
|
use Thelia\Model\Coupon;
|
||||||
use Thelia\Model\CouponQuery;
|
use Thelia\Model\CouponQuery;
|
||||||
use Thelia\Cart\CartTrait;
|
use Thelia\Cart\CartTrait;
|
||||||
@@ -75,7 +76,12 @@ class BaseFacade implements FacadeInterface
|
|||||||
*/
|
*/
|
||||||
public function getDeliveryAddress()
|
public function getDeliveryAddress()
|
||||||
{
|
{
|
||||||
// @todo: Implement getDeliveryAddress() method.
|
try {
|
||||||
|
return AddressQuery::create()->findPk($this->getRequest()->getSession()->getOrder()->chosenDeliveryAddress);
|
||||||
|
}
|
||||||
|
catch(\Exception $ex) {
|
||||||
|
throw new \LogicException("Failed to get delivery address (" . $ex->getMessage() . ")");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user