Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2005
    Posts
    57
    Plugin Contributions
    0

    Default Online Group Pricing

    I installed the online group pricing contribution and everything is working flawlessly except for the admin who's online. It shows everything except for when someone has something in their cart, when they add to cart this is the error I get in who's online.
    Call to undefined function: zen_display_group_pricing() in /home/tbrown/public_html/catalog/includes/classes/shopping_cart.php on line 1048
    And here's what's on line 1048 in shopping_cart.php.
    Code:
    $products_price = zen_display_group_pricing($products->fields['products_price']);
    TIA for any help.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Online Group Pricing

    I cannot reproduce this error ...

    What is the customer doing or where are they when you are looking at them in the Who's Online that you are seeing this error?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Dec 2005
    Posts
    57
    Plugin Contributions
    0

    Default Re: Online Group Pricing

    The error shows no matter where they are, if they have something in the cart, the error shows up.


  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Online Group Pricing

    Evidently the mod hasn't been written to accomodate use from the admin side.

    It might be prudent to rewrite that line like this:
    Code:
      $products_price = (IS_ADMIN_FLAG === true)  ? zen_display_group_pricing($products->fields['products_price']) : $products->fields['products_price'];
    .

    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.

  5. #5
    Join Date
    Dec 2005
    Posts
    57
    Plugin Contributions
    0

    Default Re: Online Group Pricing

    I replaced the line with the above and got this error.

    Parse error: syntax error, unexpected T_STRING in /home/tbrown/public_html/catalog/includes/classes/shopping_cart.php on line 1048

  6. #6
    Join Date
    Dec 2006
    Posts
    18
    Plugin Contributions
    0

    Default Re: Online Group Pricing

    Quote Originally Posted by flightoffancy View Post
    I replaced the line with the above and got this error.
    I fixed it by doing this:

    Change lines 615 and 616 to this
    Code:
            $products_price = $product->fields['products_price'];
            //$products_price = zen_display_group_pricing($product->fields['products_price'],1);
    And lines 1047 to 1055 to this:
    Code:
            $products_price = $products->fields['products_price'];
           // $products_price = zen_display_group_pricing($products->fields['products_price']);
            //fix here
    
            $special_price = zen_get_products_special_price($prid);
            if ($special_price) {
            $products_price = $special_price;
            }
    Now if I could just figure out why adding a special is giving me my errors

    http://www.zen-cart.com/forum/showthread.php?t=55346

  7. #7
    Join Date
    Dec 2006
    Posts
    18
    Plugin Contributions
    0

    Default Re: Online Group Pricing

    Scratch my fix, it doesnt work. Sorry

  8. #8
    Join Date
    Oct 2005
    Posts
    27
    Plugin Contributions
    0

    Default Re: Online Group Pricing

    I have the same error. I tried to change line 1048 with the line of DrByte but it doesn't work.

    Can someone help us?

    Thank you

  9. #9
    Join Date
    Oct 2005
    Posts
    27
    Plugin Contributions
    0

    Default Re: Online Group Pricing

    I receive this error when I go in Whos online page and click on green icon for see the cart of the customer.

    Someone can help us to understand where is the error?

    Thank you

 

 

Similar Threads

  1. Online Group Pricing
    By darrell in forum All Other Contributions/Addons
    Replies: 122
    Last Post: 20 May 2015, 07:24 PM
  2. online group pricing vs group pricing per item working with sale maker
    By giftsandwhatnot in forum Addon Payment Modules
    Replies: 1
    Last Post: 24 Oct 2011, 09:22 AM
  3. Online Group Pricing
    By high2K in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 25 Oct 2007, 12:12 PM
  4. Who is online...side admin vs online group pricing mod
    By csfound in forum General Questions
    Replies: 8
    Last Post: 18 Jul 2007, 04:27 AM

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