Added getDeliveryCountry() method

This commit is contained in:
Franck Allimant
2014-06-17 00:37:53 +02:00
parent e3dc87dd6a
commit 749487e967
2 changed files with 16 additions and 0 deletions

View File

@@ -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
*

View File

@@ -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
*