
Originally Posted by
swguy
You just need to upgrade to the latest Quantity Discounts contribution. The 1.3.8 infrastructure requires this function, and the latest Quantity DIscounts includes it.
Upgrade completed...
I am trying to do a discount based on quantity from a category like this
Code:
function apply_special_category_discount($category, $count, &$disc_amount) {
switch($category) {
case 12: // 4 OZ Country Samplers Quantity Discount
if ($count > 4) {
$disc_amount = 13;
}
break;
case 13: // 16 OZ Flip-Top Quantity Discount
if ($count > 2) {
$disc_amount = 10;
}
break;
case 15: // 24 OZ Flip-Top Quantity Discount
if ($count > 2) {
$disc_amount = 8;
}
break;
case 16: // 32 OZ Flip-Top Quantity Discount
if ($count > 2) {
$disc_amount = 14;
}
break;
}
}
However, it does not seem to be working. Am I missing something in my settings in admin?
Thanks for the prompt reply!
Aaron
Bookmarks