Results 1 to 10 of 123

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Posts
    4
    Plugin Contributions
    0

    cart error Online Group Pricing

    I am trying to get the mod Online Group Pricing to work on the latest and greatest version of Zen Cart and I am having a problem. It is applying the group discount twice - once during product browsing and once during checkout.

    I have tried just installing it, carefully patching the mod with the latest Zen Cart files, and running it all back at the 1.3.0 version for which the mod was designed. The mod works fine back at version 1.3.0, but no matter what I try, on the newest Zen version it applies the discount twice.

    Unfortunately my customers, like most people, except to see their discounted price while browsing instead of just at the checkout. So, help getting this figured out would be greatly appreciated.

    Attached is my patched version of the mod.

    Thanks all!
    Attached Files Attached Files

  2. #2
    Join Date
    May 2007
    Location
    Port Charlotte, FL
    Posts
    125
    Plugin Contributions
    0

    Default Re: Online Group Pricing

    I am running the latest version of zencart on two sites and would VERY much like to install this feature. I will watch this thread but if you find a solution, would you be kind enough to let me know the fix? I have contacted my web person, and have asked him to see if he can find a solution. If he does I will let you know.

    Harold
    H. Light
    Florida

  3. #3
    Join Date
    Feb 2005
    Posts
    4
    Plugin Contributions
    0

    Default Re: Online Group Pricing

    I figured it out. Actually, a really easy fix - just hard to find.

    I have been planning on get a fix posted, but have been just too busy. The mod contains zen files that have since been updated and I need to seperate the mod from the old zen files and then apply the mod to the newest zen files. (I hope that made sense.)

    I will try to get it 'packaged up' this weekend. Send me a private message with your email - I would like some one else to test it before I post it.

    Thanks
    Last edited by darrell; 19 Jan 2008 at 04:02 AM.

  4. #4
    Join Date
    Feb 2005
    Posts
    4
    Plugin Contributions
    0

    Default Re: Online Group Pricing

    Here is my fix to it. Hope it works for you. My change is in the ot_group_pricing.php file.

    Darrell
    Attached Files Attached Files

  5. #5
    Join Date
    Sep 2007
    Location
    Melbourne Australia
    Posts
    60
    Plugin Contributions
    0

    Default Re: Online Group Pricing

    Hi Darrell,

    Your upgraded version of OGP works perfectly.

    I installed on a new 1.3.8a install with a heap of other mods installed and not even a whisper of a problem

    I think this is safe to stick up as a new version in the downloads section.

    Well done!!

  6. #6
    Join Date
    Feb 2005
    Location
    Italy
    Posts
    199
    Plugin Contributions
    0

    Default Re: Online Group Pricing

    I found a bug in this contrib.

    There's a problem with rounded prices (maybe only when product price has more than 2 decimals and only for certain values).

    Example:

    I had a product with base price 1.033 and a discount group ( well, not discount, the opposite) with 10% (so -10%, expecting the price to be raised by 10%)

    So 110% of 1.033 is 1.1363, that rounded by 2 decimals should be 1.14

    Everywhere in Zen Cart it results 1.14, but not in shopping cart, product info and so on (obviously after having installed this contrib) where it results 1.13 (you could say, wow a cent... yes in effect it is not really a matter of loosing money or something, but the client who look at this, doesn't understand, expecially if he is buyng 300 products (why 3 dollars / euro difference between product total and subtotal?).

    So I looked at the function_prices.php file, into the function zen_get_products_display_price that has been modified by this contrib and found this code:

    $display_normal_price = round(zen_get_products_base_price($products_id),2);
    $display_special_price = round(zen_get_products_special_price($products_id, true) * $products_qty,2);
    $display_sale_price = round(zen_get_products_special_price($products_id, false) * $products_qty,2);
    //OGP end
    $show_sale_discount = '';
    // echo " -- " . $display_normal_price . " --";
    //OGP start
    $display_normal_price = round(zen_display_group_pricing($display_normal_price,$products_qty),2);


    look at first and last lines, we have 2 rounding, so I simply removed the round form the first line and now my prices are correct.

    Byez
    Paolo De Dionigi
    Co-maintainer of Zen Cart Italia

  7. #7
    Join Date
    May 2007
    Location
    Port Charlotte, FL
    Posts
    125
    Plugin Contributions
    0

    Default Re: Online Group Pricing

    Quote Originally Posted by darrell View Post
    I am trying to get the mod Online Group Pricing to work on the latest and greatest version of Zen Cart and I am having a problem. It is applying the group discount twice - once during product browsing and once during checkout.

    I have tried just installing it, carefully patching the mod with the latest Zen Cart files, and running it all back at the 1.3.0 version for which the mod was designed. The mod works fine back at version 1.3.0, but no matter what I try, on the newest Zen version it applies the discount twice.

    Unfortunately my customers, like most people, except to see their discounted price while browsing instead of just at the checkout. So, help getting this figured out would be greatly appreciated.

    Attached is my patched version of the mod.

    Thanks all!
    I contacted a zen cart programmer named Andreas who wrote a mod that worked perfectly for me using 1.3.7.1. I have not upgraded to 1.3.8 so I cannot tell you if it will work on the latest version. His email address is: a DOT fragner AT inode DOT at
    He was very responsive and the price was very reasonable. Since the program has already been written, I am sure he will work with you on getting it to work on the new version.

    Good luck!
    H. Light
    Florida

 

 

Similar Threads

  1. 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
  2. Online Group Pricing
    By high2K in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 25 Oct 2007, 12:12 PM
  3. Online Group Pricing
    By flightoffancy in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 27 Jul 2007, 09:21 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

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