Product

bundleGrouping

Parameters

Variable Type Default Required
bundleGrouping SDKDtosCatalogBundleGrouping null true
products array null true
showBundleDefinition bool true false
showUniqueUnit bool true false
addMainProducts bool true false
bundleId int 0 true
shoppingListRowId int 0 false
buyFormOptionsArgs array [] false
buyBundleForm array [] false

Example




{% import macrosCore.product as productMacros %}


{{ productMacros.bundleGrouping({


bundleGrouping: bundleGrouping,


showBundleDefinition: true,


buyFormOptionsArgs: {


showShortDescription: true,


showUnavailableLabel: true,


selectDefaults: true,


showImageOptions: true


},


buyBundleForm: {


class: 'formClass',


showQuantity: true,


showQuantitySelectableBox: false,


minQuantity: 1,


maxQuantity: 5,


showPrice: true,


showBasePrice: true


}


}) }}


Related

macros/modes/{{coreMode}}/product/bundleGrouping.html.twig

macros/modes/{{coreMode}}/product/bundle/buyForm.html.twig

macros/modes/{{coreMode}}/product/bundle/definition.html.twig

macros/modes/{{coreMode}}/product/bundle/grouping.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/BundleGrouping.php

bundles

Parameters

Variable Type Default Required
productBundles FWKServicesDtosBundleDefinitionsWithGroupings null true
showBundleDefinition bool true false
showUniqueUnit bool true false
buyFormOptionsArgs array [] false
buyBundleForm array [] false

Example




{% import macrosCore.product as productMacros %}


{{ productMacros.bundles({


productBundles: productBundles,


showBundleDefinition: true,


buyFormOptionsArgs: {


showShortDescription: true,


showUnavailableLabel: true,


selectDefaults: true,


showImageOptions: true


},


buyBundleForm: {


class: 'formClass',


showQuantity: true,


showQuantitySelectableBox: false,


minQuantity: 1,


maxQuantity: 5,


showPrice: true,


showBasePrice: true


}


}) }}


Related

macros/modes/{{coreMode}}/product/bundles.html.twig

macros/modes/{{coreMode}}/product/bundle/buyForm.html.twig

macros/modes/{{coreMode}}/product/bundle/definition.html.twig

macros/modes/{{coreMode}}/product/bundle/grouping.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/Bundles.php

buttonClearProductsFilter

Parameters

Variable Type Default Required
class string '' false
show string FWK/ViewHelpers/Product/Macro/ButtonClearProductsFilter::SHOW_FITLERING false
Available values

FWK/ViewHelpers/Product/Macro/ButtonClearProductsFilter::SHOW_ALWAYS



FWK/ViewHelpers/Product/Macro/ButtonClearProductsFilter::SHOW_FITLERING



FWK/ViewHelpers/Product/Macro/ButtonClearProductsFilter::SHOW_WITH_NO_RESULTS



applicableFilters FWKCoreThemeDtosApplicableFilters null true
appliedFilters array [] false
productItems int null false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.buttonClearProductsFilter({
class: 'test-class',
show: 'always',
applicableFilters: themeConfiguration.category.productList.applicableFilters,
appliedFilters: productsFilter,
productItems: products.items
length
}) }}

Related

macros/modes/{{coreMode}}/product/buttonClearProductsFilter.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/ButtonClearProductsFilter.php

buttonProductComparison

Parameters

Variable Type Default Required
product SDKDtosCatalogProductProduct null false
showLabel bool true false
allowDelete bool true false
class string '' false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.buttonProductComparison({
product: controllerItem,
showLabel: false,
class: 'btn btn-secondary'
}) }}

Related

macros/modes/{{coreMode}}/product/buttonProductComparison.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/ButtonProductComparison.php

buttonDiscounts

Parameters

Variable Type Default Required
discounts SDKCoreDtosElementCollection null true
class string '' false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.buttonDiscounts({
discounts: productDiscounts
}) }}

Related

macros/modes/{{coreMode}}/product/buttonDiscounts.hmtl.twig

View Helper

FWK/ViewHelpers/Product/Macro/ButtonDiscounts.php

buttonProductContact

Parameters

Variable Type Default Required
id int null true
class string '' false
showLabel bool true false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.buttonProductContact({
'id': controllerItem.id,
'class': 'product-contact-product-page btn-link'
}) }}

Related

macros/modes/{{coreMode}}/product/buttonProductContact.html-twig

View Helper

FWK/ViewHelpers/Product/Macro/ButtonProductContact.php

buttonRecommend

Parameters

Variable Type Default Required
id int null true
class string '' false
type string '' false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.buttonRecommend({
'id': controllerItem.id,
'class': 'product-contact-product-page btn-link'
}) }}

Related

macros/modes/{{coreMode}}/product/buttonRecommend.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/ButtonRecommend.php

buttonShoppingList

Parameters

Variable Type Default Required
shoppingListRow SDKDtosCatalogProductProduct null false
item SDKDtosCatalogProductProduct null false
showLabel bool true false
allowDelete bool true false
showDefaultShoppingListButton bool false false
showShoppingLists bool false false
allowAddShoppingList bool false false
class string '' false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.buttonShoppingList({
item: controllerItem,
showLabel: false,
class: 'btn btn-secondary'
}) }}

Related

macros/modes/{{coreMode}}/product/buttonShoppingList.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/ButtonShoppingList.php

DEPRECATED buttonWishlist

Parameters

Variable Type Default Required
product SDKDtosCatalogProductProduct null false
showLabel bool true false
allowDelete bool true false
class string '' false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.buttonWishlist({
product: controllerItem,
showLabel: false,
class: 'btn btn-secondary'
}) }}

Related

macros/modes/{{coreMode}}/product/buttonWishlist.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/ButtonWishlist.php

DEPRECATED buyForm

Parameters

Variable Type Default Required
product SDKDtosCatalogProductProduct '' true
class string '' false
style string '' false
content string '' false
sectionId int 0 false

Example




{% import macrosCore.product as productMacros %}


{{ productMacros.buyForm({


product: controllerItem,


class: 'product-form',


style: 'display:block;'


content: contentBuyForm


}) }}


Related

macros/modes/{{coreMode}}/product/buyForm.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/BuyForm.php

buyFormOptions

Parameters

Variable Type Default Required
product SDKDtosCatalogProductProduct null true
showShortDescription bool false false
showLongDescription bool false false
showUnavailableLabel bool false false
selectDefaults bool true false
showImageOptions bool false false
showBasePrice bool false false
showRetailPrice bool false false
showTitleInLabelUniqueImage bool false false
useUrlOptionsParams bool false false
addOptionsToProductLink bool false false
showAsGridQuantityPlugin bool true false
showAsGridUniqueDimension bool false false
showGridFirst bool true false
showGridImageValues bool false false
showGridAvailabilityImage bool false false
showGridAvailabilityName bool false false
showGridDisabled bool false false
optionReferences SDKDtosCatalogProductProduct null true
showOrderBox bool null false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.buyFormOptions({
product: controllerItem,
showUnavailableLabel: true,
selectDefaults: true
}) }}

Related

macros/modes/{{coreMode}}/product/buyFormOptions.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/BuyFormOptions.php

buyFormProductOffset

Parameters

Variable Type Default Required
class string '' false
showOrderBox bool null true

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.buyFormProductOffset({
showOrderBox: controllerItem.definition.showOrderBox
}) }}

Related

macros/modes/{{coreMode}}/product/buyFormProductOffset.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/BuyFormProductOffset.php

buyFormQuantity

Parameters

Variable Type Default Required
product SDKDtosCatalogProductProduct null true
class string '' false
quantityPlugin bool false false
showSelectableBox bool false false
selectableBoxRows int 5 false
manualMinQuantity int null false
manualMaxQuantity int null false
forceMinQuantityZero bool false false
showOrderBox bool null false

Example


{% import macrosCore.product as produtMacros%}
{{ productMacros.buyFormQuantity({
product: controllerItem,
quantityPlugin: true
}) }}

Related

macros/modes/{{coreMode}}/product/buyFormQuantity.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/BuyFormQuantity.php

buyFormSubmit

Parameters

Variable Type Default Required
id int null true
showOrderBox bool null true
class string '' false
showLabel bool true false
formButtonHook string '' true
expressCheckout bool true false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.buyFormSubmit({
id: controllerItem.id,
showOrderBox: controllerItem.definition.showOrderBox,
class: 'btn btn-primary'
}) }}

Related

macros/modes/{{coreMode}}/product/buyFormSubmit.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/BuyFormSubmit.php

buyProductForm

Parameters

Variable Type Default Required
product SDKDtosCatalogProductProduct '' true
class string '' false
style string '' false
content string '' false
sectionId int 0 false
shoppingListRowId int 0 false

Example




{% import macrosCore.product as productMacros %}


{{ productMacros.buyProductForm({


product: controllerItem,


class: 'product-form',


style: 'display:block;'


content: contentBuyProductForm


}) }}


Related

macros/modes/{{coreMode}}/product/buyProductForm.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/BuyProductForm.php

comments

Parameters

Variable Type Default Required
comments SDKCoreDtosProductCommentCollection null true

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.comments({
comments: productComments
}) }}

Related

macros/modes/{{coreMode}}/product/comments.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/Comments.php

commentsForm

Parameters

Variable Type Default Required
configuration FWKCoreThemeDtosFormComments null true
form FWKCoreFormForm null true

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.commentsForm({
form: formComment,
configuration: themeConfiguration.forms.comments
}) }}

Related

macros/modes/{{coreMode}}/product/commentsForm.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/CommentsForm.php

contactForm

Parameters

Variable Type Default Required
form FWKCoreFormForm null true

Example


{% import macrosCore.product as productMacros%}
{{ productMacros.contactForm({
form: formProductContact
}) }}

Related

macros/modes/{{coreMode}}/product/contactForm.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/ContactForm.php

countdown

Parameters

Variable Type Default Required
product SDKDtosCatalogProductProduct null true
eventTime string FWK/ViewHelpers/Product/Macro/Countdown::EVENT_TIME_END_OFFER_DATE false
Available values

FWK/ViewHelpers/Product/Macro/Countdown::EVENT_TIME_END_OFFER_DATE



FWK/ViewHelpers/Product/Macro/Countdown::EVENT_TIME_END_AVAILABLE_DATE



callback string FWK/ViewHelpers/Product/Macro/Countdown::CALLBACK_RELOAD false
Available values

FWK/ViewHelpers/Product/Macro/Countdown::CALLBACK_RELOAD



FWK/ViewHelpers/Product/Macro/Countdown::CALLBACK_GO_BACK



template string null false
categoryId int null false
endDate DateTime null false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.countdown({
product: controllerItem,
eventTime: constant('FWKViewHelpersProductMacroCountdown::EVENT_TIME_END_OFFER_DATE'),
callback: constant('FWKViewHelpersProductMacroCountdown::CALLBACK_RELOAD'),
template: languageSheet[constant('FWKEnumsLanguageLabels::PRODUCT_COUNTDOWN_TEMPLATE')],
}) }}

Related

macros/modes/{{coreMode}}/product/countdown.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/Countdown.php

discounts

Parameters

Variable Type Default Required
discounts SDK Core Dtos ElementCollection null true
productId int 0 false
showActivityLimit bool false false
showSmallImage bool false false
showLargeImage bool false false
showName bool false false
showShortDescription la descripción corta bool false false
showLongDescription la descripción larga bool false false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.discounts({
discounts: productDiscounts
}) }}

Related

macros/modes/{{coreMode}}/product/discounts.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/Discounts.php

filterForm

Parameters

Variable Type Default Required
filters SDkFilter SDKCoreDtosFilterFilter true
applicableFilters FWKCoreThemeDtosApplicableFilters null true
appliedFilters array [] false
defaultParametersValues array [] false
autosubmit bool false false
filterItemTemplate string null false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.filterForm({
filters: products.filter,
applicableFilters: themeConfiguration.category.productList.applicableFilters,
appliedFilters: productsFilter,
defaultParametersValues: themeConfiguration.category.productList.defaultParametersValues,
}) }}

Related

macros/modes/{{coreMode}}/product/filterForm.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/FilterForm.php

priceByQuantity

Parameters

Variable Type Default Required
product SDKDtosCatalogProductProduct null true
showTaxIncluded bool null false
tableClassName string table false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.priceByQuantity({
product: controllerItem
}) }}

Related

macros/modes/{{coreMode}}/product/priceByQuantity.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/PriceByQuantity.php

productComparison

Parameters

Variable Type Default Required
productComparison SDKDtosCatalogProductProductComparison null true
tableItems int 4 false
offerImage string null false
featuredImage string null false
discountsImage string null false
productsIdsWithDiscounts array null false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.productComparison({
productComparison: productComments
}) }}

Related

macros/modes/{{coreMode}}/product/productComparison.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/ProductComparison.php

productComparisonPreview

Parameters

Variable Type Default Required
productComparisonPreview SDKDtosCatalogProductProductComparison null true
class string '' false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.productComparisonPreview({
productComparisonPreview: productComments
}) }}

Related

macros/modes/{{coreMode}}/product/productComparisonPreview.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/ProductComparison.php

property

Parameters

Variable Type Default Required
product SDKDtosCatalogProductProduct null true
property string FWK/ViewHelpers/Product/Macro/Property::PROPERTY_PRICE false
Available values

FWK/ViewHelpers/Product/Macro/Property::PROPERTY_PRICE



FWK/ViewHelpers/Product/Macro/Property::PROPERTY_BASE_PRICE



FWK/ViewHelpers/Product/Macro/Property::PROPERTY_SAVING



FWK/ViewHelpers/Product/Macro/Property::PROPERTY_STOCK



FWK/ViewHelpers/Product/Macro/Property::PROPERTY_SKU



FWK/ViewHelpers/Product/Macro/Property::PROPERTY_EAN



showTaxText bool false false
priceWithTaxes bool null false
stockAlertButton bool false false
stockAlertButtonClass string false
showStock bool true false
showAvailabilityName bool true false
showStockText bool true false
showAvailabilityImage bool true false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.property({
product: controllerItem,
property: constant('FWK/ViewHelpers/Product/Macro/Property::PROPERTY_PRICE'),
showTaxText: true,
}) }}

Related

macros/modes/{{coreMode}}/product/property.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/Property.php

rate

Parameters

Variable Type Default Required
comments SDKCoreDtosProductCommentCollection null true

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.rate({
comments: productComments
}) }}

Related

macros/modes/{{coreMode}}/product/rate.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/Rate.php

recommendForm

Parameters

Variable Type Default Required
form FWKCoreFormForm null true

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.recommendForm({
form: formProductRecommend
}) }}

Related

macros/modes/{{coreMode}}/product/recommendForm.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/RecommendForm.php

rewardPoints

Parameters

Variable Type Default Required
rewardPoints SDK Core Dtos ElementCollection null true
showHeader bool true false
showRulesHeader bool true false
showRulesCondition bool true false

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.rewardPoints({
rewardPoints: productRewardPoints
}) }}

Related

macros/modes/{{coreMode}}/product/rewardPoints.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/rewardPoints.php

richSnippets

Parameters

Variable Type Default Required
richSnippets SDKDtosSnippetsProductRichSnippets null true

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.richSnippets({
richSnippets: productRichSnippets
}) }}

Related

macros/modes/{{coreMode}}/product/richSnippets.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/RichSnippets.php

staticOptions

Parameters

Variable Type Default Required
product SDKDtosCatalogProductProduct null true
optionReferences array [] true
showImageValues array [] true

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.staticOptions({
product: product,
optionReferences: optionReferences
}) }}

Related

macros/modes/{{coreMode}}/product/staticOptions.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/StockAlertForm.php

stockAlertForm

Parameters

Variable Type Default Required
form FWKCoreFormForm null true

Example


{% import macrosCore.product as productMacros %}
{{ productMacros.stockAlertForm({
form: formStockAlert
}) }}

Related

macros/modes/{{coreMode}}/product/stockAlertForm.html.twig

View Helper

FWK/ViewHelpers/Product/Macro/StockAlertForm.php