If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / Products Price Manager discounts aren't working on multiple attributes even though th

Products Price Manager discounts aren't working on multiple attributes even though th

Started by ryk on 5 Apr 2024, 9:19 AM · Views: 897

Results 1 to 3 of 3
5 Apr 2024, 9:19 AM
#1
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Products Price Manager discounts aren't working on multiple attributes even though th

Following an upgrade, to 158a one of our clients reported the issue. On investigation, checkinmg the vanilla versions from 157 and 158, we found that this code is missing from function zen_get_products_discount_price_qty in functions_prices.php

$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;
}

The session var looks at the cart to see how many item have mixed_discount_quantity and updates $check_qty to this value.
We don't know what the intention was when it was removed, but it doesn't exist in v2.0.0rc1 either.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

5 Apr 2024, 9:34 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Products Price Manager discounts aren't working on multiple attributes even though th

Looks like this was an error that happened during the consolidation of common functions between storefront and admin. Would you please create a 2.0 PR?

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.

5 Apr 2024, 1:46 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Products Price Manager discounts aren't working on multiple attributes even though th