Skip to content

Commit 8db4a30

Browse files
committed
minor formatting / comment improvements
1 parent 92341b6 commit 8db4a30

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

upload/catalog/model/tool/piwik.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,28 @@ class ModelToolPiwik extends Model {
44
// Used to store Piwik Tracker object (don't touch!)
55
private $t;
66

7-
/* Variables temporarily defined at the top (to develop into admin backend at a later date) */
7+
/* Variables defined to be used later in the code */
88
/* ---------------------------------------------------------------------------------------- */
9-
private $piwik_https_url; // Your Piwik installation URL (https).
10-
private $piwik_http_url; // Your Piwik installation URL.
11-
private $piwik_site_id; // The Site ID for your site in Piwik.
12-
private $piwik_token_auth; // Your Piwik auth token (from Piwik 'API' tab).
9+
private $piwik_https_url; // Piwik installation URL (https).
10+
private $piwik_http_url; // Piwik installation URL.
11+
private $piwik_site_id; // The Site ID for the site in Piwik.
12+
private $piwik_token_auth; // Piwik auth token (from Piwik 'API' tab).
1313
private $piwik_ec_enable; // True - to enable Ecommerce tracking.
14-
// False for basic page tracking.
14+
// False for basic page tracking.
1515

1616
private $piwik_use_sku; // True - Report Piwik SKU from Opencart 'SKU'.
17-
// False - Report Piwik SKU from Opencart 'Model'.
17+
// False - Report Piwik SKU from Opencart 'Model'.
1818

1919
private $piwik_proxy_enable; // True - to enable the use of the piwik proxy script to hide trhe piwik URL.
20-
// False - for regular Piwik tracking.
20+
// False - for regular Piwik tracking.
2121

22-
// The full path to the PiwikTracker.php file (MUST use for Ecommerce tracking to work - get from Piwik website).
23-
private $piwik_tracker_location;
22+
private $piwik_tracker_location; // The full path to the PiwikTracker.php file
2423
/* ---------------------------------------------------------------------------------------- */
2524

2625

2726
// Function to set various things up
28-
// Not 100% certain how / where to run this, so just blanket running before each big block of API code
29-
// Called internally by trackEcommerceCartUpdate and trackEcommerceOrder
27+
// Not 100% certain where most efficient to run, so just blanket running before each big block of API code
28+
// Called internally by other functions
3029
private function init() {
3130
// Load config data
3231
$this->load->model('setting/setting');

0 commit comments

Comments
 (0)