Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Order Total GV Not Working and Breaking in Admin

    DrBytes solution aboved fixed the problem.
    Phil Rogers
    A problem shared is a problem solved.

  2. #12
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,550
    Plugin Contributions
    70

    Default Re: Order Total GV Not Working and Breaking in Admin

    I've found the fix I proposed above is NOT safe but it does raise some questions about what is going on with the currencies class in the admin.

    Part of the problem is that the admin/includes/functions/general.php file uses the $currencies object in some of its functions, but this object is not globally declared on the admin side. It's also dangerous to require the currencies.php file in this file because currencies.php is required in many different files throughout the admin and does not check that the class is already declared (i.e. require_once is not used).

  3. #13
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,550
    Plugin Contributions
    70

    Default Re: Order Total GV Not Working and Breaking in Admin

    Quote Originally Posted by philip937 View Post
    DrBytes solution aboved fixed the problem.
    That only fixed it in one file. But functions like zen_draw_products_pull_down() require the $currencies object which is not globally declared yet is being used inside a global admin function.

  4. #14
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Order Total GV Not Working and Breaking in Admin

    Oh right we'll that's all way above my head so I'll let you talk it out with the Doc. I've not had any further issues that I've noticed since applying that fix. Though to be fair I don't even know what zen_draw_products_pull_down() does or if I use it so maybe your right...? I'll keep an eye in this thread
    Phil Rogers
    A problem shared is a problem solved.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 2
    Last Post: 8 Apr 2015, 01:23 PM
  2. v139h Shipping, order total and payment modules not activated
    By devyani in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 1 Mar 2013, 11:14 AM
  3. Orders in Admin and order email not working
    By TeeGee in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 28 Sep 2011, 05:36 PM
  4. Zencart order total does not match total at monsterpay
    By momoftwo in forum Addon Payment Modules
    Replies: 1
    Last Post: 12 Mar 2010, 02:33 PM
  5. Sub Total not matching actual total of products in order
    By PadreHomer in forum General Questions
    Replies: 0
    Last Post: 10 Sep 2008, 11: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