Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Total sales?


Guest

Recommended Posts

I am looking for a total sales mod, or even a monthly sales mod to add to my admin page. I have tried to install sales_report_v1.3 but cannot seem to get it to work. For someone fluent in php, it will probably be a piece of cake. If anyone could help, I would greatly appreciate it. Thanks.

Link to comment
Share on other sites

I am looking for a total sales mod, or even a monthly sales mod to add to my admin page. I have tried to install sales_report_v1.3 but cannot seem to get it to work. For someone fluent in php, it will probably be a piece of cake. If anyone could help, I would greatly appreciate it. Thanks.

 

Were are you having trouble? That particular contribution is fairly straight forward and if I recall correctly other than the Reports infobox does not require editing PHP. Give some more specific information and I'm sure someone will be able to help you out.

 

Be well,

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Link to comment
Share on other sites

I don't know where I went wrong. I uploaded the files into the correct folders, and edited the files it told me to edit. However, when I log in to my admin panel, there is nothing new under the reports tab. It is about the most straightforward mod I have ever installed, and it seems like this one is getting the best of me.

Link to comment
Share on other sites

I don't know where I went wrong. I uploaded the files into the correct folders, and edited the files it told me to edit. However, when I log in to my admin panel, there is nothing new under the reports tab. It is about the most straightforward mod I have ever installed, and it seems like this one is getting the best of me.

 

Did you add the required code to your admin/includes/boxes file? If so post the code and perhaps we can see where you went wrong.

 

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Link to comment
Share on other sites

Here is the code from my reports.php

<?php
/*
 $Id: reports.php,v 1.5 2003/07/09 01:18:53 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- reports //-->
	  <tr>
		<td>
<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_REPORTS,
				 'link'  => tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'selected_box=reports'));

 if ($selected_box == 'reports') {
$contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_VIEWED . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_PURCHASED . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_STATS_SALES_REPORT, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_SALES_REPORT . '</a>');
 }

 $box = new box;
 echo $box->menuBox($heading, $contents);
?>
		</td>
	  </tr>
<!-- reports_eof //-->

 

I have gotten it inserted into the box for the admin panel, however, when it is clicked on, it now gives me a 404 error saying "The requested URL /admin/FILENAME_STATS_SALES_REPORT was not found on this server."

Link to comment
Share on other sites

Here is the code from my reports.php

<?php
/*
 $Id: reports.php,v 1.5 2003/07/09 01:18:53 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- reports //-->
	  <tr>
		<td>
<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_REPORTS,
				 'link'  => tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'selected_box=reports'));

 if ($selected_box == 'reports') {
$contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_VIEWED . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_PURCHASED . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_STATS_SALES_REPORT, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_SALES_REPORT . '</a>');
 }

 $box = new box;
 echo $box->menuBox($heading, $contents);
?>
		</td>
	  </tr>
<!-- reports_eof //-->

 

I have gotten it inserted into the box for the admin panel, however, when it is clicked on, it now gives me a 404 error saying "The requested URL /admin/FILENAME_STATS_SALES_REPORT was not found on this server."

 

You are receiving that error because the system is looking inside your filenames.php file and it does not find a definition for FILENAME_STATS_SALES_REPORT. Make sure you have all the plumbing all hooked up and you should be set.

 

Be well,

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...