FacadeInterface
interface FacadeInterface
Allow to assist in getting relevant data on the current application state
Methods
Constructor
Return an Address a CouponManager can process
No description
Return an Customer a CouponManager can process
Return Checkout total price
Return Products total price CartTotalPrice = Checkout total - discount - postage
Return Product total tax price
Return the Checkout currency EUR|USD
Return Checkout total postage (only) price
Return the number of Products in the Cart
Return the number of Products include quantity in the Cart
Return all Coupon given during the Checkout
Find one Coupon in the database from its code
Return platform Container
Return platform TranslatorInterface
Return platform ParserInterface
Return the main currency THe one used to set prices in BackOffice
Return request
Return Condition Evaluator
Return all available currencies
Return the event dispatcher,
Add a coupon in session
Details
at line 38
__construct(
ContainerInterface $container)
Constructor
at line 45
Cart
getCart()
Return a Cart a CouponManager can process
at line 52
Address
getDeliveryAddress()
Return an Address a CouponManager can process
at line 57
Country
getDeliveryCountry()
at line 64
Customer
getCustomer()
Return an Customer a CouponManager can process
at line 71
float
getCheckoutTotalPrice()
Return Checkout total price
at line 80
float
getCartTotalPrice(
bool $withItemsInPromo = true)
Return Products total price CartTotalPrice = Checkout total - discount - postage
at line 88
float
getCartTotalTaxPrice(
bool $withItemsInPromo = true)
Return Product total tax price
at line 95
string
getCheckoutCurrency()
Return the Checkout currency EUR|USD
at line 102
float
getCheckoutPostagePrice()
Return Checkout total postage (only) price
at line 109
int
getNbArticlesInCart()
Return the number of Products in the Cart
at line 116
int
getNbArticlesInCartIncludeQuantity()
Return the number of Products include quantity in the Cart
at line 123
array
getCurrentCoupons()
Return all Coupon given during the Checkout
at line 132
Coupon
findOneCouponByCode(
string $code)
Find one Coupon in the database from its code
at line 139
Container
getContainer()
Return platform Container
at line 146
TranslatorInterface
getTranslator()
Return platform TranslatorInterface
at line 152
ParserInterface
getParser()
Return platform ParserInterface
at line 160
string
getMainCurrency()
Return the main currency THe one used to set prices in BackOffice
at line 167
Request
getRequest()
Return request
at line 174
ConditionEvaluator
getConditionEvaluator()
Return Condition Evaluator
at line 181
array
getAvailableCurrencies()
Return all available currencies
at line 188
EventDispatcher
getDispatcher()
Return the event dispatcher,
at line 196
mixed|void
pushCouponInSession($couponCode)
Add a coupon in session