Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2009
    Posts
    84
    Plugin Contributions
    0

    Default Discount Qty Applies to Mixed Attributes doesn't work

    Just noticed the "Discount Qty Applies to Mixed Attributes" function doesn't work in v1.5.8a

    Either "Yes" or "No" gives me the same incorrect result (no discount qty applied). I tested with PHP 7.4 and 8.0, but still didn't get the correct amount. Is there any possible setting conflict?


    Name:  2024-09-17_184057.jpg
Views: 346
Size:  15.0 KB

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

    Default Re: Discount Qty Applies to Mixed Attributes doesn't work

    This works in master. Not sure if it was fixed in 2.0.x or 2.1.0.
    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
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,292
    Plugin Contributions
    125

    Default Re: Discount Qty Applies to Mixed Attributes doesn't work

    Looks good in 2.0.1 as well.
    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.

  4. #4
    Join Date
    Apr 2009
    Posts
    84
    Plugin Contributions
    0

    Default Re: Discount Qty Applies to Mixed Attributes doesn't work

    It looks like a similar issue from https://www.zen-cart.com/showthread....even-though-th

    So I copy the following codes (from v2.0.1) to \includes\functions\functions_price.php and insert between line 1417 and 1418:

    if (IS_ADMIN_FLAG === false) {
    $new_qty = $_SESSION['cart']->in_cart_mixed_discount_quantity($product_id);
    // check for discount qty mix
    if ($new_qty > $check_qty) {
    $check_qty = $new_qty;
    }
    }
    So far it works fine, and no error logs generated.
    I would appreciate it if anyone could look into and verify my modification.

 

 

Similar Threads

  1. Issue with mixed attributes discount v1.3.9
    By Tabascoman in forum Bug Reports
    Replies: 4
    Last Post: 17 May 2011, 11:22 AM
  2. Wrong prices with Qty Discounts that apply to mixed attributes
    By bodyjewelrystores in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 8 Jan 2010, 03:24 PM
  3. Replies: 5
    Last Post: 26 Aug 2009, 03:58 PM
  4. Discount for Mixed Attributes
    By pmorelli in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 29 Jun 2009, 02:19 AM
  5. 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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR