[Changed] move item_variants to own event-parameter section
This commit is contained in:
@ -29,26 +29,30 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% set d3PriceObject = gtmProduct.getPrice() %}
|
{% set d3PriceObject = gtmProduct.getPrice() %}
|
||||||
'price': {{ d3PriceObject.getPrice() }}
|
'price': {{ d3PriceObject.getPrice() }}
|
||||||
}{% if d3ViewObject.d3GetModuleConfigParam('_blViewItemAddVariants') %}
|
}
|
||||||
{% for gtmProduct.getVariants() in oVariant %}
|
]
|
||||||
, {
|
{% if d3ViewObject.d3GetModuleConfigParam('_blViewItemAddVariants') %}
|
||||||
'item_name': '{{ oVariant.getRawFieldData("oxtitle") }}',
|
,'item_variants':
|
||||||
'item_id': '{{ oVariant.getFieldData("oxartnum") }}',
|
[
|
||||||
'item_brand': '{% if gtmManufacturer %}{{ gtmManufacturer.getFieldData('oxtitle')|raw }}{% endif %}',
|
{% for gtmProduct.getVariants() in oVariant %}
|
||||||
'item_variant': '{% if oVariant.getFieldData("oxvarselect") %}{{ oVariant.getFieldData("oxvarselect") }}{% endif %}',
|
{
|
||||||
{% if gtmCategory %}
|
'item_name': '{{ oVariant.getRawFieldData("oxtitle") }}',
|
||||||
|
'item_id': '{{ oVariant.getFieldData("oxartnum") }}',
|
||||||
|
'item_brand': '{% if gtmManufacturer %}{{ gtmManufacturer.getFieldData('oxtitle')|raw }}{% endif %}',
|
||||||
|
'item_variant': '{% if oVariant.getFieldData("oxvarselect") %}{{ oVariant.getFieldData("oxvarselect") }}{% endif %}',
|
||||||
|
{% if gtmCategory %}
|
||||||
'item_category': '{{ gtmCategory.getSplitCategoryArray(0, true) }}',
|
'item_category': '{{ gtmCategory.getSplitCategoryArray(0, true) }}',
|
||||||
'item_category2':'{{ gtmCategory.getSplitCategoryArray(1, true) }}',
|
'item_category2':'{{ gtmCategory.getSplitCategoryArray(1, true) }}',
|
||||||
'item_category3':'{{ gtmCategory.getSplitCategoryArray(2, true) }}',
|
'item_category3':'{{ gtmCategory.getSplitCategoryArray(2, true) }}',
|
||||||
'item_category4':'{{ gtmCategory.getSplitCategoryArray(3, true) }}',
|
'item_category4':'{{ gtmCategory.getSplitCategoryArray(3, true) }}',
|
||||||
'item_list_name':'{{ gtmCategory.getSplitCategoryArray() }}',
|
'item_list_name':'{{ gtmCategory.getSplitCategoryArray() }}',
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% set d3PriceObject = oVariant.getPrice() %}
|
{% set d3PriceObject = oVariant.getPrice() %}
|
||||||
'price': {{ d3PriceObject.getPrice() }}
|
'price': {{ d3PriceObject.getPrice() }}
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
]
|
||||||
]
|
{% endif %}
|
||||||
}{% if oViewConf.isDebugModeOn() %},
|
}{% if oViewConf.isDebugModeOn() %},
|
||||||
'debug_mode': 'true'
|
'debug_mode': 'true'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Reference in New Issue
Block a user