Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    18
    Plugin Contributions
    0

    Default Discount for Mixed Attributes

    Hello, I am trying to setup a Multi quantity Discount on a product that has multiple styles. I would like the customer to be able to select multiple styles using the addtributes and get the quantity discount. When I set Discount Qty Applies to Mixed Attributes to yes, the discount applies to the incremented items that are added to the cart once it reaches the quanity discount, but the original items are still at original cost.

    easier to see what I am talking about, Add a couple of each of the bags using add to cart and keep shopping. If there is a better method please let me know. Possibly a quantity box next to each. Just not sure how to setup.

    http://www.peaceful-planet.com/Store...roducts_id=196

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

    Default Re: Discount for Mixed Attributes

    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
    Posts
    18
    Plugin Contributions
    0

    Default Re: Discount for Mixed Attributes

    That WORKED!!!! THANK YOU!

  4. #4
    Join Date
    Nov 2006
    Posts
    160
    Plugin Contributions
    0

    Default Re: Discount for Mixed Attributes

    I have added the "fix" and my discounts still aren't showing for mixed attributes.

    My line 1391 (not sure why it doesn't match up to the fix line) is:
    // reset($this->contents); // breaks cart
    $check_contents = $this->contents;
    reset($check_contents);
    while (list($products_id, ) = each($check_contents)) {
    $test_id = zen_get_prid($products_id);
    if ($test_id == $chk_products_id) {
    $in_cart_mixed_qty += $check_contents[$products_id]['qty'];
    }
    }
    return $in_cart_mixed_qty;
    }
    /**

    and line 1426 is:
    // reset($this->contents); // breaks cart
    $check_contents = $this->contents;
    reset($check_contents);
    while (list($products_id, ) = each($check_contents)) {
    $test_id = zen_get_prid($products_id);
    if ($test_id == $chk_products_id) {
    $in_cart_mixed_qty_discount_quantity += $check_contents[$products_id]['qty'];
    }
    }
    return $in_cart_mixed_qty_discount_quantity;
    }
    /**

    Should I have the "Quantity Discount" in the Order Total Module *removed* because it's currently installed and I'm not sure if that is screwing it up or not


 

 

Similar Threads

  1. v154 Quantity Discount Not Applied to Product with Mixed Attributes
    By Joe Robot in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 15 Apr 2015, 10:02 PM
  2. Issue with mixed attributes discount v1.3.9
    By Tabascoman in forum Bug Reports
    Replies: 4
    Last Post: 17 May 2011, 11:22 AM
  3. Replies: 2
    Last Post: 14 Nov 2009, 02:30 AM
  4. Attributes Qty Price Discount on Mixed Items
    By alanekilauea in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 18 May 2008, 05:51 AM
  5. How to allow mixed attributes for one attribute only?
    By adflkajdlfkajefiaudl in forum General Questions
    Replies: 1
    Last Post: 22 Apr 2007, 05:55 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