Product

bundleGrouping

Parametros

Variable Tipo Por defecto Requerido
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

Ejemplo




{% 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


}


}) }}


Relacionados

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

Parametros

Variable Tipo Por defecto Requerido
productBundles FWKServicesDtosBundleDefinitionsWithGroupings null true
showBundleDefinition bool true false
showUniqueUnit bool true false
buyFormOptionsArgs array [] false
buyBundleForm array [] false

Ejemplo




{% 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


}


}) }}


Relacionados

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

Parametros

Variable Tipo Por defecto Requerido
class string '' false
show string FWK/ViewHelpers/Product/Macro/ButtonClearProductsFilter::SHOW_FITLERING false
Valores disponibles

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

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/ButtonClearProductsFilter.php

buttonProductComparison

Parametros

Variable Tipo Por defecto Requerido
product SDKDtosCatalogProductProduct null false
showLabel bool true false
allowDelete bool true false
class string '' false

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/ButtonProductComparison.php

buttonDiscounts

Parametros

Variable Tipo Por defecto Requerido
discounts SDKCoreDtosElementCollection null true
class string '' false

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/ButtonDiscounts.php

buttonProductContact

Parametros

Variable Tipo Por defecto Requerido
id int null true
class string '' false
showLabel bool true false

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/ButtonProductContact.php

buttonRecommend

Parametros

Variable Tipo Por defecto Requerido
id int null true
class string '' false
type string '' false

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/ButtonRecommend.php

buttonShoppingList

Parametros

Variable Tipo Por defecto Requerido
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

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/ButtonShoppingList.php

DEPRECATED buttonWishlist

Parametros

Variable Tipo Por defecto Requerido
product SDKDtosCatalogProductProduct null false
showLabel bool true false
allowDelete bool true false
class string '' false

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/ButtonWishlist.php

DEPRECATED buyForm

Parametros

Variable Tipo Por defecto Requerido
product SDKDtosCatalogProductProduct '' true
class string '' false
style string '' false
content string '' false
sectionId int 0 false

Ejemplo




{% import macrosCore.product as productMacros %}


{{ productMacros.buyForm({


product: controllerItem,


class: 'product-form',


style: 'display:block;'


content: contentBuyForm


}) }}


Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/BuyForm.php

buyFormOptions

Parametros

Variable Tipo Por defecto Requerido
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
optionReferences SDKDtosCatalogProductProduct null true
showOrderBox bool null false

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/BuyFormOptions.php

buyFormProductOffset

Parametros

Variable Tipo Por defecto Requerido
class string '' false
showOrderBox bool null true

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/BuyFormProductOffset.php

buyFormQuantity

Parametros

Variable Tipo Por defecto Requerido
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

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/BuyFormQuantity.php

buyFormSubmit

Parametros

Variable Tipo Por defecto Requerido
id int null true
showOrderBox bool null true
class string '' false
showLabel bool true false
formButtonHook string '' true

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/BuyFormSubmit.php

buyProductForm

Parametros

Variable Tipo Por defecto Requerido
product SDKDtosCatalogProductProduct '' true
class string '' false
style string '' false
content string '' false
sectionId int 0 false
shoppingListRowId int 0 false

Ejemplo




{% import macrosCore.product as productMacros %}


{{ productMacros.buyProductForm({


product: controllerItem,


class: 'product-form',


style: 'display:block;'


content: contentBuyProductForm


}) }}


Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/BuyProductForm.php

comments

Parametros

Variable Tipo Por defecto Requerido
comments SDKCoreDtosProductCommentCollection null true

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/Comments.php

commentsForm

Parametros

Variable Tipo Por defecto Requerido
configuration FWKCoreThemeDtosFormComments null true
form FWKCoreFormForm null true

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/CommentsForm.php

contactForm

Parametros

Variable Tipo Por defecto Requerido
form FWKCoreFormForm null true

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/ContactForm.php

countdown

Parametros

Variable Tipo Por defecto Requerido
product SDKDtosCatalogProductProduct null true
eventTime string FWK/ViewHelpers/Product/Macro/Countdown::EVENT_TIME_END_OFFER_DATE false
Valores disponibles

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
Valores disponibles

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

Ejemplo


{% 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')],
}) }}

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/Countdown.php

discounts

Parametros

Variable Tipo Por defecto Requerido
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

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/Discounts.php

filterForm

Parametros

Variable Tipo Por defecto Requerido
filters SDkFilter SDKCoreDtosFilterFilter true
applicableFilters FWKCoreThemeDtosApplicableFilters null true
appliedFilters array [] false
defaultParametersValues array [] false
autosubmit bool false false
filterItemTemplate string null false

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/FilterForm.php

priceByQuantity

Parametros

Variable Tipo Por defecto Requerido
product SDKDtosCatalogProductProduct null true
showTaxIncluded bool null false
tableClassName string table false

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/PriceByQuantity.php

productComparison

Parametros

Variable Tipo Por defecto Requerido
productComparison SDKDtosCatalogProductProductComparison null true
tableItems int 4 false
offerImage string null false
featuredImage string null false
discountsImage string null false
productsIdsWithDiscounts array null false

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/ProductComparison.php

productComparisonPreview

Parametros

Variable Tipo Por defecto Requerido
productComparisonPreview SDKDtosCatalogProductProductComparison null true
class string '' false

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/ProductComparison.php

property

Parametros

Variable Tipo Por defecto Requerido
product SDKDtosCatalogProductProduct null true
property string FWK/ViewHelpers/Product/Macro/Property::PROPERTY_PRICE false
Valores disponibles

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

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/Property.php

rate

Parametros

Variable Tipo Por defecto Requerido
comments SDKCoreDtosProductCommentCollection null true

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/Rate.php

recommendForm

Parametros

Variable Tipo Por defecto Requerido
form FWKCoreFormForm null true

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/RecommendForm.php

rewardPoints

Parametros

Variable Tipo Por defecto Requerido
rewardPoints SDK Core Dtos ElementCollection null true
showHeader bool true false
showRulesHeader bool true false
showRulesCondition bool true false

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/rewardPoints.php

richSnippets

Parametros

Variable Tipo Por defecto Requerido
richSnippets SDKDtosSnippetsProductRichSnippets null true

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/RichSnippets.php

staticOptions

Parametros

Variable Tipo Por defecto Requerido
product SDKDtosCatalogProductProduct null true
optionReferences array [] true
showImageValues array [] true

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/StockAlertForm.php

stockAlertForm

Parametros

Variable Tipo Por defecto Requerido
form FWKCoreFormForm null true

Ejemplo


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

Relacionados

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

View Helper

FWK/ViewHelpers/Product/Macro/StockAlertForm.php