Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2019-04-11 04:02:58 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2019-04-11 04:02:58 +0300
commit12416e0e60d0792d5d84c688b64a6aab16f26c91 (patch)
tree0e731b21acc4d93fc17e3c3afdaf0ba34db08221 /plugins/Live
parent751fd191140048161a5844d1241d811e8ac0a847 (diff)
Display all product categories if present in the visitor log (#14083)
* Query and show all product categories not just the first in the visitor log. * Fix SQL + processing * Allow XML renderer to render array of simple values. * Add unit test for xml renderer. * Add second product category to fixture, update test files and update omnifixture. * Update some expected test files.
Diffstat (limited to 'plugins/Live')
-rw-r--r--plugins/Live/templates/_actionEcommerce.twig5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Live/templates/_actionEcommerce.twig b/plugins/Live/templates/_actionEcommerce.twig
index fc914503d4..f353781ac3 100644
--- a/plugins/Live/templates/_actionEcommerce.twig
+++ b/plugins/Live/templates/_actionEcommerce.twig
@@ -39,9 +39,8 @@
<ul style='list-style:square;margin-left:{% if isWidget %}15{% else %}50{% endif %}px;'>
{% for product in action.itemDetails %}
<li>
- {{ product.itemSKU }}{% if product.itemName is not empty %}: {{ product.itemName }}{% endif %}
- {% if product.itemCategory is not empty %} ({{ product.itemCategory }}){% endif %}
- ,
+ {{ product.itemSKU }}{% if product.itemName is not empty %}: {{ product.itemName }}{% endif -%}
+ {%- if product.categories is not empty %} ({% for category in product.categories %}{{ category }}{% if not loop.last %}, {% endif %}{% endfor %}){% endif %},
{{ 'General_Quantity'|translate }}: {{ product.quantity }},
{{ 'General_Price'|translate }}: {{ product.price|money(visitInfo.idSite)|raw }}
</li>