Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Location
    Dhaka, Bangladesh
    Posts
    21
    Plugin Contributions
    2

    Default Re: codeTrio Sales Summary Graph v1.0 Support Thread

    Hi Sharon,

    I have updated the add-on and submitted version 1.03.

    It should fix the warning you got. I think you did not have any order in the selected time frame.

    Thanks
    Imranul Hoque
    Director @ codeTrio
    www.imranulhoque.com

  2. #2
    Join Date
    Jul 2006
    Location
    Johannesburg
    Posts
    447
    Plugin Contributions
    1

    Default Re: codeTrio Sales Summary Graph v1.0 Support Thread

    Hi,

    I just installed this plugin on ZC 1.5.3 and everything seemed to work well. Then I decided to select a status for filtering and the following errors were logged:

    PHP Warning: mysql_real_escape_string(): Access denied for user 'xxxxxx' (using password: NO) in /home/xxxxxx/public_html/xxxxxx/xxxxxx/ct_sales_summary.php on line 43
    PHP Warning: mysql_real_escape_string(): A link to the server could not be established in /home/xxxxxx/public_html/xxxxxx/xxxxxx/ct_sales_summary.php on line 43
    Everything else does work and I can change the date range without any issue. The graph is displaying data and when you hover your cursor it provides you with the total amount and total orders for the day.

    It is just the status filter that causes an error. Any ideas?

  3. #3
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: codeTrio Sales Summary Graph v1.0 Support Thread

    Quote Originally Posted by Louis View Post
    Hi,

    I just installed this plugin on ZC 1.5.3 and everything seemed to work well. Then I decided to select a status for filtering and the following errors were logged:



    Everything else does work and I can change the date range without any issue. The graph is displaying data and when you hover your cursor it provides you with the total amount and total orders for the day.

    It is just the status filter that causes an error. Any ideas?
    You should change line 43 of YOUR_ADMIN/ct_sales_summary.php
    from:
    PHP Code:
       $status_query = empty($ordst) ? '' ' and o.orders_status in (' mysql_real_escape_string($ordst) . ')'
    to:
    PHP Code:
       $status_query = empty($ordst) ? '' ' and o.orders_status in (' zen_db_prepare_input($ordst) . ')'

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: codeTrio Sales Summary Graph v1.0 Support Thread

    Zen Cart v1.5.3 uses the mysqli_ interface instead of the (deprecated in PHP 5.5.x) mysql_ functions.

    The plugin that you installed is making direct mysql_* function calls instead of using the Zen Cart $db object (which makes the mysql -> mysqli transition "transparent" to the calling code).

  5. #5
    Join Date
    Jul 2006
    Location
    Johannesburg
    Posts
    447
    Plugin Contributions
    1

    Default Re: codeTrio Sales Summary Graph v1.0 Support Thread

    Hi guys,

    Thank you very much for your assistance. The graph is now fully functional in ZC 1.5.3

    Thank you also for the explanation. It assisted me in resolving an issue I had with another unrelated plugin.

  6. #6
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: codeTrio Sales Summary Graph v1.0 Support Thread

    Thanks for this plugin, it is very useful! It's working great for Super Admin, but I'm unable to get it working for an Editor profile. I've tried enabling all of the checkboxes for that account, and it still doesn't work. The graph only appears when I switch that user the SuperAdmin. Any ideas? Thanks for your help!

  7. #7
    Join Date
    Mar 2005
    Posts
    561
    Plugin Contributions
    4

    Default Re: codeTrio Sales Summary Graph v1.0 Support Thread

    Anyone still using this?
    It seems that the display of the graph needs updating and it's causing errors.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: codeTrio Sales Summary Graph v1.0 Support Thread

    Quote Originally Posted by Reesy View Post
    Anyone still using this?
    It seems that the display of the graph needs updating and it's causing errors.
    Google retired the jsapi that it was leveraging to display graphs.

    If you're using 1.03 of the module, then in the graphs file:
    Code:
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">
    //<=!=[=C=D=A=T=A=[
        google.load("jquery", "1");
    //]=]=>
    </script>
    must be replaced with
    Code:
    <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
    <script src="https://www.gstatic.com/charts/loader.js"></script>
    and
    Code:
     google.load('visualization', '1');
     google.setOnLoadCallback(drawVisualization);
    must be replaced with
    Code:
     google.charts.load('current', {packages: ['corechart']});
     google.charts.setOnLoadCallback(drawVisualization);
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

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. Monthly Sales and Tax Summary Report [support thread]
    By skipwater in forum Addon Admin Tools
    Replies: 244
    Last Post: 4 Jul 2025, 03:16 PM
  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. v151 Codetrio Sphinx Search Version 1.0 Support Thread
    By imranulh in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 16 Jul 2014, 01:24 AM
  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