diff options
m--------- | plugins/CustomDimensions | 0 | ||||
-rw-r--r-- | plugins/Live/VisitorDetails.php | 3 | ||||
-rw-r--r-- | plugins/Live/templates/_actionEcommerce.twig | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/plugins/CustomDimensions b/plugins/CustomDimensions -Subproject 5e08ac672fb14c61062ea334ab86ecd2e44b6dd +Subproject 34721e30c70c9b3183128a50a144440fa1f033d diff --git a/plugins/Live/VisitorDetails.php b/plugins/Live/VisitorDetails.php index 42a79d7d49..fc77c1605b 100644 --- a/plugins/Live/VisitorDetails.php +++ b/plugins/Live/VisitorDetails.php @@ -9,6 +9,7 @@ namespace Piwik\Plugins\Live; use Piwik\API\Request; +use Piwik\Common; use Piwik\Config; use Piwik\Date; use Piwik\DataTable; @@ -155,7 +156,7 @@ class VisitorDetails extends VisitorDetailsAbstract function getIdSite() { - return $this->details['idsite']; + return isset($this->details['idsite']) ? $this->details['idsite'] : Common::getRequestVar('idSite'); } function getFingerprint() diff --git a/plugins/Live/templates/_actionEcommerce.twig b/plugins/Live/templates/_actionEcommerce.twig index 229067d998..a5d345a08a 100644 --- a/plugins/Live/templates/_actionEcommerce.twig +++ b/plugins/Live/templates/_actionEcommerce.twig @@ -40,7 +40,7 @@ {% for product in action.itemDetails %} <li> {{ 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 %}, + {%- if product.categories is defined and 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> |