accidentally duplicated my post
Printable View
accidentally duplicated my post
Ok, please clarify
I have no linked products. The category I want to apply a discount to is category 27 (see diagram below)Men's Clothing (10)So I made the following edit to ot_quantity_discount.php
|
----> Stylish Shirts (27)
| -------> shirt A
| -------> shirt B
| -------> shirt C
|
----> Batik Shirts (16)
| -------> shirt A
| -------> shirt B
| -------> shirt C
is this the recommended method?Code:function apply_special_category_discount($category, $count, &$disc_amount) {
switch($category) {
case 27: // Discounts Stylish shirts
if ($count > 1) {
$disc_amount = 10;
}
if ($count > 4) {
$disc_amount = 20;
}
break;
case 99997:
$disc_amount = 0;
break;
}
}
Bespoke customizations are the kind of thing I do on a commercial basis. Email me your requirements for a quote.
All I need is a discount on one category.
I mod already does this, doesn't it.
Thanks for this module, its exactly what my client wanted. The discount is working properly, but on the Payment Information Page (Step Two of the Checkout), it just displays the product sub-total, the discount, and the total (including shipping) -- however, it doesn't actually show the shipping charge, so it looks weird. The numbers are right, it just seems wonky until you remember that there is a shipping fee that isn't displaying. Am I doing something wrong? Is there a setting that I missed? Any help would be greatly appreciated.
http://www.prairierosenaturals.ca/
You just need to turn on the shipping order total module under admin->modules->order total. Set the sort order so that it's unique and above the total.
There are four tax settings in Quantity Discounts (two options with two choices each). If you want more, you'll have to make the changes yourself or hire me or someone else to make them.
The checkout logic is changing completely in 2.0 and presumably there will be even more options at that point. But you should know that many, many UK businesses are using this software as is.
I have a configuration question. My client wants 3 specific categories to have tired quantity discounts. I was able to set this up in the apply_special_category_discount() function, with cases for each category id and and if/elseif structure to check the $count and determine the $disc_amount. This is working fine right off the bat. Problem is, of course, my client can't change this discount setup in admin and it's kinda weird to show the discounts in the product template since all the actual admin discount fields are still zero - after all, I coded all the discounts.
On top of that, nowhere in the cart is there a note about the discount. The discounted price shows accurately, but there's never any indication that there's a discount in play. It just shows a lower unit cost all the way through.
So I am wondering - does it make sense to duplicate the module (twice) so the three categories of discount can be set up and managed in admin? Can it be done? Am I missing an obvious method that everybody else already uses?
Thanks,
Frank
What I tell people to do in cases like this is simply get rid of the explanatory link and customize the marketing text on the product info page. You certainly *could* clone the module 2x but this wouldn't be the direction I would recommend.