Yeah, this mod is cool...
More features would be nice...keeping a Marketing/SEO point of view in mind.
I think Google Analytics offers this type of tool for your site,
I'm sure there's some good ideas to be copped from their version.
Some people don't believe in offering Google their entire business model, advertising strategy and sales information on a silver platter...
so those people have to do without the handy little features like search stats...this Search Log mod helps overcome that problem!
Thanks man, good work!
Hello everyone,
Does anyone have Search Log v2.0 working with v1.3.8a of the Time Zone Offset mod by Gilby?
http://www.zen-cart.com/index.php?ma...roducts_id=145
Whilst the Time Zone Offset mod offsets all other times correctly, the Search Log still shows the incorrect time.
In an unsuccessful attempt to resolve this, the following change was made, however, new searches still do not show the offset time.
\includes\classes\observers\class.search_log.php
Line 47 - Changed from:
To:Code:$sql = 'insert into ' .DB_PREFIX. 'search_log (search_term, search_time, search_results) values (:searchTerm,now(),:searchResults)';
Can anyone advise what other changes in addition to, or instead of the above, are required to fix this?Code:$sql = 'insert into ' .DB_PREFIX. 'search_log (search_term, search_time, search_results) values (:searchTerm,date_add(now(), INTERVAL " . TIME_ZONE_OFFSET . " HOUR),:searchResults)';
If relevant, Zen Cart is v1.38a, PHP is v5.2.6 and MySQL is v5.0.51a-community
Testing on an otherwise clean installed Zen Cart with correct locale setting, and only the Search Log and Time Zone Offset mods installed shows the problem remains, and is seemingly not related to any incompatibility with other mods.
Many thanks,
Edward McDougle.
You used double-quotes when inserting the constant value into the query, but the rest of the syntax is using single-quotes. Thus the name of your constant, along with its quotes, is being sent literally to the query. I'm surprised MySQL didn't croak on it.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thanks DrByte, your suggested fix resolved that problem.
Just one more issue remains, that being the date format, which is shown in the wrong format:
For example, 2008-08-10 01:02:52, where it should be 01:02:52 10-08-2008
Elsewhere, the date format is correct as per the locale setting.
Many thanks,
Edward McDougle.
The date must be stored in the database in YYYY-MM-DD HH:MM:SS format. That's what MySQL requires.
If you're not happy with the way the search log *report* shows the output, you'll have to alter the code of the contribution to have it render the display to your liking. You can probably use the changes introduced by other files in your timezone-offset addon as an example for how to change other things such as your report.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thank you for your help DrByte.
Hi,
Good job! Combining using this add-on with Google Analytics, we would get what keywords do well and what to develop!
Thanks for your job,![]()
I have installed this to Zen 1.3.9 c, and it is not showing up under the admin>reports, how do I add this , thanks for any help
Bookmarks