Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
swguy
Both of you are correct.
O.K.
For any user of this add-on, should I be able to achive the following:
Code:
I have eliminated categories O.K., but I am trying to set the following without a success so far:
A: If 3 different items from one category - discount $xx
B: If 5 different items from one category - discount $yy
C: If 10 of the same items from one category - discount $zz
However right now I am getting discounts for A & B even if they are of the same item. (I did not do C: as yet).
If this is not the right add-on to do this, could you let me know?
Tx
Re: Quantity Discounts for 1.3
I figured out what I was doing wrong. Yahoo!.
Let me explain what I was doing wrong so those in the future will not do the same thing and mayb the documentation can be updated to make it more clearer. The documentation is right but I guess I had a brain phart.
The documentation says this:
How do you create that last discount?
Quantity Discounts 1.4 has the answer. In the file includes/modules/order_total/ot_quantity_discount.php, there is a function called setup(). From there, you may add a call to a function to add additional discounting levels and discounts in the following manner:
Code:
function setup() {
// Add extra levels and discounts here in this manner:
// "Buy more than 100 items, get 50 (% or $, as per admin) off"
$this->add_extra_level_discount(100, 50);
}
Place your code right above the closing php statement here
Re: Quantity Discounts for 1.3
Is there a way to place something like "Quantity Discounts Marketing Example 2 Output" that gets displayed in the product in the top level category that the product falls under?
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
Veronika7747
O.K.
For any user of this add-on, should I be able to achive the following:
Code:
I have eliminated categories O.K., but I am trying to set the following without a success so far:
A: If 3 different items from one category - discount $xx
B: If 5 different items from one category - discount $yy
C: If 10 of the same items from one category - discount $zz
However right now I am getting discounts for A & B even if they are of the same item. (I did not do C: as yet).
If this is not the right add-on to do this, could you let me know?
Tx
Well for those who might be interested.. I did as follows:
For C: copied all these products to a special category and set "price manager discount? - the one that comes with zencart.
For A & B - used quantity discount 1. 3 and let it be O.K. for 3 (5) of the same item. If I figure out how to set it for 3(5) discount only of different items I'll let you know.
Happy New Year to you all!
Quantity Discounts included in more then one category
I have included the following code below in my "ot_quality_discount.php" template. The 65 represents the category that I want to use my quality discount in.
In the instructions it gives the explain of the code to insert in the "ot_quality_discount.php". The sample uses category 11. I just substituted the 11 for 65.
The problem is that the discounts also are workign in category 67. This should not be happening according to the instructions.
Let me clarify that category 67 is not a subcategory under 65.
How can I correct this?
Here is the code I am using in my "ot_quality_discount.php".
Code:
// Add this code to make category 65 have discounts set up in
// the quality discounts section
function exclude_category($category) {
switch($category) {
case 65:
return false;
}
return true;
}
Re: Quantity Discounts included in more then one category
Here are how my categories are set up. They are all top level categories.
ID Category / Products
65 Books
67 Test category
I read through the documentation again and I ran the query to see if my master categories are set to 0 and the query came back good. I even went into my Admin -> Tools -> Store Manager, and click on "Reset ALL Products Master Categories ID"
But all my categories are getting the discounts I have setup.
At first I added this thinking I had was suppose to in order to make sure category 65 got the discounts but I found that without doing this it got the discounts and so do all the categories.
Code:
function exclude_category($category) {
switch($category) {
case 66:
return false;
}
return true;
}
So I them removed the above code and add this code below to try and exempt category 67 from the discounts but category 67 still gets the discounts with this code in there.
Code:
function exclude_category($category) {
switch($category) {
case 67:
return true;
}
return false;
}
Am I putting it in the wrong place in the code or something? Here is how I am placing these codes. I am placing them right below the function setup() code like below. In the very bottom of the file.
Code:
function setup() {
// Add extra levels and discounts here in this manner:
// "Buy more than 100 items, get 50 (% or $, as per admin) off"
// $this->add_extra_level_discount(100, 50);
}
}
function exclude_category($category) {
switch($category) {
case 66:
return false;
}
return true;
}
Re: Quantity Discounts for 1.3
I've got
category Fragrance_
sub-16oz_
a-f
g-l
m-r
s-z
are they away to buy 10 items out of all these areas to get $10 off?
Right now I have to buy 10 out of each area to get $10.00 off.
Re: Quantity Discounts for 1.3
Re: Quantity Discounts for 1.3
Hi Scott - Thanks for this great add-on. Before I go through the steps to install this, I just wanted to be clear on one thing: Does this module have to be visible store-wide, as in your example:
Quote:
Store Quantity Discount Policy
Buy 10 or more of any item, get 15% off
Buy 20 or more of any item, get 20% off
Buy 30 or more of any item, get 30% off
Or can it just be utilized on a more product specific basis. For a number of reasons I wouldn't be able to have a true store-wide discount policy.
Thanks - Tim
Re: Quantity Discounts for 1.3
There are two user exits called exclude_category() and exclude_product(). You can use these to leave categories or products out. You will then need to adjust your display of the store discounting policy (if you've modified tpl_product_info_display to show the table indicated).
Now if almost everything in your store is excluded, you may want to simply use the native Zen Cart Quantity Discounting mechanism; it is designed to be applied product by product.
Good luck,
Scott