OK, my mistake by copying
<?php if (ZEN_CONFIG_USER_TRACKING == 'true') { zen_update_user_tracking(); } ?>
to the wrong template.
It is working now.:clap:
Printable View
OK, my mistake by copying
<?php if (ZEN_CONFIG_USER_TRACKING == 'true') { zen_update_user_tracking(); } ?>
to the wrong template.
It is working now.:clap:
troubelshootings: (from the readme file)
1- first check again if all files are correctly located in the zen directories.
2- go to phpmyadmin, in table, configuration, delete all values related to user tracker , in table configuration-group, delete the table user tracking
3- try install sql package with alternative methode (if the first time was phpmyadmin, so this time do with zen admin add sql patch tools)
4- chack again if you have added two modifications to tpl.footer.php and footer.php (Make sure it is the right template)
Good luck
Can you help me out with my user tracking?
My admin shows nothing. If possible I would ask you to log in to my admin and fix my errors
Greets
Laura
http://www.hoornvoelen.nl
I was just poking around the UT code a bit and noticed that the user tracking function file is checking to see if there's a customer id (in other words its checking to see if the person is logged in or not) and then querying the database for the customers first name and last name every single time a new page loads up for that person.
So if the person is logged in we don't have to query the DB, their first and last name are already in the $_SESSION.
As long as your user tracking code snippet isn't one of the first things to be loaded, to help improve your load time you may try the following.
in includes/functions/extra_functions/user_tracking.php
find the following code
replace it withCode:if ($_SESSION['customer_id'])
{
$customer = $db->Execute("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . $_SESSION['customer_id'] . "'");
$wo_full_name = addslashes($customer->fields['customers_firstname'] . ' ' . $customer->fields['customers_lastname']);
}
:smartalec:Code:if ($_SESSION['customer_id'])
{
$wo_full_name = $_SESSION['customer_first_name'] . ' ' . $_SESSION['customer_last_name'];
}
This mod is brilliant. Thank you. :smile:
Highlights the odd thing on the site that needs tweaked when you realise the issues that make some customers leave.
Also....Am I the only one who presses the 'report' button literally every other minute? It's like being down in that bunker they had in Lost! :laugh:
I posted here:
http://www.zen-cart.com/forum/showth...990#post901990
I upgraded my site yesterday. Everything was running smoothly. I went to check on a product I added early this afternoon (admin working fine) and I got a blank page.
I installed the debugging and got this error:
PHP Fatal error: Call to undefined function zen_update_user_tracking() in /includes/templates/custom/common/tpl_footer.php on line 67
I went in an retyped the text into the tpl_footer as directed by the install directions but the error keeps showing. The whole site is non accessable except the admin side. I went in and "dropped" the user tracking table but that didn't work either.
Anything I can do besides re-upgrade the site?
just wanted to note my line 67 is :
<?php if (ZEN_CONFIG_USER_TRACKING == 'true') { zen_update_user_tracking(); } ?>
Got it figured out. I "uninstalled" the mod by removing all the files and dropping the table. Then I ran the debugger again and found a weird t-spring error in english.php so I replaced that with my backup version and now site is up.
Hi all, been using this mod for a while now and have to say its great :) only minor problem ive got with it is that it seems to constantly get the users originating country wrong. Is this a known issue and is there any fix for it?