class AlligatorProductQuantityRebateExtension extends Twig_Extension

Class AlligatorProductQuantityRebateExtension is injected as twig.extension.alligator.product.quantity.rebate.extension service. AlligatorProductQuantityRebateExtension handles the logic and provides necessary data for managed entity in twig.

Properties

protected ProductDiscountHelper $productDiscountHelper
protected ProductSettingsManager $productSettingsManager

Methods

__construct(ProductDiscountHelper $productDiscountHelper, ProductSettingsManager $productSettingsManager)

No description

getFunctions()

{@inheritdoc}

array
getQuantityDiscounts(int $productId)

Find product quantity rebase by product id

string
getName()

Returns the name of the extension.

Details

at line 35
__construct(ProductDiscountHelper $productDiscountHelper, ProductSettingsManager $productSettingsManager)

Parameters

ProductDiscountHelper $productDiscountHelper
ProductSettingsManager $productSettingsManager

at line 44
getFunctions()

{@inheritdoc}

at line 59
array getQuantityDiscounts(int $productId)

Find product quantity rebase by product id

Parameters

int $productId

Return Value

array

See also

Product

at line 129
string getName()

Returns the name of the extension.

Return Value

string The extension name