Forums / Addon Admin Tools / Customer Search Log

Customer Search Log

Views: 26,823

Results 41 to 60 of 61
9 Feb 2015, 2:09 PM
#41
schobing avatar

schobing

New Zenner

Join Date:
Aug 2008
Posts:
6
Plugin Contributions:
0

Customer Search Log

missesbeehaven:

Is this compatible with 1.5.4? The forum posts to this point only mention previous 1.3.9 and 1.5.1 but no mention of anything above 1.5.1. I would really like this functionality on my zen cart store

I updated to 1.5.4 about a month ago and it works great.

21 Feb 2015, 4:29 PM
#42
owen26 avatar

owen26

New Zenner

Join Date:
Feb 2010
Posts:
12
Plugin Contributions:
0

Re: Customer Search Log

I installed version 2.2 of this plugin on zc1.54, and it seems to record searches just fine in the database OK since they display in the Reports>Search Log admin window.

However, when I try to export a .CSV copy of the searches, none of the searches are recorded in the .CSV file. The .CSV file only has header information ("Date","Search Term","Results"). Any suggestions?

15 Sep 2015, 9:42 PM
#43
apogeerockets avatar

apogeerockets

Zen Follower

Join Date:
Aug 2011
Posts:
104
Plugin Contributions:
0

Re: Customer Search Log

owen26:

I installed version 2.2 of this plugin on zc1.54, and it seems to record searches just fine in the database OK since they display in the Reports>Search Log admin window.

However, when I try to export a .CSV copy of the searches, none of the searches are recorded in the .CSV file. The .CSV file only has header information ("Date","Search Term","Results"). Any suggestions?

Same here.

21 Oct 2015, 1:48 PM
#44
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Customer Search Log

In case anyone is trying to do a reinstall of Search Log v2.1 in ZC v1.3.9h, after deinstalling for whatever reason, if your server's MySQL is a version greater than about v4.x, you'll need to make one small change in the search_log_install.sql file. Change the last line to say ENGINE=MyISAM; Then the install will proceed as expected. (I can stop beating my head on the wall now.)

Rob

Breakfast: the most important donut of the day.

3 Apr 2016, 2:23 AM
#45
jwlamb avatar

jwlamb

Zen Follower

Join Date:
Jan 2014
Location:
Arizona
Posts:
110
Plugin Contributions:
0

Re: Customer Search Log

Does any have any issues since upgrading to 1.5.5? All of my search terms in the log show as -1' and ==. Any clues?

2016-04-02 18:57:52 -1' 0
2016-04-02 18:57:51 == 0
2016-04-02 18:56:32 -1' 0
2016-04-02 18:56:30 == 0
2016-04-02 18:56:28 == 0
2016-04-02 18:49:17 == 0
2016-04-02 18:35:32 -1' 0
2016-04-02 18:35:31 == 0
2016-04-02 18:35:31 == 0
2016-04-02 18:30:50 -1' 0

4 Apr 2016, 10:26 PM
#46
jwlamb avatar

jwlamb

Zen Follower

Join Date:
Jan 2014
Location:
Arizona
Posts:
110
Plugin Contributions:
0

Re: Customer Search Log

jwlamb:

Does any have any issues since upgrading to 1.5.5? All of my search terms in the log show as -1' and ==. Any clues?

Never mind, my site was being attacked. Nothing to do with the plugin.

7 Apr 2016, 4:19 AM
#47
jwlamb avatar

jwlamb

Zen Follower

Join Date:
Jan 2014
Location:
Arizona
Posts:
110
Plugin Contributions:
0

Re: Customer Search Log

Any way of adding the IP address of the customer (regardless if logged in) to the search log?

Thank you.

24 May 2016, 6:15 AM
#48
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Customer Search Log

I am modifying this as part of my upgrade/spring clean:
Attachment 16351

so the listing is now of the search term (once per language), a count of how many times that keyword has been searched for, the last results of that search, and the date of the last search.

If anyone wants a copy for pre-upload testing, please pm me.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

25 May 2016, 12:08 PM
#49
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Customer Search Log

If anyone wants a copy for pre-upload testing, please pm me.
I'll leave it here for a few days, I'd appreciate someone having a try before I upload it with stupid error in it!
https://dl.dropboxusercontent.com/u/57111073/search_log_2-3.zip

thanks

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

27 Jun 2017, 11:46 AM
#50
ehdesign avatar

ehdesign

New Zenner

Join Date:
Nov 2006
Posts:
56
Plugin Contributions:
0

Re: Customer Search Log

schobing:

I updated to 1.5.4 about a month ago and it works great.

Did you ever find a resolution? I'm still seeing the problem?

27 Jun 2017, 11:48 AM
#51
ehdesign avatar

ehdesign

New Zenner

Join Date:
Nov 2006
Posts:
56
Plugin Contributions:
0

Re: Customer Search Log

Trying to use the EXPORT AS CSV function, but the export has nothing in it but the headers? Any ideas on fixes?

6 Jul 2017, 1:37 PM
#52
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Customer Search Log

I just tried the Export as CSV in v2.3 and v2.4 and the output was correct: contained both headers and actual search results data.

.
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.

7 Oct 2018, 8:23 PM
#53
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Customer Search Log

Please update version 2.4 download version to reflect zip version:

admin/stats_search_log.php
line 2
// Search Log v2.4

admin/includes/extra_datafiles/search_log.php
line 21
define('STATS_SEARCH_LOG_VERSION', '2.4');

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

9 Aug 2019, 5:59 PM
#54
clam_man avatar

clam_man

New Zenner

Join Date:
Jun 2019
Location:
Austin TX
Posts:
65
Plugin Contributions:
0

Re: Customer Search Log

Our site was attacked 3 days ago via SQL injection. We've made a full recovery of course, but is there a way to also log the IP of the user doing the search and have it saved in the database along with the rest of the saved data. It would help out in case someone attempts to do this again. We're on the latest version of zen cart but for some reason they were still able to fill up our server's hard drive and bring the site down for a couple hours before we noticed and did a restore.

9 Aug 2019, 11:37 PM
#55
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,857
Plugin Contributions:
18

Re: Customer Search Log

Make sure you have followed the directions at http://www.zen-cart.com/wiki/index.php/Recovering_From_Hacks. Work with your host about blocking before they get to your site and try IP Blocker for blocking at the site.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

20 Dec 2020, 9:10 PM
#56
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Customer Search Log

Using zen cart 1.5.7 and search log version 2.4 I have found that attempting to use any of the sort by Asc / Desc options kicks me back to the admin index page.
Can anyone else confirm this behaviour with the same zc and module version?
Any ideas on a fix for this?

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

20 Dec 2020, 10:23 PM
#57
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Customer Search Log

I resolved the issue.

I modified lines 153 to 161 from this:

<td class="dataTableHeadingContent" align="left" valign="top" width="20%"><?php echo (($_GET['list_order']=='searchdate' or $_GET['list_order']=='searchdate-desc') ? '<span class="SortOrderHeader">' . TABLE_HEADING_DATE . '</span>' : TABLE_HEADING_DATE); ?><br />
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=searchdate', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='searchdate' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</span>'); ?></a>  <a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=searchdate-desc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='searchdate-desc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</span>'); ?></a>
</td>
<td class="dataTableHeadingContent" align="left" valign="top"><?php echo (($_GET['list_order']=='searchterm' or $_GET['list_order']=='searchterm-desc') ? '<span class="SortOrderHeader">' . TABLE_HEADING_SEARCH_TERM . '</span>' : TABLE_HEADING_SEARCH_TERM); ?><br />
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=searchterm', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='searchterm' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</span>'); ?></a>  <a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=searchterm-desc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='searchterm-desc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</span>'); ?></a>
</td>
<td class="dataTableHeadingContent" width="20%"><?php echo (($_GET['list_order']=='searchresults' or $_GET['list_order']=='searchresults-desc') ? '<span class="SortOrderHeader">' . TABLE_HEADING_RESULTS . '</span>' : TABLE_HEADING_RESULTS); ?><br />
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=searchresults', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='searchresults' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</span>'); ?></a>  <a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=searchresults-desc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='searchresults-desc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</span>'); ?></a>
</td>

To this:

<td class="dataTableHeadingContent" align="left" valign="top" width="20%">
<?php echo (($_GET['list_order']=='searchdate' or $_GET['list_order']=='searchdate-desc') ? '<span class="SortOrderHeader">' . TABLE_HEADING_DATE . '</span>' : TABLE_HEADING_DATE); ?><br />
<a href="<?php echo zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('list_order', 'page')) . 'list_order=searchdate', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='searchdate' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</span>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('list_order', 'page')) . 'list_order=searchdate-desc', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='searchdate-desc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</span>'); ?></a>
</td>
<td class="dataTableHeadingContent" align="left" valign="top">
<?php echo (($_GET['list_order']=='searchterm' or $_GET['list_order']=='searchterm-desc') ? '<span class="SortOrderHeader">' . TABLE_HEADING_SEARCH_TERM . '</span>' : TABLE_HEADING_SEARCH_TERM); ?><br />
<a href="<?php echo zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('list_order', 'page')) . 'list_order=searchterm', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='searchterm' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</span>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('list_order', 'page')) . 'list_order=searchterm-desc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='searchterm-desc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</span>'); ?></a>
</td>
<td class="dataTableHeadingContent" width="20%">
<?php echo (($_GET['list_order']=='searchresults' or $_GET['list_order']=='searchresults-desc') ? '<span class="SortOrderHeader">' . TABLE_HEADING_RESULTS . '</span>' : TABLE_HEADING_RESULTS); ?><br />
<a href="<?php echo zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('list_order', 'page')) . 'list_order=searchresults', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='searchresults' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</span>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('list_order', 'page')) . 'list_order=searchresults-desc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='searchresults-desc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</span>'); ?></a>
</td>

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

20 Dec 2020, 10:38 PM
#58
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Customer Search Log

I've submitted an updated version of the mod for approval.

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

13 May 2021, 11:09 AM
#59
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Customer Search Log

Added a small tweak: skip logging of searches performed from an IP in the Down for Maintenance exclusion list.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

27 Jan 2023, 5:16 PM
#60
printchic avatar

printchic

New Zenner

Join Date:
May 2009
Posts:
66
Plugin Contributions:
0

Re: Customer Search Log

ZC: 158v
Php: 7.4
Template: Bootstrap Cloned

I just installed the search.log plugin. Don't know if it is just me but it doesn't appear to be logging searches made from an a mobile phone (i have a samsung) or tablet (android). It only captures search made online form a computer.