[Changed] move item_variants to own event-parameter section
This commit is contained in:
@ -30,26 +30,28 @@
|
||||
[{assign var="d3PriceObject" value=$gtmProduct->getPrice()}]
|
||||
[{oxhasrights ident="SHOWARTICLEPRICE"}]'price': [{$d3PriceObject->getPrice()}][{/oxhasrights}]
|
||||
}
|
||||
[{if $oViewConf->d3GetModuleConfigParam('_blViewItemAddVariants')}],
|
||||
[{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}]',
|
||||
'item_variant': '[{if $oVariant->getFieldData("oxvarselect")}][{$oVariant->getFieldData("oxvarselect")}][{/if}]',
|
||||
[{if $gtmCategory}]
|
||||
'item_category': '[{$gtmCategory->getSplitCategoryArray(0, true)}]',
|
||||
'item_category2': '[{$gtmCategory->getSplitCategoryArray(1, true)}]',
|
||||
'item_category3': '[{$gtmCategory->getSplitCategoryArray(2, true)}]',
|
||||
'item_category4': '[{$gtmCategory->getSplitCategoryArray(3, true)}]',
|
||||
'item_list_name': '[{$gtmCategory->getSplitCategoryArray()}]',
|
||||
[{/if}]
|
||||
[{assign var="d3PriceObject" value=$oVariant->getPrice()}]
|
||||
'price': [{$d3PriceObject->getPrice()}]
|
||||
}
|
||||
[{/foreach}]
|
||||
[{/if}]
|
||||
]
|
||||
[{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}]',
|
||||
'item_variant': '[{if $oVariant->getFieldData("oxvarselect")}][{$oVariant->getFieldData("oxvarselect")}][{/if}]',
|
||||
[{if $gtmCategory}]
|
||||
'item_category': '[{$gtmCategory->getSplitCategoryArray(0, true)}]',
|
||||
'item_category2': '[{$gtmCategory->getSplitCategoryArray(1, true)}]',
|
||||
'item_category3': '[{$gtmCategory->getSplitCategoryArray(2, true)}]',
|
||||
'item_category4': '[{$gtmCategory->getSplitCategoryArray(3, true)}]',
|
||||
'item_list_name': '[{$gtmCategory->getSplitCategoryArray()}]',
|
||||
[{/if}]
|
||||
[{assign var="d3PriceObject" value=$oVariant->getPrice()}]
|
||||
'price': [{$d3PriceObject->getPrice()}]
|
||||
},
|
||||
[{/foreach}]
|
||||
]
|
||||
[{/if}]
|
||||
}[{if $oViewConf->isDebugModeOn()}],
|
||||
'debug_mode': 'true'
|
||||
[{/if}]
|
||||
|
Verwijs in nieuw issue
Block a user