Most-Viewed Products - Reports
www.jaysmodelkits.com ZC-v1.5.7d
Okay, so I wanted to use the Most-Viewed Products report tool today and I see it has been "improved" and that it now has a date range facility.
That's cool. It's default is a one month period from the current day and 30 days prior. The problem comes when you attempt to alter the dates. The new date settings only remain for the first page of results then when you click on page two they revert back to the default of one month.
Is this a known problem? I thought it may have been a problem with Safari (Mac) as it does have a habit of throwing up some odd issues, but I tried it in Firefox and found the same problem.
Cheers, John.
Re: Most-Viewed Products - Reports
pretty sure this is fixed in 1.5.8.
Re: Most-Viewed Products - Reports
I was unable to test the 1.5.8 fix on my test site as it did not have enough product views to generate a second page.
I placed the file on the OP's site and the dates do remain as selected. There are some PHP warnings of undefined items and the date selection appears to be in Chinese but dates can be selected manually and produce the desired results so this temporary workaround is useful.
I'll try to smooth things out and post a corrected file for 1.5.7# when I can.
Re: Most-Viewed Products - Reports
Re: Most-Viewed Products - Reports
I tried it in 158, it carried the dates through the pages.
Re: Most-Viewed Products - Reports
Did the drop-down turn to Chinese?
Re: Most-Viewed Products - Reports
If it helps:
on zc158 with PHP 8.0 or PHP 8.1 the start date defaults to the first day of the current year. The dates selected are carried through on all subsequent pages when using "Next" to select a page or using the drop down page number list. Either date can be selected and changed. No errors reported.
Zen Cart 158 Alpha PHP 8.1.7
Re: Most-Viewed Products - Reports
Fix:
a) copy admin/stats_products_viewed.php from 158
b) Update language file admin/includes/languages/english/stats_products_viewed.php - add these defines at the bottom:
define('TABLE_HEADING_PRODUCTS_ID', 'ID#');
define('TABLE_HEADING_PRODUCTS_NAME','Name');
Re: Most-Viewed Products - Reports
Quote:
Originally Posted by
swguy
Fix:
a) copy admin/stats_products_viewed.php from 158
b) Update language file ???/includes/languages/english/stats_products_viewed.php - add these defines at the bottom:
define('TABLE_HEADING_PRODUCTS_ID', 'ID#');
define('TABLE_HEADING_PRODUCTS_NAME','Name');
Should that not be YOUR_ADMIN?
BTW, I still get Chinese(?) in the drop-down date selector
Re: Most-Viewed Products - Reports
Yes, the language file path starts with admin.
No idea on the Chinese issue.