Country sales report with 2.2.1

Sure :) 

I tried testing it on 2.2.1 in case we wanted to upgrade in the future, but unfortunately it doesn't work there, shows the following error:

Notice: Undefined variable: total in ~/admin/reports.app/country_sales.inc.php (Line 115)

Any chance this will be updated, or included in the future versions by default? It's very useful and necesarry if the store ships to other countries than just their own.

Thanks a lot for your time! :)

tim

I uploaded a newer version I had collecting dust.
See if that one works better?

Hey Tim,

sorry for the late reply.

Tested it and works fine in 2.2.1! Thanks a lot!

Hey!

Really sorry to bother again, but I tried it again on the same 2.2.1 installation after some time, while I didn't do any changes to the addon, it's now showing this type of error in every column:

Notice: Undefined index: total_subtotal in ~/admin/reports.app/country_sales.inc.php (Line 128)
Notice: Undefined index: total_shipping_fees in ~/admin/reports.app/country_sales.inc.php (Line 129)
Notice: Undefined index: total_payment_fees in ~/admin/reports.app/country_sales.inc.php (Line 130)

etc etc..

Would you know a way to fix this? Both the country_sales.inc.php and vqmod is installed properly.

Okay, so after some time I tried making an order first, and after that the country sales work without any problems again (before there were no orders placed).

So it seems it just shows these errors instead of showing something like "There are no sales yet". 

Anyway, problem solved!!

tim

I refreshed the download so that it should not produce a Notice if there are no sales.

Awesome! Works like a charm. Thanks a lot.

Bekijk de code op GitHub