Hi,
I have to edit affiliate cookie period but in index.php there is nothing to edit now in latest version.
I am using 3.0.2.0. Please suggest in which file n location to edit for cookie period.
Also, can we track clicks and all for affiliates?How?
Thanks
In catalog/controller/startup/startup.php file, this is what you'd be looking for:
Code: Select all
// Tracking Code
if (isset($this->request->get['tracking'])) {
setcookie('tracking', $this->request->get['tracking'], time() + 3600 * 24 * 1000, '/');
$this->db->query("UPDATE `" . DB_PREFIX . "marketing` SET clicks = (clicks + 1) WHERE code = '" . $this->db->escape($this->request->get['tracking']) . "'");
}
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 391 guests