Zen Cart Logo

Group Pricing (Per Item)

Locked

Views: 3,907

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
21 Mar 2007, 20:44
#1
tcarter avatar

tcarter

New Zenner

Join Date:
Mar 2007
Posts:
18
Plugin Contributions:
0

Group Pricing (Per Item)

I know theres another post regarding this.

The Group Pricing Mod for 1.3.7 has a bug, and I was curious if anyones fixed this.

Im using the 1.2.1a version.

On the actual page, it shows up as normal retail price....ONLY when you add the item to your shopping cart is when the new price is updated.

I was curious if anyones fixed the bug so the new prices will reflect on the actual product page.

Thanks in advance!

08 May 2007, 09:42
#2
pensive612 avatar

pensive612

Zen Follower

Join Date:
May 2006
Posts:
313
Plugin Contributions:
0

Re: Group Pricing (Per Item)

I am having the same problem. I used the shopping_cart.php fix for the subtotal page. But it is still showing up on the Product Page as the regular price...

anyone know what to do?

07 Jun 2007, 21:33
#3
seccon avatar

seccon

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: Group Pricing (Per Item)

Has anyone seen this fix for this yet? My Group A and B works fine (correct price is displayed) but C and D do not(normal price is displayed).

07 Jun 2007, 22:30
#4
seccon avatar

seccon

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: Group Pricing (Per Item)

Here is the fix:

Find line 131 in /includes/functions/functions_prices.php which looks like this:

// is there a products_price to add to attributes
      if($customers_group) {
        if($customers_group == "Group A" && $product_check->fields['products_group_a_price'] != 0) {
          $products_price = $product_check->fields['products_group_a_price'];
        } elseif($customers_group == "Group B" && $product_check->fields['products_group_b_price'] != 0) {
          $products_price = $product_check->fields['products_group_b_price'];
        } elseif($customers_group == "Group C" && $product_check->fields['zen_products_group_c_price'] != 0) {
          $products_price = $product_check->fields['products_group_c_price'];
        } elseif($customers_group == "Group D" && $product_check->fields['zen_products_group_d_price'] != 0) {
          $products_price = $product_check->fields['products_group_d_price'];

As you can see the sql select for group c and d have 'zen_' already in the code thus the select statement is zen_zen_products_group_d_price when it should be zen_products_group_d_price assuming your table prefix is zen_ .. the fix is:

// is there a products_price to add to attributes
      if($customers_group) {
        if($customers_group == "Group A" && $product_check->fields['products_group_a_price'] != 0) {
          $products_price = $product_check->fields['products_group_a_price'];
        } elseif($customers_group == "Group B" && $product_check->fields['products_group_b_price'] != 0) {
          $products_price = $product_check->fields['products_group_b_price'];
        } elseif($customers_group == "Group C" && $product_check->fields['products_group_c_price'] != 0) {
          $products_price = $product_check->fields['products_group_c_price'];
        } elseif($customers_group == "Group D" && $product_check->fields['products_group_d_price'] != 0) {
          $products_price = $product_check->fields['products_group_d_price'];
15 Jun 2007, 08:00
#5
john95051 avatar

john95051

New Zenner

Join Date:
Jun 2005
Posts:
34
Plugin Contributions:
0

Re: Group Pricing (Per Item)

This does not work for me. I am still see same price cross the groups after login. But when I add the items in the cart, it stay the same number. Only on checkout confirmation page, the discounted amount shows. It seems my issue are diff than you guys.

Any clue? I am on 1.3.7 version with few MODs on.

01 Jul 2007, 01:12
#7
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Group Pricing (Per Item)

That worked for me! Thanks!

I was having that problem with group c and d not getting the correct pricing. it was because of the "zen_" in my functions_prices.php

I opted to not go with the "zen_" in my db.

02 Jul 2007, 13:26
#8
seccon avatar

seccon

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: Group Pricing (Per Item)

Just to make sure i was clear the fix above works no matter your table prefix (or lake there of).