class BaseFacade implements 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

getCustomer()

Return an Customer a CouponManager can process

float
getCheckoutTotalPrice()

Return Checkout total price

float
getCheckoutPostagePrice()

Return Checkout total postage (only) price

float
getCartTotalPrice( bool $withItemsInPromo = true)

Return Products total price

float
getCartTotalTaxPrice( bool $withItemsInPromo = true)

Return Product total tax price

getDeliveryCountry()

No description

string
getCheckoutCurrency()

Return the Checkout currency EUR|USD

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 Parser

string
getMainCurrency()

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

getRequest()

Return request

getConditionEvaluator()

Return Constraint Validator

array
getAvailableCurrencies()

Return all available currencies

EventDispatcher
getDispatcher()

Return the event dispatcher,

mixed|void
pushCouponInSession($couponCode)

Add a coupon in session

Details

at line 53
__construct( ContainerInterface $container)

Constructor

Parameters

ContainerInterface $container Service container

at line 63
Cart getCart()

Return a Cart a CouponManager can process

Return Value

Cart

at line 73
Address getDeliveryAddress()

Return an Address a CouponManager can process

Return Value

Address

at line 89
Customer getCustomer()

Return an Customer a CouponManager can process

Return Value

Customer

at line 99
float getCheckoutTotalPrice()

Return Checkout total price

Return Value

float

at line 109
float getCheckoutPostagePrice()

Return Checkout total postage (only) price

Return Value

float

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

Return Products total price

Parameters

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

Return Value

float

at line 136
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 155
Country getDeliveryCountry()

Return Value

Country the delivery country

at line 165
string getCheckoutCurrency()

Return the Checkout currency EUR|USD

Return Value

string

at line 175
int getNbArticlesInCart()

Return the number of Products in the Cart

Return Value

int

at line 180
int getNbArticlesInCartIncludeQuantity()

Return the number of Products include quantity in the Cart

Return Value

int

at line 197
array getCurrentCoupons()

Return all Coupon given during the Checkout

Return Value

array Array of CouponInterface

at line 233
Coupon findOneCouponByCode( string $code)

Find one Coupon in the database from its code

Parameters

string $code Coupon code

Return Value

Coupon

at line 245
Container getContainer()

Return platform Container

Return Value

Container

at line 255
TranslatorInterface getTranslator()

Return platform TranslatorInterface

Return Value

TranslatorInterface

at line 265
ParserInterface getParser()

Return platform Parser

Return Value

ParserInterface

at line 285
string getMainCurrency()

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

Return Value

string

at line 295
Request getRequest()

Return request

Return Value

Request

at line 305
ConditionEvaluator getConditionEvaluator()

Return Constraint Validator

Return Value

ConditionEvaluator

at line 315
array getAvailableCurrencies()

Return all available currencies

Return Value

array of Currency

at line 327
EventDispatcher getDispatcher()

Return the event dispatcher,

Return Value

EventDispatcher

at line 337
mixed|void pushCouponInSession($couponCode)

Add a coupon in session

Parameters

$couponCode

Return Value

mixed|void