[Changed] move item_variants to own event-parameter section

This commit is contained in:
2025-06-12 10:03:44 +02:00
parent 6a4297ea2e
commit 3c29ded321

View File

@ -30,9 +30,11 @@
[{assign var="d3PriceObject" value=$gtmProduct->getPrice()}]
[{oxhasrights ident="SHOWARTICLEPRICE"}]'price': [{$d3PriceObject->getPrice()}][{/oxhasrights}]
}
[{if $oViewConf->d3GetModuleConfigParam('_blViewItemAddVariants')}],
]
[{if $oViewConf->d3GetModuleConfigParam('_blViewItemAddVariants')}]
,'item_variants':[
[{foreach from=$gtmProduct->getVariants() item="oVariant"}]
, {
{
'item_name': '[{$oVariant->getRawFieldData("oxtitle")}]',
'item_id': '[{$oVariant->getFieldData("oxartnum")}]',
'item_brand': '[{if $gtmManufacturer}][{$gtmManufacturer->oxmanufacturers__oxtitle->value}][{/if}]',
@ -46,10 +48,10 @@
[{/if}]
[{assign var="d3PriceObject" value=$oVariant->getPrice()}]
'price': [{$d3PriceObject->getPrice()}]
}
},
[{/foreach}]
[{/if}]
]
[{/if}]
}[{if $oViewConf->isDebugModeOn()}],
'debug_mode': 'true'
[{/if}]