Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Mar 2005
    Posts
    555
    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.

  2. #12
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    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.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

    I wrapped the query fixes and the charting api fixes into a new 1.04 release, which has been submitted to the plugins area.
    Unfortunately I don't have a codetrio account with which to test the changes, so apologies if it contains other errors!

    For Zen Cart versions other than 1.5.1-to-1.5.4 for installing this to new sites you'll have to manually apply the "index.php" changes to the index_dashboard.php file.
    .

    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.

  4. #14
    Join Date
    Mar 2005
    Posts
    555
    Plugin Contributions
    4

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

    Thanks for your help DrByte
    No Code Trio account is needed for this, they are just the developers of it I believe.
    2 errors still being thrown up

    Code:
    Uncaught ReferenceError: $ is not defined
    and an onclick error

    Code:
    Uncaught ReferenceError: $ is not defined
        at setGraphSource (index.php:405)
        at HTMLInputElement.onclick (index.php:337)
    My humble contributions....
    Info at a Glance Admin, Alternative Header & Improved Whos Online + Currently working on the next!
    If you have to think..... your obviously looking at the admin :)

  5. #15
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

    Hmm.
    I forgot that older Zen Cart versions don't automatically load jQuery. I updated my earlier post to include that.

    I also found that sometimes the HTML div id of "graph" that this uses may clash with other graphs already on the page. So I've changed it to "ctgraph" in the two places it is needed.
    I also found some function calls to an old PHP function "split" that I've updated to "preg_split".

    These changes are now in 1.05 which is now in the plugins area.
    .

    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.

  6. #16
    Join Date
    Mar 2005
    Posts
    555
    Plugin Contributions
    4

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

    Thats fixed it, thank you!
    My humble contributions....
    Info at a Glance Admin, Alternative Header & Improved Whos Online + Currently working on the next!
    If you have to think..... your obviously looking at the admin :)

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Local Sales Tax Mod - Support Thread
    By LadyHLG in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 634
    Last Post: 8 Dec 2023, 06:59 PM
  2. Monthly Sales and Tax Summary Report [support thread]
    By skipwater in forum Addon Admin Tools
    Replies: 236
    Last Post: 1 Sep 2023, 03:51 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. 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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR