Added getDeliveryCountry() method
This commit is contained in:
@@ -21,6 +21,7 @@ use Thelia\Core\HttpFoundation\Request;
|
||||
use Thelia\Core\Template\ParserInterface;
|
||||
use Thelia\Core\Template\TemplateHelper;
|
||||
use Thelia\Model\AddressQuery;
|
||||
use Thelia\Model\Country;
|
||||
use Thelia\Model\Coupon;
|
||||
use Thelia\Model\CouponQuery;
|
||||
use Thelia\Cart\CartTrait;
|
||||
@@ -149,6 +150,15 @@ class BaseFacade implements FacadeInterface
|
||||
return $total;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return Country the delivery country
|
||||
*/
|
||||
public function getDeliveryCountry()
|
||||
{
|
||||
return $this->getContainer()->get('thelia.taxEngine')->getDeliveryCountry();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the Checkout currency EUR|USD
|
||||
*
|
||||
|
||||
@@ -18,6 +18,7 @@ use Symfony\Component\Translation\TranslatorInterface;
|
||||
use Thelia\Condition\ConditionEvaluator;
|
||||
use Thelia\Core\HttpFoundation\Request;
|
||||
use Thelia\Core\Template\ParserInterface;
|
||||
use Thelia\Model\Country;
|
||||
use Thelia\Model\Coupon;
|
||||
|
||||
/**
|
||||
@@ -51,6 +52,11 @@ interface FacadeInterface
|
||||
*/
|
||||
public function getDeliveryAddress();
|
||||
|
||||
/**
|
||||
* @return Country the delivery country
|
||||
*/
|
||||
public function getDeliveryCountry();
|
||||
|
||||
/**
|
||||
* Return an Customer a CouponManager can process
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user