Skip to content

Commit

Permalink
Make sure to default abandonedCarts param to correct value when ecomm…
Browse files Browse the repository at this point in the history
…erce item report viewed w/o the parameter.
  • Loading branch information
diosmosis committed Dec 3, 2014
1 parent a3c8a9e commit cadc3b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/Goals/Reports/BaseEcommerceItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ public function configureView(ViewDataTable $view)

$columnsOrdered = array('label', 'revenue', 'quantity', 'avg_price', 'avg_quantity', 'nb_visits',
'abandoned_carts');

$view->config->custom_parameters['abandonedCarts'] = '1';
} else {
$view->config->custom_parameters['abandonedCarts'] = '0';
}

$translations = array_merge(array('label' => $this->name), $columns);
Expand Down

0 comments on commit cadc3b1

Please sign in to comment.