Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Monthly Sales Report v2.3 not working


  • You cannot reply to this topic
1 reply to this topic

#1 HedgewitchCrafts

  • Community Member
  • 8 posts
  • Real Name:Steve Mekkelsen Madden
  • Gender:Male
  • Location:Lenoir, NC United States

Posted 07 February 2012, 01:17

Hi,

I just installed the 1/26/2012 version of the Monthly Sales report and while I can see the link in my Report Box area, clicking on the link results in:

Fatal error: Cannot redeclare mirror_out() (previously declared in /path_to_admin_folder/stats_monthly_sales.php:624) in /path_to_admin_folder/includes/functions/general.php on line 1345

contributed by Nick Getzendanner <nick@getzwebhosting.com>

Has anyone else installed this yet and possibly have a solution to get this working? The reference to the general.php file was never updated for this, so not clear why it mentions it.

I've attached the installation instructions. The difference in what I did compared to the instructions is how step 4 was done. Mine is different, but I believe it should work the same.
if ($selected_box == 'reports') {
$contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_VIEWED . '</a>
' .
'<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_PURCHASED . '</a>
' .
'<a href="' . tep_href_link(FILENAME_ALL_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ALL_CUSTOMERS . '</a>
' .
'<a href="' . tep_href_link(FILENAME_STATS_MONTHLY_SALES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_MONTHLY_SALES . '</a>
' .
'<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a>
'
);
}

Thanks!
Steve</nick@getzwebhosting.com>

Attached Files


Edited by Jan Zonjee, 07 February 2012, 16:01.


#2 nickgetzen

  • Community Member
  • 3 posts
  • Real Name:Nick Getzendanner

Posted 07 February 2012, 20:22

I have discovered that the issue is that Steve is attemping to use this add on (which was redeveloped for version 2.3) on a version 2.2 store.

the correct version of monthly sales reports add on for OSC version 2.2 is
http://addons.oscommerce.com/info/5961/v,22

Thanks,

Nick