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:
authormattpiwik <matthieu.aubry@gmail.com>2011-05-31 02:01:25 +0400
committermattpiwik <matthieu.aubry@gmail.com>2011-05-31 02:01:25 +0400
commit3bee417f0fcaedb3abffdbf5a6b1f56c51121934 (patch)
treed89a54d2eec0ac269eddfcbc13aeb47ca6fca8a9 /plugins/Live/templates
parent2bc317f75c714f94fa5b4666227b4b418146f2ff (diff)
Refs #898 Only show in Orders Logs visits that actually have some ecommerce orders (rather than relying on the visitEcommerceStatus flag)
git-svn-id: http://dev.piwik.org/svn/trunk@4840 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Live/templates')
-rw-r--r--plugins/Live/templates/visitorLog.tpl13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/Live/templates/visitorLog.tpl b/plugins/Live/templates/visitorLog.tpl
index f5cd0a5ac9..a26cdf88d6 100644
--- a/plugins/Live/templates/visitorLog.tpl
+++ b/plugins/Live/templates/visitorLog.tpl
@@ -72,7 +72,7 @@
{/if}
{/capture}
-
+ {capture assign='visitorRow'}
<tr class="label{cycle values='odd,even'}">
<td style="display:none;"></td>
<td class="label" style="width:12%" width="12%">
@@ -152,6 +152,7 @@
</strong>
<br />
<ol class='visitorLog'>
+ {capture assign='visitorHasSomeEcommerceActivity'}0{/capture}
{foreach from=$visitor.columns.actionDetails item=action}
{capture assign='customVariablesTooltip'}
{if !empty($action.customVariables)}
@@ -169,7 +170,9 @@
{* Ecommerce Abandoned Cart / Ecommerce Order *}
<img src="{$action.icon}" />
- {if $action.type == 'ecommerceOrder'}<strong>{'Goals_EcommerceOrder'|translate}</strong> <span style='color:#666666'>({$action.orderId})</span>
+ {if $action.type == 'ecommerceOrder'}
+ {capture assign='visitorHasSomeEcommerceActivity'}1{/capture}
+ <strong>{'Goals_EcommerceOrder'|translate}</strong> <span style='color:#666666'>({$action.orderId})</span>
{else}<strong>{'Goals_AbandonedCart'|translate}</strong>
{/if} <br/>
<span {if !$isWidget}style='margin-left:20px'{/if}>
@@ -227,6 +230,12 @@
</ol>
</td>
</tr>
+ {/capture}
+
+ {if !$javascriptVariablesToSet.filterEcommerce
+ || (isset($visitorHasSomeEcommerceActivity) && $visitorHasSomeEcommerceActivity)}
+ {$visitorRow}
+ {/if}
{/foreach}
</tbody>
</table>