Re: Quantity Discounts for 1.3
huh. well I see now that it's nothing to do with this Mod, but the way Zen calculates tax when there are discounts.
It's strange, I can't even duplicate Zen's results. Same strange results when using coupons. Tax is too low.
thanks for you comments
Re: Quantity Discounts for 1.3
What we've noticed with quantity discounts is that with:
a) Include Tax: false and Re-calculate Tax: None
- the discounted items are NOT being taxed properly (the taxable amount doesn't have the discount applied), but the non-discounted items in the cart ARE being taxed properly as the taxable amount doesn't have the discount applied to it
b) Include Tax: false and Re-calculate Tax: Standard
- the opposite happens, the discounted items ARE taxed properly, but the rest of the cart is undertaxed, as the taxable amount for those items is also getting the discount removed from it
Has anyone else noticed this?
Or am I totally off base? we did crunch numbers and this was the conclusion we came to that makes sense numberwise.
Does anyone have a solution for this besides the one we are coming to, which is, we can't use it?
Thanks,
Linda
ps running zen cart 1.3.7 and quantity discounts 1.5
Re: Quantity Discounts for 1.3
"include taxes" means the discount is grossed up to include applicable taxes.
"recalculate taxes" means the taxes are lowered based on the new subtotal.
You might try upgrading to QD 1.9 but I don't recall making tax fixes after 1.5.
Re: Quantity Discounts for 1.3
Great mod, Just need a little help with the marketing text on the product info page. I am trying to understand the following from your FAQ page on your site:
Quote:
If you have used the apply_special_category_discount() or apply_special_item_discount() exits, you should add text below the call to the get_*() method you use to describe these special cases. As a convenience, each of the get_* methods now takes a product and category id, so you can modify the get_* function you're using in ot_quantity_discount.php to be aware of your exit logic. Alternately, you may make these messages conditional in your template using the logic described in
my conditional messages tip.
What text should I be adding as I am using apply_special_category_discount. I have the following in my product info page using the examples from the conditional message to display the discount using the example 2 method.
Code:
<?php
if ( ($current_category_id != 6) &&
($current_category_id != 5) &&
($current_category_id != 1)&&
($current_category_id != 10) )
{
$value = "ot_quantity_discount.php";
include_once(zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] .
'/modules/order_total/', $value, 'false'));
include_once(DIR_WS_MODULES . "order_total/" . $value);
$discount = new ot_quantity_discount();
if ($discount->check() > 0) {
echo '<div class="content" id="discountPolicy3">';
//echo '<h2>' . STORE_POLICY . '</h2>';
echo '<table border="1" bgcolor="#FFFF66"><tr><td>Quantity</td><td>Discount</td></tr>';
$dislist = $discount->get_discount_parms();
for ($i = 0; $i < sizeof($dislist); $i++) {
echo '<tr><td>' . $dislist[$i]['level'];
if ($i == (sizeof($dislist) - 1)) {
echo " + " ;
} else {
echo " - ";
echo $dislist[$i+1]['level'] - 1;
}
echo "</td><td>" . $dislist[$i]['discount'] . "</td></tr>";
}
echo '</table>';
echo '<br /></div>';
}
}
?>
<?php
if ( ($current_category_id == 10) ||
($current_category_id == 6) )
{
** WHAT CODE DO I PUT HERE TO DISPLAY THE apply_special_category_discount FOR THE CATID OF 10 & 6 ***
}
?>
The first section shows the global quantity discount I set up in the admin under the order totals area. The second conditional section is to display the apply_special_category_discount for the particular cat I set up in the ot_quantity_discount.php. But I am confused in what code I need to put so it displays the discounts for these special categories and not the global discount. Please help and I don't understand your statement that I quoted above.
Re: Quantity Discounts for 1.3
There's no easy interface to this data; you'll have to create narratives for the logic that you coded in apply_special_* routines.
echo "Special offers for this category: buy over 10, get 5% off";
The apply_special* routines can be arbitrarily complex, so I can't reverse engineer the logic to create a message; you have to do that.
Re: Quantity Discounts for 1.3
Hoping someone can help...the quantity discount is not calculating correctly at checkout.
These are my settings from Admin. Bug when a customer tried to make a $350 purchase, it only gave a 5% discount, when 15% should have been given based on the settings. Also, I realize that customers who order $100, a fairly common amount should be getting 5%, but are getting no discount. Any help/guidance would be greatly appreciated.
Quantity Discount
This module is installed
true
Sort Order
295
Include Tax
true
Re-calculate Tax
Standard
Discount Units
percentage
Discount Basis
Total By Item
Discount Level 1
100
Discount Amount 1
5
Discount Level 2
160
Discount Amount 2
10
Discount Level 3
240
Discount Amount 3
15
Discount Level 4
400
Discount Amount 4
20
Discount Level 5
1000
Discount Amount 5
25
Re: Quantity Discounts for 1.3
You're using total by item. This means when you have discount level 1 set to 100, the person would have to buy 100 of any one item to get 5% off.
The Quantity in Quantity Discounts is Quantity of Products not Quantity of dollars spent.
Re: Quantity Discounts for 1.3
I have installed the files, but I got them from two different places. the admin side of things is available on the downloads page, but seems to be missing all the catalog files.
I got the catalog files from your website, and now I have installed everything. but! it's not showing up in the modules>>>order totals as an option for me.
maybe i missed crucial data, please point me in the direction of a fill set of files to download....
Re: Quantity Discounts for 1.3
just giving ths a bump. anyone know where the complete file set is?
Re: Quantity Discounts for 1.3
The files in the download area are all you need. Everything else on my site is an extra added bonus. If you can't get your installation to work, you should put an ad on the commercial help wanted forum.