Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    4
    Plugin Contributions
    0

    Default 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).

  2. #2
    Join Date
    Jun 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Group Pricing (Per Item)

    Here is the fix:

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

    Code:
    // 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:

    Code:
    // 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'];

  3. #3
    Join Date
    Jun 2005
    Posts
    35
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Jun 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Group Pricing (Per Item)

    You may want to review this thread - I needed it for my system to work correctly:

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

  5. #5

    Default 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.

  6. #6
    Join Date
    Jun 2007
    Posts
    4
    Plugin Contributions
    0

    Default 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).

 

 

Similar Threads

  1. Group Pricing per Item w/ v1.3.9
    By noodle in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Apr 2012, 02:48 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. How to make an item Free in Group Pricing (Per Item)?
    By lyricwings in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 1 Sep 2008, 09:41 PM
  4. Group pricing per item
    By luomu in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 10 Feb 2007, 08:45 PM

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