Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2008
    Location
    New Hampshire
    Posts
    4
    Plugin Contributions
    0

    red flag Qnty Discount Not Working

    I'm using 1.3.8 and I'm having an issue with addiding the same product with an attribure to the cart and having it calculate the total, well it's calculating but not what it should. I have tried the fix in another post : within the shopping_cart.php in classes. And that did not work. Here is a link to a page I'm working on that has the qty. discount. and when you add just a qty with just on option it works fine, but if you try to mix and match it doesn't.

    -------------------------------------

    http://southernleatherthangs.com/ind...&products_id=4

    -----------------------------------------

    I've tried several hours to try and fix. But nothing. Everything I tried I converted back, so yes this is a clean copy.

    Thanks
    Ken Young
    Memory Decals
    www.memorydecals.com

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Qnty Discount Not Working

    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Nov 2008
    Location
    New Hampshire
    Posts
    4
    Plugin Contributions
    0

    Default Re: Qnty Discount Not Working

    I did try that fix first before posting... And still nothing.
    Ken Young
    Memory Decals
    www.memorydecals.com

  4. #4
    Join Date
    Nov 2008
    Location
    New Hampshire
    Posts
    4
    Plugin Contributions
    0

    Default Re: Qnty Discount Not Working

    Fixed: Well after I tried the fix again from the above post, I must not have read it clear, but I did figure it out. There are (2) of these, and when I read

    Solution:
    /includes/classes/shopping_cart.php
    at lines 1401 and 1435 you have code that looks like this:

    I was thinking my code was off within the file, and it moved the numbers. so anyways.

    I found BOTH (2) of

    // reset($this->contents); // breaks cart
    $check_contents = $this->contents;
    while (list($products_id, ) = each($check_contents)) {

    And fixed them BOTH (2) with adding your fix:

    // reset($this->contents); // breaks cart
    $check_contents = $this->contents;
    reset($check_contents); while (list($products_id, ) = each($check_contents)) {


    Thanks
    Ken Young
    Memory Decals
    www.memorydecals.com

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

    Default Re: Qnty Discount Not Working

    Thanks for the update and posting what the solution was that you missed on the fix ... this will help others that also miss the reference to the two locations of the code that need to be fixed ...
    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!

 

 

Similar Threads

  1. discount coupon not working
    By chac416 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 26
    Last Post: 7 Oct 2007, 06:55 PM
  2. Discount percent not working
    By catangirl in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 21 Sep 2007, 07:44 PM
  3. Quantity Discount not working?
    By grace83 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 16 Sep 2007, 01:21 PM
  4. My Customer Discount Not Working
    By aphro6677 in forum General Questions
    Replies: 3
    Last Post: 24 Jul 2006, 02:36 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