Basket
asyncOrder
Parametros
Variable | Tipo | Por defecto | Requerido |
validationResponse | SDKDtosPaymentValidationResponse | null | true |
postParameters | array | [] | false |
getParameters | array | [] | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{- basketMacros.asyncOrder({
validationResponse: constant('FWKCoreControllersController::CONTROLLER_ITEM'),
postParameters: constant('FWKControllersCheckoutAsyncOrderController::POST_PARAMETERS'),
getParameters: constant('FWKControllersCheckoutAsyncOrderController::GET_PARAMETERS')
}) -}}
Relacionados
macros/modes/{{coreMode}}/basket/asyncOrder.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/AsyncOrder.php
basketContent
Parametros
Variable | Tipo | Por defecto | Requerido |
basket | SDKDtosBasketBasket | null | true |
editable | bool | false | false |
saveForLater | bool | false | false |
editableGifts | bool | false | false |
quantityPlugin | bool | false | false |
showShippingSection | bool | false | false |
showSelectableBox | bool | false | false |
selectableBoxRows | int | 5 | false |
showWarnings | bool | true | false |
showWarningsBlock | bool | true | false |
hiddenWarningCodes | array | [] | false |
errorWarningPosition | string | FWK/ViewHelpers/Basket/Macro/BasketContent::WARNING_POSITION_HEADER | false |
Valores disponibles | |||
FWK/ViewHelpers/Basket/Macro/BasketContent::WARNING_POSITION_HEADER FWK/ViewHelpers/Basket/Macro/BasketContent::WARNING_POSITION_LINE |
|||
warningWarningPosition | string | FWK/ViewHelpers/Basket/Macro/BasketContent::WARNING_POSITION_HEADER | false |
Valores disponibles | |||
FWK/ViewHelpers/Basket/Macro/BasketContent::WARNING_POSITION_HEADER FWK/ViewHelpers/Basket/Macro/BasketContent::WARNING_POSITION_LINE |
|||
infoWarningPosition | string | FWK/ViewHelpers/Basket/Macro/BasketContent::WARNING_POSITION_HEADER | false |
Valores disponibles | |||
FWK/ViewHelpers/Basket/Macro/BasketContent::WARNING_POSITION_HEADER FWK/ViewHelpers/Basket/Macro/BasketContent::WARNING_POSITION_LINE |
|||
showCustomTagPosition | array | [] | false |
showDiscountValue | string | FWK/ViewHelpers/Basket/Macro/BasketContent::SHOW_DISCOUNT_VALUE_BOTH | false |
Valores disponibles | |||
FWK/ViewHelpers/Basket/Macro/BasketContent::SHOW_DISCOUNT_VALUE_VALUE FWK/ViewHelpers/Basket/Macro/BasketContent::SHOW_DISCOUNT_VALUE_PERCENTAGE FWK/ViewHelpers/Basket/Macro/BasketContent::SHOW_DISCOUNT_VALUE_BOTH FWK/ViewHelpers/Basket/Macro/BasketContent::SHOW_DISCOUNT_VALUE_NONE |
|||
additionalItems | string | FWK/Core/ViewHelpers/Basket/Macro/BaseOutput::ADDITIONAL_ITEMS_PRESENTATION | false |
mode | string | FWK/Core/ViewHelpers/Basket/Macro/BaseOutput::MODE_DISCLOSURE | false |
Valores disponibles | |||
FWK/Core/ViewHelpers/Basket/Macro/BaseOutput::MODE_DISCLOSURE FWK/Core/ViewHelpers/Basket/Macro/BaseOutput::MODE_CASH_TICKET |
|||
linkable | bool | true | false |
showOptions | bool | true | false |
showOptionValuesName | string | FWK/Core/ViewHelpers/Basket/Macro/BaseOutput::SHOW_OPTION_VALUES_NAME_SHOW_NAME | false |
Valores disponibles | |||
FWK/Core/ViewHelpers/Basket/Macro/BaseOutput::SHOW_OPTION_VALUES_NAME_NOT_SHOW FWK/Core/ViewHelpers/Basket/Macro/BaseOutput::SHOW_OPTION_VALUES_NAME_SHOW_NAME FWK/Core/ViewHelpers/Basket/Macro/BaseOutput::SHOW_OPTION_VALUES_NAME_SHOW_DESCRIPTION |
|||
showOptionValuesSku | bool | false | false |
showZeroDiscount | bool | false | false |
giftsPresentation | string | FWK/Core/ViewHelpers/Basket/Macro/BaseOutput::GIFTS_PRESENTATION_PRODUCTS_BLOCK | false |
Valores disponibles | |||
FWK/Core/ViewHelpers/Basket/Macro/BaseOutput::GIFTS_PRESENTATION_PRODUCTS_BLOCK FWK/Core/ViewHelpers/Basket/Macro/BaseOutput::GIFTS_PRESENTATION_INDEPENDENT |
|||
showTaxDisclosure | bool | true | false |
showTaxIncluded | bool | null | false |
showTaxName | bool | true | false |
tableClass | string | '' | false |
shoePrices | bool | true | false |
showImage | bool | true | false |
showSku | bol | false | false |
showManufacturerSku | bool | false | false |
showAsGridUniqueDimension | bool | false | false |
showCustomTags | bool | false | false |
showDevolutionButton | bool | false | false |
showDiscounts | bool | true | false |
showDiscountName | bool | false | false |
showZeroShipping | bool | true | false |
showZeroPayment | bool | true | false |
showFreeTaxMessage | bool | false | false |
showPreviousPrice | bool | false | false |
showPercentDifference | bool | false | false |
showPriceDifference | bool | false | false |
showProductStockId | bool | false | false |
showFooter | bool | true | false |
productTemplate | string | null | false |
productsBundleTemplate | string | null | false |
productsBundleItemTemplate | string | null | false |
productsGiftTemplate | string | null | false |
productSelectableGiftTemplate | string | null | false |
routeType | string | '' | false |
totalProductDiscounts | float | 0 | false |
showTaxesZeroTotalIncrement | bool | false | false |
mergeGridDiscounts | bool | false | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{- basketMacros.basketContent({
basket: basket,
editable: true,
quantityPlugin: true,
mode: constant('FWKViewHelpersBasketMacroBasketContent::MODE_DISCLOSURE'),
showDiscounts: true,
showDiscountName: true
}) -}}
Relacionados
macros/modes/{{coreMode}}/basket/basketContent.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/BasketContent.php
basketForm
Parametros
Variable | Tipo | Por defecto | Requerido |
content | string | null | false |
class | string | '' | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.basketForm({
content: contentBasketForm,
class: 'test-class'
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/basketForm.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/BasketForm.php
buttons
Parametros
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.buttons({
basket: controllerItem
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/buttons.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/Buttons.php
comment
Parametros
Variable | Tipo | Por defecto | Requerido |
basket | SDKDtosBasketBasket | null | true |
forceOutput | bool | false | false |
showPlaceholder | bool | true | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.comment({
basket: basketObj,
forceOutput: false,
showPlaceholder: true
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/comment.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/Comment.php
customTags
Parametros
Variable | Tipo | Por defecto | Requerido |
basket | SDKDtosBasketBasket | null | true |
customTags | SDKCoreDtosElementCollection | null | true |
showPositions | array | [] | false |
useCalendar | bool | true | false |
showFormFields | bool | true | false |
saveButtonSubmitAction | string | '' | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.customTags({
basket: basketObj,
customTags: customTagsObj,
showPositions: [],
useCalendar: true,
showFormFields: true,
saveButtonSubmitAction: route.type
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/customTags.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/CustomTags.php
deleteDiscountCodes
Parametros
Variable | Tipo | Por defecto | Requerido |
basket | SDKDtosBasketBasket | null | true |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{- basketMacros.deleteDiscountCodes({
basket: controllerItem
}) -}}
Relacionados
macros/modes/{{coreMode}}/basket/deleteDiscountCodes.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/DeniedOrderMessage.php
deliveries
Parametros
Variable | Tipo | Por defecto | Requerido |
basket | SDKDtosBasketBasket | null | true |
deliveries | SDKCoreDtosElementCollection | null | true |
physicalLocations | SDKCoreDtosElementCollection | null | false |
pickupPointProviders | ElementCollection | null | false |
showTitle | bool | true | false |
showLogo | bool | false | false |
showTaxIncluded | bool | null | false |
showDescription | bool | true | false |
showPickup | bool | false | false |
showProducts | bool | true | false |
Ejemplo
{% import macrosCore.basket as basketMacros%}
{{- basketMacros.deliveries({
basket: basket,
deliveries: deliveries,
showPickup: false,
showTitle: true,
showLogo: true,
showTaxIncluded: true
}) -}}
Relacionados
macros/modes/{{coreMode}}/basket/deliveries.html.php
View Helper
FWK/ViewHelpers/Basket/Macro/Deliveries.php
deniedOrderMessage
Parametros
Variable | Tipo | Por defecto | Requerido |
basket | SDKDtosBasketBasket | null | true |
errorCode | string | '' | false |
errorFields | SDKDtosBasketErrorFields | '' | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{- basketMacros.deniedOrderMessage({
basket: controllerItem,errorCode: errorCode
}) -}}
Relacionados
macros/modes/{{coreMode}}/basket/deniedOrderMessage.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/DeniedOrderMessage.php
endOrder
Parametros
Variable | Tipo | Por defecto | Requerido |
payResponse | SDKDtosPayResponse | null | true |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.endOrder({
payResponse: controllerItem
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/endOrder.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/EndOrder.php
OSCForm
Parametros
Variable | Tipo | Por defecto | Requerido |
content | string | null | false |
class | string | '' | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.OSCForm({
content: twigSetVariable,
class: 'test-class'
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/OSCForm.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/OSCForm.php
OSCModule
Parametros
Variable | Tipo | Por defecto | Requerido |
content | string | null | false |
class | string | '' | false |
type | string | '' | false |
Valores disponibles | |||
FWKViewHelpersBasketMacroOSCModule::TYPE_BASKET FWKViewHelpersBasketMacroOSCModule::TYPE_USER_FORM FWKViewHelpersBasketMacroOSCModule::TYPE_PAYMENTS FWKViewHelpersBasketMacroOSCModule::TYPE_SHIPPINGS FWKViewHelpersBasketMacroOSCModule::TYPE_COMMENTS FWKViewHelpersBasketMacroOSCModule::TYPE_DISCOUNTS FWKViewHelpersBasketMacroOSCModule::TYPE_LEGAL_CHECK FWKViewHelpersBasketMacroOSCModule::TYPE_BUTTONS |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.OSCModule({
content: twigSetVariable,
class: 'test-class',
type: constant('FWKViewHelpersBasketMacroOSCModule::TYPE_USER_FORM')
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/OSCModule.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/OSCModule.php
miniBasketWrap
Parametros
Variable | Tipo | Por defecto | Requerido |
basket | SDKDtosBasketBasket | null | false |
content | string | null | true |
showPaymentSystem | bool | true | false |
showShipping | bool | true | false |
showTaxIncluded | bool | null | false |
class | string | '' | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.miniBasketWrap({
basket: basketObj,
content: twigSetVariable,
showPaymentSystem: true,
showShipping: true,
showTaxIncluded: true,
class: ''
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/miniBasketWrap.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/MiniBasketWrap.php
miniBasketContent
Parametros
Variable | Tipo | Por defecto | Requerido |
basket | SDKDtosBasketBasket | null | true |
showTaxIncluded | bool | null | false |
showTotal | bool | true | false |
linkable | bool | true | false |
showPaymentSystem | bool | true | false |
showShipping | bool | true | false |
showCustomTags | bool | false | false |
showCustomTagPositions | array | [] | false |
showDeleteItems | bool | true | false |
showImage | bool | true | false |
showBrand | bool | false | false |
showSku | bool | false | false |
showOptions | bool | true | false |
showHeader | bool | true | false |
showFooter | bool | true | false |
showOptionValue | string | FWK/ViewHelpers/Basket/Macro/MiniBasketContent::SHOW_OPTION_VALUES_NAME_SHOW_NAME | false |
Valores disponibles | |||
FWK/ViewHelpers/Basket/Macro/MiniBasketContent::SHOW_OPTION_VALUES_NAME_NOT_SHOW FWK/ViewHelpers/Basket/Macro/MiniBasketContent::SHOW_OPTION_VALUES_NAME_SHOW_NAME FWK/ViewHelpers/Basket/Macro/MiniBasketContent::SHOW_OPTION_VALUES_NAME_SHOW_DESCRIPTION |
|||
showTotalDiscounts | bool | true | false |
showItemNameDiscounts | bool | false | false |
showZeroDiscount | bool | false | false |
showItemValueDiscounts | string | FWK/ViewHelpers/Basket/Macro/BasketContent::SHOW_DISCOUNT_VALUE_NONE | false |
Valores disponibles | |||
FWK/ViewHelpers/Basket/Macro/BasketContent::SHOW_DISCOUNT_VALUE_VALUE FWK/ViewHelpers/Basket/Macro/BasketContent::SHOW_DISCOUNT_VALUE_PERCENTAGE FWK/ViewHelpers/Basket/Macro/BasketContent::SHOW_DISCOUNT_VALUE_BOTH FWK/ViewHelpers/Basket/Macro/BasketContent::SHOW_DISCOUNT_VALUE_NONE |
|||
showTotalVouchers | bool | true | false |
class | string | '' | false |
gripOptionsClassPrefix | string | '' | false |
editable | bool | false | false |
quantityPlugin | bool | false | false |
showSelectableBox | bool | false | false |
selectableBoxRows | int | 5 | false |
showGifts | bool | false | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.miniBasketContent({
basket: basketObj,
showTaxIncluded: false,
showTotal: true,
linkable: true,
showPaymentSystem: true,
showShipping: true,
showCustomTags: false,
showCustomTagPositions: [],
showDeleteItem: true,
showImage: true,
showSku: false,
showOptions: true,
showHeader: true,
showFooter: true,
showOptionValuesName: constant('FWKViewHelpersBasketMacrominiBasketContent::SHOW_OPTION_VALUES_NAME_SHOW_NAME'),
showTotalDiscounts: true,
showTotalVouchers: true,
class: '',
editable: false,
quantityPlugin: false,
showSelectableBox: false,
selectableBoxRows: 5
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/miniBasketContent.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/MiniBasketContent.php
paymentSystems
Parametros
Variable | Tipo | Por defecto | Requerido |
basket | SDKDtosBasketBasket | null | true |
paymentSystems | null | true | |
showTaxIncluded | bool | null | false |
showTitle | bool | true | false |
showZeroPrice | bool | true | false |
showDescription | bool | true | false |
showImage | bool | false | false |
Ejemplo
{% import macrosCore macrosCore.basket as basketMacros %}
{{- basketMacros.paymentSystems({
basket: basket,
paymentSystems: paymentSystems
}) -}}
Relacionados
macros/modes/{{coreMode}}/basket/paymentSystems.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/PaymentSystems.php
redeemRewardPoints
Parametros
Variable | Tipo | Por defecto | Requerido |
basket | SDKDtosBasketBasket | null | false |
rewardPoints | SDKCoreDtosElementCollection | null | true |
maxAvailableRewardPoints | array | [] | false |
quantityPlugin | bool | false | false |
showSelectableBox | bool | false | false |
class | string | '' | false |
showRewardPointsHeader | bool | true | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.redeemRewardPoints({
basket: session.basket, rewardPoints: userRewardPoints, maxAvailableRewardPoints: {'ePoint_1': 100, 'ePoint_2': 200}
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/redeemRewardPoints.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/RedeemRewardPoints.php
rewardPoints
Parametros
Variable | Tipo | Por defecto | Requerido |
basket | SDKDtosBasketBasket | null | true |
class | string | '' | false |
showHeader | bool | true | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.rewardPoints({
basket: session.basket, rewardPoints: userRewardPoints, maxAvailableRewardPoints: {'ePoint_1': 100, 'ePoint_2': 200}
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/rewardPoints.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/RewardPoints.php
steps
Parametros
Variable | Tipo | Por defecto | Requerido |
steps | array | |FWK/ViewHelpers/Basket/Macro/Setps::STEP_BASKET, |FWK/ViewHelpers/Basket/Macro/Setps::STEP_CUSTOMER, |FWK/ViewHelpers/Basket/Macro/Setps::STEP_PAYMENT_AND_ASHIPPING, |FWK/ViewHelpers/Basket/Macro/Setps::STEP_CONFIRM_ORDER | | false |
Valores disponibles | |||
FWK/ViewHelpers/Basket/Macro/Setps::STEP_BASKET FWK/ViewHelpers/Basket/Macro/Setps::STEP_CUSTOMER FWK/ViewHelpers/Basket/Macro/Setps::STEP_PAYMENT_AND_ASHIPPING FWK/ViewHelpers/Basket/Macro/Setps::STEP_CONFIRM_ORDER |
|||
routeType | string | '' | false |
showNumbers | bool | false | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.steps({
steps: [
constant('FWKViewHelpersBasketMacroSetps::STEP_BASKET'),
constant('FWKViewHelpersBasketMacroSetps::STEP_CUSTOMER'),
constant('FWKViewHelpersBasketMacroSetps::STEP_PAYMENT_AND_ASHIPPING'),
constant('FWKViewHelpersBasketMacroSetps::STEP_CONFIRM_ORDER')
]
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/steps.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/Steps.php
voucherForm
Parametros
Variable | Tipo | Por defecto | Requerido |
basket | SDKDtosBasketBasket | null | false |
forceOutput | bool | false | false |
Ejemplo
{% import macrosCore.basket as basketMacros %}
{{ basketMacros.voucherForm({
basket: controllerItem
}) }}
Relacionados
macros/modes/{{coreMode}}/basket/voucherForm.html.twig
View Helper
FWK/ViewHelpers/Basket/Macro/VoucherForm.php