[Changed] move item_variants to own event-parameter section
This commit is contained in:
@ -29,9 +29,13 @@
|
||||
{% endif %}
|
||||
{% set d3PriceObject = gtmProduct.getPrice() %}
|
||||
'price': {{ d3PriceObject.getPrice() }}
|
||||
}{% if d3ViewObject.d3GetModuleConfigParam('_blViewItemAddVariants') %}
|
||||
}
|
||||
]
|
||||
{% if d3ViewObject.d3GetModuleConfigParam('_blViewItemAddVariants') %}
|
||||
,'item_variants':
|
||||
[
|
||||
{% for gtmProduct.getVariants() in oVariant %}
|
||||
, {
|
||||
{
|
||||
'item_name': '{{ oVariant.getRawFieldData("oxtitle") }}',
|
||||
'item_id': '{{ oVariant.getFieldData("oxartnum") }}',
|
||||
'item_brand': '{% if gtmManufacturer %}{{ gtmManufacturer.getFieldData('oxtitle')|raw }}{% endif %}',
|
||||
@ -47,8 +51,8 @@
|
||||
'price': {{ d3PriceObject.getPrice() }}
|
||||
}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
]
|
||||
{% endif %}
|
||||
}{% if oViewConf.isDebugModeOn() %},
|
||||
'debug_mode': 'true'
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user