Skip to content
Snippets Groups Projects
Commit 7bef8157 authored by Tobias Etzold's avatar Tobias Etzold
Browse files

Method addEcommerceItem() returns object instance

parent d126a959
Branches
No related merge requests found
......@@ -680,6 +680,7 @@ class PiwikTracker
* @param float|int $price (optional) Individual product price (supports integer and decimal prices)
* @param int $quantity (optional) Product quantity. If not specified, will default to 1 in the Reports
* @throws Exception
* @return $this
*/
public function addEcommerceItem($sku, $name = '', $category = '', $price = 0.0, $quantity = 1)
{
......@@ -690,6 +691,7 @@ class PiwikTracker
$price = $this->forceDotAsSeparatorForDecimalPoint($price);
$this->ecommerceItems[] = array($sku, $name, $category, $price, $quantity);
return $this;
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment