Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Discount for Mixed Attributes

Discount for Mixed Attributes

Locked

Views: 1,576

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
13 Dec 2008, 2:07 AM
#1
pmorelli avatar

pmorelli

New Zenner

Join Date:
Nov 2008
Posts:
18
Plugin Contributions:
0

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/index.php?main_page=product_info&cPath=71&products_id=196

13 Dec 2008, 3:45 PM
#3
pmorelli avatar

pmorelli

New Zenner

Join Date:
Nov 2008
Posts:
18
Plugin Contributions:
0

Re: Discount for Mixed Attributes

That WORKED!!!! THANK YOU!:clap:

29 Jun 2009, 1:19 AM
#4
thebeveragegourmet avatar

thebeveragegourmet

Zen Follower

Join Date:
Nov 2006
Posts:
163
Plugin Contributions:
0

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