Jump to content

Recommended Posts

Three reports based on existing old reports just updated, expanded and modified for Phoenix .

1) JcM Detailed Monthly Sales, that’s about it…

image.thumb.png.df1d674818cb17258ebd679ad009a9c4.png

2) JcM Order Info, shows the orders with detailed info on each.

image.thumb.png.2e31905e48ba02978f1b13b803fff991.png

3) Unsold Cart, Give you a list of all abandoned carts. Allows you to see details of product and customer email so you can email them. You can select number of days to check and you can also clear the basket.

image.thumb.png.47943b0043bf21c1839f077f4e522449.png

These are a no core change add-on just copy over all the files and the new reports will just appear in the reports box in admin.
They have all been tested on Phoenix 1.0.5.2 only.

That's it Enjoy...

 

 


 

Share this post


Link to post
Share on other sites

Thank You Zahid!

I added your add-on to my admin. Everything works well.
But if you have error alerts enabled, there is 1.
This is a repetition of a language constant.
I fixed it like this:

File  admin\includes\boxes\reports_stats_unsold_carts.php

Line 16    'title' => MODULES_ADMIN_MENU_REPORTS_UNSOLD_CARTS,

Change to   'title' => ADMIN_MENU_REPORTS_UNSOLD_CARTS,

Files  admin\includes\languages\russian\modules\boxes\reports_stats_unsold_carts.php  and   admin\includes\languages\english\modules\boxes\reports_stats_unsold_carts.php

Line  13    define('MODULES_ADMIN_MENU_REPORTS_UNSOLD_CARTS', 

Change to   define('ADMIN_MENU_REPORTS_UNSOLD_CARTS', 

Everything works ok.

 


Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites

And one more wish:
If I change the number of days, for example, to 100 or 365, this does not work. No change.

183122.jpg.6600a378e688e28e3d5cc71351bb118b.jpg


Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites

Thank's Fredi silly errors on my part. Has been fixed and updated

JcM Reports V1.1-Phoenix

The box language fie is fine I simply intorused a duplaicatn by error in the yoradmin/includes/languages/english/stats_unsold_carts.php

you can simply remove the last line in the file.

//define('MODULES_ADMIN_MENU_REPORTS_UNSOLD_CARTS', 'Unsold Carts');

For you second point just a silly find and replace error when geting rid of all the PHP 7.3 notice errors.

Simply copy over the new file public_html/youradmin/stats_unsold_carts.php

Thank's for checking and reporting.


 

Share this post


Link to post
Share on other sites

Thank You Zahid.

I uze PHP v-7.3 and have error - undefined index.
I tried to slightly change the 2 lines that you adjusted and now the page does not show a warning and you can change the number of days.

 

  if (isset($_POST['tdate']) == '')   $tdate = ($_GET['tdate']);
  if (($_GET['tdate']) =='')   $tdate = UNSOLD_DAYS;

to

  if (!isset($_POST['tdate']) == '')   $tdate = ($_GET['tdate']);
  if (!empty($_GET['tdate']) =='')   $tdate = UNSOLD_DAYS;

 


Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites

😊 I throw in the towel on this one, Your changes will not work on my 1.0.5.2 site running PHP7.3  go figure! The undefined index  is just a notice so I'm not going to spend any more time on it for now.

If it works for you then cool.


 

Share this post


Link to post
Share on other sites

I try this on 1.0.5.3
The warning has disappeared. :wink:
I was looking for how to fix this on different sites on the Internet.
Zahid, there’s no point in messing around with this. Do you have a lot of work. You add new ones and upgrade old add-ons and it’s very good. Thanks so much for your work!
I will test and inform you if there are problems.


Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites
Posted (edited)

Hi Zahid, just installed this addon on,very handy to have all these 3  items!

I am however getting this error for detailed monthly sales. The other 2 work fine.

 

Any tips or suggestions would be great!

monthly sales.PNG

Edited by nedragdnuos

Share this post


Link to post
Share on other sites

Well from what you posted looks like you have a bad install...

This...                             0){?>

is raw php and should not be beeing outputted!

As it's admin side nothing i can do to help you debug this. Check your error logs and unistall  remove all files and then do a fresh install.

The problem we have is that from one version of Phoenix to the next things are changing and it's not posiable to check add-ons for every release of phoenix.

These reports were issued as tested on Phoinex 1.0.5.2 only. I can now confirm they work on Phoenix 1.0.5.3 also. On other versions? no tested but should work if installed correctly.

image.thumb.png.76897f687bec31b77d7b8556af796f74.png


 

Share this post


Link to post
Share on other sites

Check in your browser what you see at the bottom when you hover your mouse over the month to show link. You should see a valid year and month. If not then you have some issue with your date format which is messing up the links.

image.png.7ec40c870468a3f9570cfb9e47e7ab09.png


 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×