Skip to content

Commit

Permalink
New const for number of max categories (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur authored and mattab committed Dec 27, 2016
1 parent e750ac9 commit 41dd1c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PiwikTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ class PiwikTracker
const CVAR_INDEX_ECOMMERCE_ITEM_NAME = 4;
const CVAR_INDEX_ECOMMERCE_ITEM_CATEGORY = 5;

/**
* Defines how many categories can be used max when calling addEcommerceItem().
* @var int
*/
const MAX_NUM_ECOMMERCE_ITEM_CATEGORIES = 5;

const DEFAULT_COOKIE_PATH = '/';

/**
Expand Down

0 comments on commit 41dd1c0

Please sign in to comment.