1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 22:47:43 +00:00
Files
matomo/plugins/Ecommerce/templates/_actionTooltip.twig
Stefan Giehl 8e25f1c68a Track ecommerce views as new dimensions instead of custom variables (#15999)
* Adds new columns to log_link_visit_action table to track ecommerce view data

* update piwik.js to track ecommerce view s the new way

* Adjust archiving

* update tests

* [TEMP] use php-tracker branch for composer

* Archive custom variables the old way, only if Matomo was installed before 4.0

* add fallback to custom variables to keep bc when replaying old logs

* update some expected test files

* fix jslint errors

* update javascript test

* update dimension names

* updates some expected test files

* add product view data to visitor details and add suggested segment values

* updates some expected test files

* rebuilt piwik.js

* adjust checked version

* update expected ui files

* updates some expected test files

* submodule updates

* apply some review feedback

* Show product views in action tooltips

* updates expected UI files

Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
2020-06-09 10:58:32 +02:00

15 خطوط
615 B
Twig

{% apply spaceless %}
{% if action.productViewName is defined %}
{{ 'Ecommerce_ViewedProductName'|translate }}: {{ action.productViewName }}
{% endif %}
{% if action.productViewSku is defined %}
{{ 'Ecommerce_ViewedProductSKU'|translate }}: {{ action.productViewSku }}
{% endif %}
{% if action.productViewPrice is defined %}
{{ 'Ecommerce_ViewedProductPrice'|translate }}: {{ action.productViewPrice|money(visitInfo.idSite) }}
{% endif %}
{% if action.productViewCategories is defined %}
{{ 'Ecommerce_ViewedProductCategory'|translate }}: {{ action.productViewCategories|implode(', ') }}
{% endif %}
{% endapply %}