class AlligatorPriceExtension extends Twig_Extension

Class AlligatorPriceExtension

Methods

__construct(UserSettingsManager $userSettingsManager, EventDispatcherInterface $eventDispatcher, TokenStorageInterface $tokenStorage, boolean $erpReturnsPrice, CurrencyManager $currencyManager, ProductDiscountHelper $productDiscountHelper)

No description

getFunctions()

{@inheritdoc}

getErpPrices(array $variables)

No description

int
getErpActionPriceForProduct($variable)

No description

int
getErpPriceForProduct(mixed $variable, bool $actionPrice = false, bool $forceConvert = false)

Get price for product or pav

mixed
getErpRebateForProduct($variable)

No description

mixed
getPrice($variable, bool $onActionPrice = false)

No description

float|int
getCalculatedPercentageDiscount(float $price, float $priceOnAction)

No description

Details

at line 64
__construct(UserSettingsManager $userSettingsManager, EventDispatcherInterface $eventDispatcher, TokenStorageInterface $tokenStorage, boolean $erpReturnsPrice, CurrencyManager $currencyManager, ProductDiscountHelper $productDiscountHelper)

Parameters

UserSettingsManager $userSettingsManager
EventDispatcherInterface $eventDispatcher
TokenStorageInterface $tokenStorage
boolean $erpReturnsPrice
CurrencyManager $currencyManager
ProductDiscountHelper $productDiscountHelper

at line 78
getFunctions()

{@inheritdoc}

at line 93
getErpPrices(array $variables)

Parameters

array $variables

Exceptions

Exception

at line 120
int getErpActionPriceForProduct($variable)

Parameters

$variable

Return Value

int

Exceptions

Exception

at line 133
int getErpPriceForProduct(mixed $variable, bool $actionPrice = false, bool $forceConvert = false)

Get price for product or pav

Parameters

mixed $variable
bool $actionPrice
bool $forceConvert

Return Value

int

Exceptions

Exception

at line 225
mixed getErpRebateForProduct($variable)

Parameters

$variable

Return Value

mixed

Exceptions

Exception

at line 263
mixed getPrice($variable, bool $onActionPrice = false)

Parameters

$variable
bool $onActionPrice

Return Value

mixed

Exceptions

Exception

at line 372
float|int getCalculatedPercentageDiscount(float $price, float $priceOnAction)

Parameters

float $price
float $priceOnAction

Return Value

float|int