SpecialOfferExtension
class SpecialOfferExtension extends Twig_Extension
Class SpecialOfferExtension
Constants
| CACHED_SPECIAL_OFFER |
|
Methods
__construct(Client $cache, EventDispatcherInterface $dispatcher, SpecialOfferManager $specialOfferManager)
FooterExtension constructor.
getFunctions()
{@inheritdoc}
bool
getSpecialOfferCache(int $userId, int $number = 3)
No description
mixed
getAllAvailableProductsOnSpecialOffer()
No description
mixed
isProductOnSpecialOffer(int $productId, int|null $productAttrId = null)
No description
float|int|mixed
calculateSpecialOfferDiscount($variable, $specialOffer)
No description
string
getName()
Returns the name of the extension.
Details
at line 41
__construct(Client $cache, EventDispatcherInterface $dispatcher, SpecialOfferManager $specialOfferManager)
FooterExtension constructor.
at line 51
getFunctions()
{@inheritdoc}
at line 67
bool
getSpecialOfferCache(int $userId, int $number = 3)
at line 75
mixed
getAllAvailableProductsOnSpecialOffer()
at line 89
mixed
isProductOnSpecialOffer(int $productId, int|null $productAttrId = null)
at line 100
float|int|mixed
calculateSpecialOfferDiscount($variable, $specialOffer)
at line 154
string
getName()
Returns the name of the extension.