Forums / All Other Contributions/Addons / Online Group Pricing

Online Group Pricing

Locked

Views: 3,620

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
6 Dec 2006, 5:17 AM
#1
flightoffancy avatar

flightoffancy

New Zenner

Join Date:
Dec 2005
Posts:
56
Plugin Contributions:
0

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.

$products_price = zen_display_group_pricing($products->fields['products_price']);

TIA for any help.

6 Dec 2006, 2:14 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
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!

6 Dec 2006, 6:59 PM
#3
flightoffancy avatar

flightoffancy

New Zenner

Join Date:
Dec 2005
Posts:
56
Plugin Contributions:
0

Re: Online Group Pricing

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

6 Dec 2006, 8:17 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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:```
$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.

7 Dec 2006, 3:41 AM
#5
flightoffancy avatar

flightoffancy

New Zenner

Join Date:
Dec 2005
Posts:
56
Plugin Contributions:
0

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

9 Jan 2007, 5:31 AM
#6
jrhame avatar

jrhame

New Zenner

Join Date:
Dec 2006
Posts:
18
Plugin Contributions:
0

Re: Online Group Pricing

flightoffancy:

I replaced the line with the above and got this error.
I fixed it by doing this:

Change lines 615 and 616 to this

        $products_price = $product->fields['products_price'];
        //$products_price = zen_display_group_pricing($product->fields['products_price'],1);
```And lines 1047 to 1055 to this:
    $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 :down: 

<http://www.zen-cart.com/forum/showthread.php?t=55346>
9 Jan 2007, 5:47 AM
#7
jrhame avatar

jrhame

New Zenner

Join Date:
Dec 2006
Posts:
18
Plugin Contributions:
0

Re: Online Group Pricing

Scratch my fix, it doesnt work. Sorry

21 Jul 2007, 8:58 PM
#8
csfound avatar

csfound

New Zenner

Join Date:
Oct 2005
Posts:
23
Plugin Contributions:
0

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

27 Jul 2007, 8:21 PM
#9
csfound avatar

csfound

New Zenner

Join Date:
Oct 2005
Posts:
23
Plugin Contributions:
0

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