interface FacadeInterface

Allow to assist in getting relevant data on the current application state

Methods

__construct( ContainerInterface $container)

Constructor

getCart()

Return a Cart a CouponManager can process

getDeliveryAddress()

Return an Address a CouponManager can process

getDeliveryCountry()

No description

getCustomer()

Return an Customer a CouponManager can process

float
getCheckoutTotalPrice()

Return Checkout total price

float
getCartTotalPrice( bool $withItemsInPromo = true)

Return Products total price CartTotalPrice = Checkout total - discount - postage

float
getCartTotalTaxPrice( bool $withItemsInPromo = true)

Return Product total tax price

string
getCheckoutCurrency()

Return the Checkout currency EUR|USD

float
getCheckoutPostagePrice()

Return Checkout total postage (only) price

int
getNbArticlesInCart()

Return the number of Products in the Cart

int
getNbArticlesInCartIncludeQuantity()

Return the number of Products include quantity in the Cart

array
getCurrentCoupons()

Return all Coupon given during the Checkout

findOneCouponByCode( string $code)

Find one Coupon in the database from its code

Container
getContainer()

Return platform Container

TranslatorInterface
getTranslator()

Return platform TranslatorInterface

getParser()

Return platform ParserInterface

string
getMainCurrency()

Return the main currency THe one used to set prices in BackOffice

getRequest()

Return request

getConditionEvaluator()

Return Condition Evaluator

array
getAvailableCurrencies()

Return all available currencies

EventDispatcher
getDispatcher()

Return the event dispatcher,

mixed|void
pushCouponInSession($couponCode)

Add a coupon in session

Details

at line 38
__construct( ContainerInterface $container)

Constructor

Parameters

ContainerInterface $container Service container

at line 45
Cart getCart()

Return a Cart a CouponManager can process

Return Value

Cart

at line 52
Address getDeliveryAddress()

Return an Address a CouponManager can process

Return Value

Address

at line 57
Country getDeliveryCountry()

Return Value

Country the delivery country

at line 64
Customer getCustomer()

Return an Customer a CouponManager can process

Return Value

Customer

at line 71
float getCheckoutTotalPrice()

Return Checkout total price

Return Value

float

at line 80
float getCartTotalPrice( bool $withItemsInPromo = true)

Return Products total price CartTotalPrice = Checkout total - discount - postage

Parameters

bool $withItemsInPromo true (default) if item in promotion should be included in the total, false otherwise.

Return Value

float

at line 88
float getCartTotalTaxPrice( bool $withItemsInPromo = true)

Return Product total tax price

Parameters

bool $withItemsInPromo true (default) if item in promotion should be included in the total, false otherwise.

Return Value

float

at line 95
string getCheckoutCurrency()

Return the Checkout currency EUR|USD

Return Value

string

at line 102
float getCheckoutPostagePrice()

Return Checkout total postage (only) price

Return Value

float

at line 109
int getNbArticlesInCart()

Return the number of Products in the Cart

Return Value

int

at line 116
int getNbArticlesInCartIncludeQuantity()

Return the number of Products include quantity in the Cart

Return Value

int

at line 123
array getCurrentCoupons()

Return all Coupon given during the Checkout

Return Value

array Array of CouponInterface

at line 132
Coupon findOneCouponByCode( string $code)

Find one Coupon in the database from its code

Parameters

string $code Coupon code

Return Value

Coupon

at line 139
Container getContainer()

Return platform Container

Return Value

Container

at line 146
TranslatorInterface getTranslator()

Return platform TranslatorInterface

Return Value

TranslatorInterface

at line 152
ParserInterface getParser()

Return platform ParserInterface

Return Value

ParserInterface

at line 160
string getMainCurrency()

Return the main currency THe one used to set prices in BackOffice

Return Value

string

at line 167
Request getRequest()

Return request

Return Value

Request

at line 174
ConditionEvaluator getConditionEvaluator()

Return Condition Evaluator

Return Value

ConditionEvaluator

at line 181
array getAvailableCurrencies()

Return all available currencies

Return Value

array of Currency

at line 188
EventDispatcher getDispatcher()

Return the event dispatcher,

Return Value

EventDispatcher

at line 196
mixed|void pushCouponInSession($couponCode)

Add a coupon in session

Parameters

$couponCode

Return Value

mixed|void