Results 1 to 10 of 245

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Looks like the admin/includes/functions/extra_functions/stats_monthly_sales.php is the culprit.

    It checks to see if the stats_monthly_sales page key exists and adds the extra report menu item. It apparently does not check to see if the specific menu item (FILENAME_STATS_MONTHLY_SALES) already exists. Thus your second menu item is registered in the admin_pages table of the database.

    You can use the phpMyAdmin to search the table for FILENAME_STATS_MONTHLY_SALES and delete one of the entries. That should fix it.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  2. #2
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Quote Originally Posted by dbltoe View Post
    Looks like the admin/includes/functions/extra_functions/stats_monthly_sales.php is the culprit.

    It checks to see if the stats_monthly_sales page key exists and adds the extra report menu item. It apparently does not check to see if the specific menu item (FILENAME_STATS_MONTHLY_SALES) already exists. Thus your second menu item is registered in the admin_pages table of the database.

    You can use the phpMyAdmin to search the table for FILENAME_STATS_MONTHLY_SALES and delete one of the entries. That should fix it.
    Thank you for the suggestion.

    I have the dilemma which line to delete, top or bottom?

    Click image for larger version. 

Name:	monthly report table.jpg 
Views:	79 
Size:	30.0 KB 
ID:	18034

    Why, do you think, the file stats_monthly_sales.php was not copied to admin/includes/functions/extra_functions/ in first place?

    All other files were. Is it permission issue?

    Should I copy it manually now?

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Looks like a bigger question as they both should be sort 17 if it was actually a duplicate. Instead, it looks like you have another program (mod) loaded that uses the same menu name.

    Never said the file was not copied. I thought the file had created a duplicate entry. Now I see you have two mods loaded.

    No files need to be copied.

    As to a fix....

    Do both the menu items show a result?

    When you click on the entries in the menu, is either result correct, is either incorrect, are both incorrect, or are both correct outputs?


    Using the Developer's Tool Kit, search for the define of FILENAME_STATS_MONTHLY_SALES. There should be two. Post the names of the two files with the define.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  4. #4
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Quote Originally Posted by dbltoe View Post
    Looks like a bigger question as they both should be sort 17 if it was actually a duplicate. Instead, it looks like you have another program (mod) loaded that uses the same menu name.

    Never said the file was not copied. I thought the file had created a duplicate entry. Now I see you have two mods loaded.

    No files need to be copied.

    As to a fix....

    Do both the menu items show a result?

    When you click on the entries in the menu, is either result correct, is either incorrect, are both incorrect, or are both correct outputs?


    Using the Developer's Tool Kit, search for the define of FILENAME_STATS_MONTHLY_SALES. There should be two. Post the names of the two files with the define.
    Do both the menu items show a result? -> YES

    When you click on the entries in the menu, is either result correct -> YES

    is either incorrect -> NO

    are both incorrect -> NO

    or are both correct outputs? -> YES

    Search for define('FILENAME_STATS_MONTHLY_SALES' returns one file:

    admin/includes/languages/english/extra_definitions/stats_monthly_sales.php

    Search for FILENAME_STATS_MONTHLY_SALES adds second file:


    admin/stats_monthly_sales.php

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Both admin files are correct. One is the define of the variable and the other places the variable on the report page. HOWEVER>> If you searched for FILENAME_STATS_MONTHLY_SALES, you should have come up with 6 times it shows up. Only one of those should have been the define in admin/includes/languages/english/extra_definitions/stats_monthly_sales.php (which you said you found).

    Your response makes me ask if you saw the other five places the variable is used in the mod.

    And, the one question I left out before was:

    Do the two menu entries bring up the same page? IOW, does it make no difference which item you click on? Or, does one bring up different information than the other.

    If they both bring up the same page, you probably have a holdover from an earlier mod. And that brings us back to the five times the variable should have shown up without the define.

    If --
    1. Both menu items bring up the same data AND
    2. You have five variable locations and 1 define when searching with Developers Tool

    Then, I'd delete the item in the table that has the sort_order of 1000.

    If they don't bring up the same data, we'll need to look further.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  6. #6
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Quote Originally Posted by dbltoe View Post
    Both admin files are correct. One is the define of the variable and the other places the variable on the report page. HOWEVER>> If you searched for FILENAME_STATS_MONTHLY_SALES, you should have come up with 6 times it shows up. Only one of those should have been the define in admin/includes/languages/english/extra_definitions/stats_monthly_sales.php (which you said you found).

    Your response makes me ask if you saw the other five places the variable is used in the mod.

    And, the one question I left out before was:

    Do the two menu entries bring up the same page? IOW, does it make no difference which item you click on? Or, does one bring up different information than the other.

    If they both bring up the same page, you probably have a holdover from an earlier mod. And that brings us back to the five times the variable should have shown up without the define.

    If --
    1. Both menu items bring up the same data AND
    2. You have five variable locations and 1 define when searching with Developers Tool

    Then, I'd delete the item in the table that has the sort_order of 1000.

    If they don't bring up the same data, we'll need to look further.
    Thank you for looking at this.

    Back to beginning.
    When I scan (search) on my hard drive for key word stats_monthly_sales original installation folder of module (after download) I get this result:

    1. /YOUR_ADMIN/includes/languages/english/extra_definitions/stats_monthly_sales.php

    2. /YOUR_ADMIN/includes/languages/english/stats_monthly_sales.php

    3. /YOUR_ADMIN/includes/functions/extra_functions/stats_monthly_sales.php

    4. /YOUR_ADMIN/includes/boxes/extra_boxes/stats_monthly_sales_reports_dhtml.php

    5. /YOUR_ADMIN/stats_monthly_sales.php

    There are 5 files found.

    After I FTP files to Zen Cart admin folder and make search in Zen Cart:

    Click image for larger version. 

Name:	monthly report search 2.JPG 
Views:	55 
Size:	16.9 KB 
ID:	18035

    I get this result:

    Click image for larger version. 

Name:	monthly report result.jpg 
Views:	60 
Size:	68.7 KB 
ID:	18036

    One file is missing: /YOUR_ADMIN/includes/functions/extra_functions/stats_monthly_sales.php

    Zen Car does not see file in extra_functions folder (?)

    If I search as you advise for FILENAME_STATS_MONTHLY_SALES

    Click image for larger version. 

Name:	monthly report search.JPG 
Views:	65 
Size:	17.2 KB 
ID:	18037

    The result is:

    Click image for larger version. 

Name:	monthly report result 2.jpg 
Views:	63 
Size:	53.1 KB 
ID:	18038

    Now 2 files are missing in /english/ and /extra_functions/ folders

    I do not see any different permission on these folders compare to others.

    Both menus when clicked return absolutely the same result.

    I am afraid to delete the line 1000 due to my illiteracy.
    But 2 menus, if there is no harm to other areas, will not stop me sleeping at night.

    If there is no damage, may be we should stay as is (?)

    I experimented a little and methodically deleted all files which came with this module.
    Both menus disappeared.
    After uploading all files again they appeared again.

    Thank you.

  7. #7
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    I made search also using C-Panel file manager:

    Click image for larger version. 

Name:	cpanel search 1.JPG 
Views:	36 
Size:	15.4 KB 
ID:	18039

    All 5 files are found:

    Click image for larger version. 

Name:	cpanel search 2.JPG 
Views:	48 
Size:	40.7 KB 
ID:	18040

    So, looks like Zen Cart does not see some files.

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Monthly Sales and Tax Summary Report [support thread]

    Quote Originally Posted by idtags View Post
    I experimented a little and methodically deleted all files which came with this module.
    Both menus disappeared.
    After uploading all files again they appeared again.
    This happens because the leftover MonthlyStats has no define without the files, AND nothing to fire a debug file because no file is asking to use the variable. When the files are loaded back, the define defines that variable. The other files fulfill the NEED by asking for the variable.

    Thus, the both come and go result when files are removed.

    Back up the database just cause you should anytime you touch it.

    Delete the line in the table that has MonthlyStats for the page_key and 1000 for the sort_order.

    Load all mod files (if not already there).

    That should do it.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

Similar Threads

  1. Local Sales Tax Mod - Support Thread
    By LadyHLG in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 658
    Last Post: 22 Dec 2025, 05:29 PM
  2. v151 codeTrio Sales Summary Graph v1.0 [Support Thread]
    By imranulh in forum All Other Contributions/Addons
    Replies: 15
    Last Post: 25 Jul 2020, 04:00 AM
  3. v151 Sales Report with Graphs support thread
    By JacobBushnell in forum Addon Admin Tools
    Replies: 17
    Last Post: 25 Jul 2019, 02:27 PM
  4. Monthly Sales Report
    By Bruce1952 in forum General Questions
    Replies: 3
    Last Post: 10 Aug 2010, 01:06 PM
  5. Sales Tax Summary Report
    By fred_artemis in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 25 Mar 2008, 02:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg