-
Quantity Discounts for 1.3
My quantity discounts module has been posted in
http://www.zen-cart.com/index.php?ma...roducts_id=235
You may discount by item, by category or by total items in cart, in either percentages or currency units. Up to five discount levels are provided. A link is given on the checkout page to show the customer how the discount was calculated.
Please follow up here for support.
Thanks,
Scott (swguy)
PS> One bug has been found already; for those who are using discount by total items in cart, please make this change:
change l. 149-151 from
if ($count < $this->total_level_1)
continue;
$disc_amount = $this->total_discount_1;
to
if ($count < $this->total_level_1)
$disc_amount = 0;
else
$disc_amount = $this->total_discount_1;
-
Re: Quantity Discounts for 1.3
You have an interesting idea here, however ...
From a naming convention standpoint, you have broken pattern that could lead to conflicts with other Order Total Modules ...
You will notice how there is a pattern to the naming of the constants ...
You really want to maintain that pattern so that the module more or less "owns" the pattern ...
First you use this pattern:
MODULE_ORDER_TOTAL_QUANTITY_DISCOUNT_blah
But then you leap to:
MODULE_ORDER_TOTAL_LEVEL_blah
Then to:
MODULE_ORDER_TOTAL_DISCOUNT_blah
You may want to give that a think through and re-establish a pattern that more or less "belongs" to this Order Total Module so that there is less likelyhood of a colision in the configuration table or in the running of the module ...
Thanks again for the contrib ... looks interersting ... :)
-
Re: Quantity Discounts for 1.3
Doooh! I thought I had changed that. You are absolutely right - database variables must stay in their own name space to prevent collisions. I will fix this in the next release and provide a cleanup procedure for people to get rid of the old variables.
Thanks,
Scott
-
Re: Quantity Discounts for 1.3
Hi,
Thanks for the contribution. I'm a new member and 'making' my way through a setup of Zen-Cart to replace my aging ws4d ecommence system.
I've tested your quanity discount submission, but I cannot get the category discount to work at all.
I added 3 items from the same category into my cart (which is calculated to discount 10%) but it won't discount it.
I changed over to Order Discount and that works correct.
Most importantly my question is this, can I assign an off/on to EACH category with the Quantity discounting module you created, or can it be modified to contain this?
I need some categories WITH this discounting and others with standard prices without discounts.
thanks so much,
Jeff Michaels
pres of Musical Creations Ltd.
Cary NC
-
Re: Quantity Discounts for 1.3
To turn discounting on or off for particular items or categories, you'd have to
extend the code. In the next release (just a couple of weeks out), I'll mark specific places in the code where you can do this.
As to why it's not working: please check your settings and ensure they are:
discount units: percentage; discount basis: total by category; discount level 1: 3 (or 2); discount amount 1: 5. Then check the products themselves: when you go to admin->catalog->categories/products go to the category you want and make sure
all three items are in that category. (Oh, one more thing: are you running
ZenCart 1.3?)
Thanks,
Scott
-
Re: Quantity Discounts for 1.3
I think I know why it didn't work under categories....
I had all the test items gathered from the Hardware master category, but they were also from different sub-categories within Hardware. I guess they all have to be from the same sub-category also.
Here's what I'd like to do (and I'm currently doing in my old site). I have 5 discounts for mp3 downloads, 5 discounts for songs shipped on custom CDs (both by quantity level) and NO quantity discount for collection CDs and CDGs that are purchased on my site. This was all done under WS4D ecommerce back in 2004. The programmer has now disappeared, so I can't make any internal changes to the code (compiled). I've been looking for a solution to host on my OSX server for about a year and discovered Zen-Cart about a week ago. It does nearly everything I need out of the box...plus more. With 67,000 karaoke products and a current Filemaker Pro database in the office, it'll take till the end of this year to get it all up and running. I got the Filemaker to SQL transfer solved this past weekend with a plugin. Now, it's just the flow of the entire website that needs a lot of planning on paper before I actually begin to really import. The Quanity Discount module you created is one of many solutions that will make this happen for me. :D
thanks,
Jeff Michaels
http://www.musicalcreations.com
-
Re: Quantity Discounts for 1.3
Interesting ... I considered adding subcategory support, but I thought for the first release that I would just use categories. Sub-category fans, please speak up
and let me know how you want this to work.
I'm pretty close to wrapping up version 1.1, which has support for user exits to easily modify discounts for specific items and categories and to allow certain categories and items to be excluded from discounting. I'm hoping to release this before the 8/25. I'll collect up the subcategory feedback I'm getting and do a follow up release a few weeks after that. Thanks!
Good luck,
Scott
-
Re: Quantity Discounts for 1.3
I just added a bunch of 'mice' from the Hardware category and the discounting worked.
If I add 3 different items from Hardware, but each under different sub-categories, it will not disount.
It seems you have sub-category discounting enabled already, not the master category.
This wouldn't be a problem for me when the 1.1 release allows me to turn on/off which parts I want to use under Quantity Discounts. Currently, it doesn't work for me as is. (I'm in the concept stage anyway, so no 'biggie' yet).
Quick side note: Do you know if "music genre", "record artist" and "record companies" can be added as separate searched in the Advanced Search? I'd like to first make them: Collection Title, Song Title, Artist (and others). This is critcal to my new site and will probably need custom programming help with.
Example is at: http://www.kararokewh.com
on top left with their QuickSearch.... more in their Advanced Search.
thanks,
Jeff Michaels
-
Re: Quantity Discounts for 1.3
Hi Jeff! Please PM me with your email address so we can discuss.
Thanks,
Scott
-
Re: Quantity Discounts for 1.3
I think there is some interest in setting discount thresholds by DOLLARS SPENT,
not by quantities of items where dollars spent (or other currency spent) could be tracked by item, by category, or by total number of items in the cart. It's not a hard change either - in fact, the only thing I'm having trouble with is thinking about what to call it! So if you want to discount by dollars and not by item count, please speak up and let me know what what you think the config item name should be, and any other config you think is needed.
Thanks,
Scott
-
Re: Quantity Discounts for 1.3
I prefer to have discounting by quantity, not be dollar amounts.
I'd just love to have the availibility of having it in sub-categories---as you mentioned.
I also found a problem while I'm coding.
I added an attribute and I selected
Apply Discounts Used by Product Special/Sale: NO
and the discounts are still coming up.
Can you check on this for me?
I selected 3 of the same items to do this as a test (if that helps)
thanks,
Jeff Warzecho
-
Re: Quantity Discounts for 1.3
This mod does not share configuration with the other discounting features; it has its own
configuration. In the next release, there will be an easy way to exempt products from
discounting.
Scott
-
Re: Quantity Discounts for 1.3
Would it be possible to alter the qty discount logic so that the discounts persist when adding greater quantities than what is set in the admin panel? So more items than the set discount quantity still get discounted.
For example if each item costs $10 and 9 items cost $90, then with a $1 per item discount, 11 items should cost $99. Currently 11 items cost $100. So the discount stops accumulating for quantities greater than the number set in the qty discount control panel, at least until you reach the next discount level.
Or am I not using this module correctly?
-
Re: Quantity Discounts for 1.3
You are using it correctly, but the "discount by currency" is a flat discount.
Why not discount by % and give 10% off over 10? That would yield the result you seek.
Scott
-
Re: Quantity Discounts for 1.3
The new Quantity Discounts module (version 1.1) has been posted at
http://www.zen-cart.com/index.php?ma...roducts_id=235
This version has user exits for removing items and categories from
the discounting plan, and providing different discounting levels for
certain items and categories.
Thanks,
Scott
-
Quantity Discounts and Sales Taxes
Generous discounters please note: there is a known problem with sales tax computation when combining either Group Discounts or Quantity Discounts with coupons (and probably other discounting mechanisms). See the following thread:
http://www.zen-cart.com/forum/showthread.php?t=43436
We're working on a solution.
Thanks,
Scott
-
Re: Quantity Discounts for 1.3
I have an interesting problem: I have a product that lists for $17.95 and I have entered a 4.1% discount to get the product for $17.20 when someone buys 6 to 11 of them and 8.1% to get the price to $16.50 if someone buys 12 or more. These are manufacturer requirements. This works out fine and is calculated correctly in the checkout process. But at the bottom of the product pages, the discounts are shown to have the product at $17.50 for 6 to 11 items and at $16.96 for 12+. My customers will not realize what the true discount is and will think I am overpriced vs my competitors. How does one rectify this?
Also, I really want the discount to cover a main category and ALL of its subcategories but it only discounts the subcategories individually and not all of them together under the main category. Can this be fixed? Thanks! Amy
-
Re: Quantity Discounts for 1.3
How are you showing the discounts on the product page? Please provide an URL and post your Quantity Discounts settings.
Thanks,
Scott
-
Re: Quantity Discounts for 1.3
http://www.doodlebuckets.com/fuzzi_b...products_id=60
Here is one of my product pages. (Please excuse the color schemes, I have not modified PurpleShades fully just yet!) To control inventory, I have a page for each size and color of diaper since Zencart does not yet track inventory for multiple attributes. For the small, medium, large and XL diapers, there is an MSRP structure as follows:
1-5: $17.95ea
6-11 $17.20ea
12+ $16.50 ea.
I put my settings at:
Discount Units
percentage
Discount Basis
Total Items in Cart
Discount Level 1
6
Discount Amount 1
4.2
Discount Level 2
12
Discount 2
8.1
I had to put it to "total items in cart" because doing it by "category" was not going to give me the discount I needed if someone ordered different sizes. It's odd, though (maybe you can tell me why...) but the quantity discounts only show up on my diaper pages anyway.
It would be nice if the mod included a way to enter what the item price was for each category and subcategory for the different #'s of items ordered, instead of percentages and then have it applied to all categories that I need it to be. At least that's what would work for me :)
If you notice at the bottom of the product page, the prices for the quantities do not match up with what gets calculated at checkout. Thus my dilemma...
Thanks for your help! Amy
-
Re: Quantity Discounts for 1.3
The box you have at the bottom announcing your discounts is not produced by the
Quantity Discounts module; it's produced by products price manager. You seem
to have configured both Quantity Discounts and Products Price Manager.
Go into one of your products through admin and see if this isn't so. Quantity Discounts definitely did not produce that table of discounts.
Scott
-
Quantity Discounts for 1.3 FAQ
Lots of details, screenshots and FAQ answers are provided in my support page for Quantity Discounts:
http://www.thatsoftwareguy.com/zenca...discounts.html
Good luck to all,
Scott
-
Re: Quantity Discounts for 1.3
I will provide 1.3.5 updates ASAP. If you are merging yourself, note that the file shopping_cart.php no longer requires special customization; my change was added to core code.
Thanks,
Scott
-
Re: Quantity Discounts for 1.3
Hi
I am having a wee problem in that I have the qty discount module installed but the calculation does not seem quite right.
This is a uk store with vat at 17.5%
http://www.vineorganic.co.uk
I have the following settings
Include tax - true
discount units - percentage
discount basis - items in cart
discount level 1 - 5
discount amount - 5
I have disallowed items being discounted from 1 category - by amending a file as specified (adding in category id)
However it seems to completly ignore the vat and apply the discount to the items without including the vat.
How would I get it to calculate the discount taking into account vat?
Help appreciated (donation to college fund will be made as soon as possible - this is a fab module - so thanks!)
-
Re: Quantity Discounts for 1.3
The include tax stuff is quite hairy, and I'm not sure about VAT. When you're upgraded
to 1.3.5, pm me and I'll give you a beta of v. 1.3 of QD; this might solve your problem.
-
Re: Quantity Discounts for 1.3
Sods law I have just spent the last week updating to 1.32...from 1.27
ho hum - will try and get this done over the next few weeks.
Cheers will get in touch once I've upgraded.
-
Re: Quantity Discounts for 1.3
Quantity Discounts Version 1.2 has been submitted to the moderators and will be available shortly. This has a number of sales tax related fixes, so if you charge sales tax, please be ready to upgrade.
Note that this module is dependant on certain fixes in ZenCart 1.3.5, so you *must* upgrade to ZenCart 1.3.5 before installing Quantity Discounts 1.2.
I will post a message here when it is generally available.
Meanwhile, have a look at the Quantity Discounts FAQ page:
http://www.thatsoftwareguy.com/zenca...discounts.html
Thanks,
Scott
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by swguy
I think there is some interest in setting discount thresholds by DOLLARS SPENT,
not by quantities of items where dollars spent (or other currency spent) could be tracked by item, by category, or by total number of items in the cart. It's not a hard change either - in fact, the only thing I'm having trouble with is thinking about what to call it! So if you want to discount by dollars and not by item count, please speak up and let me know what what you think the config item name should be, and any other config you think is needed.
Thanks,
Scott
Hi
I wonder if you did develop the discount thresholds set by dollars/pounds spent afterall. I would like to offer my customers discounts based on the amount of money spent per order.....
How about calling it cart total discount or something...
Also, is it possible to make the discounts unavailable to some customers - say newer ones, yet available to your returning customers?
Thanks
-
Re: Quantity Discounts for 1.3
These extensions are available at a small cost. PM or email me with your precise specifications for details.
Scott
-
Quantity Discounts for 1.3.5
The latest version (1.3) of Quantity Discounts is now available; this version fixes some of the sales tax issues in prior versions. Note that this version has ONLY been tested against ZenCart 1.3.5 and requires ZenCart 1.3.5's copy of shopping_cart.php, so please upgrade before installing this version of the contrib.
Good luck,
Scott
-
Re: Quantity Discounts for 1.3
I have a group of products that are all under one category. Each item is $2.00, and when we sell them locally, we offer them at 3/$5. I installed the module and I'm only able to get one discount on the first 3. If I buy 6, I still only get $1 off. My settings are:
Discount Units
currency
Discount Basis
Total by Category
Discount level 1
6.00
Discount Amount 1
1.00
Discount Level 2
12.00
Discount Amount 2
2.00
etc.
Am I doing somethign wrong?
-
Re: Quantity Discounts for 1.3
Discount by currency is a one-time one amount discount. If you need a currency discount to be applied to each item, this is an inexpensive customization I can do for you; PM me for details. Otherwise, you can use a % off discount of 16% with discount level 1 of 3.
Good luck,
Scott
-
Re: Quantity Discounts for 1.3
I was assuming that it was a one-time discount, which is fine. My assumption on the use of it was this:
If I have $6 worthe, then give $1 discount. If I have $12 worth, then give $2, and so on. I even tried reversing it, putting the higher levels first, but I still only ever got $1 discounted. I only want the discount to apply on groups of three, and it's $1 off for each group. Make sense? Can I do this with the current module?
-
Re: Quantity Discounts for 1.3
You will need to write some custom logic.
I added user exits to make the mod more extensible. See
http://www.thatsoftwareguy.com/zenca...discounts.html
for some examples. Look at apply_special_category_discount().
Scott
-
Re: Quantity Discounts for 1.3
I just installed 1.3. I would rather the parent category be used for my quantity discount. I'm sure there is a simple code mod that I can do to allow for that. Can you tell me what that would be? Thanks!
-
Re: Quantity Discounts for 1.3
The parent category is used. Do you want the top level category to be used?
If so, this is available as a customization for a modest fee. Please see "Special Requests" in:
http://www.thatsoftwareguy.com/zenca...ts.html#custom
Scott
-
Re: Quantity Discounts for 1.3
I've missed something, I know I have!
I've installed the mod, read the thread, read the readme.
I have about 4000 products, I want to offer quantity discounts on about 25 of these products, spread over different categories.
I've look in the product edit, and all through the menus...but how do I do this???
I'm lost - sorry for being thick!
-
Re: Quantity Discounts for 1.3
You need to use the user exits. Look at
http://www.thatsoftwareguy.com/zenca...discounts.html
at the exclude_category() method as an example.
Scott
-
Re: Quantity Discounts for 1.3
Check the FAQ again at
http://www.thatsoftwareguy.com/zenca...discounts.html
a couple of examples of having products in or out of the discounting plan are provided.
(look for "exclude_product")
Good luck,
Scott
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
swguy
Quote:
Originally Posted by
swguy
Ah, NOW I get it!
I didn't even realise Zen had a "per product quantity discount" built in! (Admit it - the admin isn't designed for ease of use!)
So, I use the "per product" system for some, apply blanket discounts via your system, and exclude what I don't want, and the built-in "per product" system will over-ride the blanket discounts from your system where appropriate?
Have I understood this right?
-
Re: Quantity Discounts for 1.3
That's a very interesting usage model ... I guess I thought most people would use the built in one and do it product by product, or use mine, but I guess you could use both. The only problem
I would have with using both is that you'd have to explain very carefully to the customer that
discounts on product xyz will appear as soon as you put the product in your basket, but discounts
on product abc will not be shown until checkout time.
Good luck,
Scott
-
Re: Quantity Discounts for 1.3
Another suggestion has been added to the Quantity Discounts FAQ:
http://www.thatsoftwareguy.com/zenca...discounts.html
If you are concerned that people don't know they might have a discount coming
when they look at their cart, try changing SUB_TITLE_SUB_TOTAL in includes/languages/english/shopping_cart.php to something like 'Sub-Total BEFORE Discount'
This will emphasize the fact that a discount will be added at checkout time.
Good luck,
Scott
-
Re: Quantity Discounts for 1.3
Is there a way to add an 'if' statement before this code so when I place it into
tpl_product_info_display.php, it will only display the discount info if that item is actually one of the items that include a quantity discount? Otherwise, nothing will appear (so it won't confuse the customer with a generic statement that's not needed otherwise.
I don't mind typing in all my included (or excluded) categories or items, but I can't figure out the code to create an 'if' statement.
thanks,
Jeff Michaels
Musical Creations Ltd.
<?php
$value = "ot_quantity_discount.php";
include(zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] .
'/modules/order_total/', $value, 'false'));
include(DIR_WS_MODULES . "order_total/" . $value);
$discount = new ot_quantity_discount();
echo '<div class="content" id="discountPolicy">';
echo '<h2>' . STORE_POLICY . '</h2>';
echo $discount->get_html_policy();
echo '<br /></div>';
?>
-
Re: Quantity Discounts for 1.3
Yes you can, Jeff. Just be sure to put a reminder note in ot_quantity_discount.php (in whatever user exits you have used) to keep this file in sync with tpl_product_info_display.php.
The code in tpl_product_info_display.php for a specific category would be:
if ($current_category_id == 14) {
...
}
or for a specific product
if ((int)$_GET['products_id'] == 27) {
...
}
Good luck,
Scott
-
Re: Quantity Discounts for 1.3
Scott,
Is this to include or exclude?
thanks,
Jeff
-
Re: Quantity Discounts for 1.3
Scott,
2 other questions:
1--
How do you correctly write this code for multiple exits (multiple ifs) ?
What did I do wrong here?
I did one and it worked perfectly, but I cannot get 2 to 'code' correctly.
<?php
if ($current_category_id == 68)
if ($current_category_id == 69) { {
$value = "ot_quantity_discount.php";
include(zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] .
'/modules/order_total/', $value, 'false'));
include(DIR_WS_MODULES . "order_total/" . $value);
$discount = new ot_quantity_discount();
echo '<div class="content" id="discountPolicy">';
echo '<h2>' . STORE_POLICY . '</h2>';
echo $discount->get_html_policy();
echo '<br /></div>';
} }
?>
2--
What is the code for 'exclude', instead of 'include?
I have less to exclude, so there would be less of them to write in
thanks,
Jeff
-
Re: Quantity Discounts for 1.3
Examples of inclusion and exclusion of this message for specific product and category ids are provided in my page
http://www.thatsoftwareguy.com/zenca..._messages.html
Good luck,
Scott
-
Re: Quantity Discounts for 1.3
Yep,
That does it! thanks Scott
-
Re: Quantity Discounts for 1.3
Quantity Discounts interoperates with 1.3.6. There have been changes to the tax computation in other order total modules that I may incorporate (possibly optionally) at a later date.
Thanks,
Scott
-
Re: Quantity Discounts for 1.3
Oh, by the way, the customization to shopping_cart.php from early versions of Quantity Discounts is no longer needed if you're upgrading to 1.3.5 or 1.3.6. Just upgrade to the latest Quantity Discounts and you'll be all set.
Scott
-
Re: Quantity Discounts for 1.3
scott, I sent you an email, hopefully you received it. I have a what seems to be a more complicated discount model than can be created with the current exits.
I have two categories that are sub-cats of the same parent - I want to create a discount where the customer can mix or match quanties from either or both of thse categories. the discount from categoryA with items >4 = X and the discount from category B =Y. The >4 as I said can be composed of products from either, or both categories. I've explained it in more detail in email.
My question is, can this be done with your additional exits that you offer on your site? I really am pressed on this and am interested in contacting you.
Thanks
-
Re: Quantity Discounts for 1.3
I have installed the quantity discount and I've had no error or issues, however I am not able to get it to produce discounts. I first installed it on a test system (1.3.5) and got it to work in its most basic form. But now that I've taken the site live it ignores the settings and I'm not sure what to look for.
Could some show me what I need to do to set this up correctly?
I set the admin to category - and percentage level one = 5
this is the only user exit that I set up - see code below:
// Add categories with special discounting policies to this list.
// Note that 99999, 99998 and 99997 are just given as examples.
// Note that the Discounting Units you specified in Admin
// (percentage or currency) are also used here.
function apply_special_category_discount($category, $count, &$disc_amount) {
switch($category) {
case 27:
if ($count > 4) {
$disc_amount = 16.00;
}
break;
case 28:
$disc_amount = 24.00;
break;
}
}
Now I was at least getting it to show the discount for the first category at which point I emailed Scott to see about getting this other user exits to expand what I needed, but no response yet.
I really need to get this to work at least in its most basic form. Can someone who has had success with this help me out? I would be very appreciative.
Thanks in advance.
-
Re: Quantity Discounts for 1.3
Are you sure you have the categories correct? Remember these are the parent categories of the item, not the top level category.
Scott
-
Re: Quantity Discounts for 1.3
I just sent you copies of my lost emails... No those are the categories where the products lie. URL is http://www.lorindascandlesandmore.com
Since I took the site live and installed the SSL I get nothing pulling through at all. I even tried a simple 1.00 off on one category and nothing... Very strange. I was getting some kind of discount before that. Of course go live and it breaks...LOL
Ruth
-
Re: Quantity Discounts for 1.3
I just wanted to get back and thank Scott for all his help. I was finally able with his help and the purchase of his additional exit for Top Categories, I was able to get the discounts implemented that I needed and the way I needed them to work. I really appreicate the time you spent with me on this.
Take care and have a super day!!!
-
Re: Quantity Discounts for 1.3
Quantity Discounts version 1.4, with no limits to the number of levels and discounts, will be available in the downloads area sometime around Feb. 1. If you've chafed at the restriction of only having five discounting levels, you'll be pleased by this new version. I can accomodate a couple of beta testers who promise to provide feedback. See you in three weeks!
Cheers,
Scott
-
Re: Quantity Discounts for 1.3
I noticed in another thread where you mentioned to someone this mod could be used for discounts based on order total rather than quantity of items. I am very intereted in setting up something like that...for example 10% $25 total, 15% off $50 total etc. Have you gone into detail on this somewhere else where I could learn more about doing this? Thanks!
-
Re: Quantity Discounts for 1.3
Click on the link in my sig. Waaaay more documentation than you would ever want inside. :)
Good luck,
Scott
-
Re: Quantity Discounts for 1.3
Hi Scott and Hi Others
Now I am stuck. :-(
I Sell memory sticks. Want to use your quantity price breaks and maybe minimum quantity to accomplish this:
Example of 4 products. All products differences only memory size. Because of limitation quantity price breaks work with attributes I've been pushed to put them as a separate products than one with attribute "Memory"
-------------------------------------------------------------------------------
Capacity/Volume 5072------- 144----- 288----- 576
-------------------------------------------------------------------------------------
512MB----- $29.42----- $27.86----- $24.23----- $22.68 $19.87
1GB----- $31.93----- $29.75----- $26.92----- $23.31 $21.74
2GB----- $62.99----- $57.89----- $52.47----- $49.57 $46.44
4GB----- $145.57----- etc
I want to let customer buy differnet size of memory stick in range of "Minimum Quantity", example: Minimum Quantity is 50. If customer buys 73 x 512MB also can chose other 1GB in price of "between 72 - 144". If he buy more than 144, other sizes of this product wille in 144 range and so on.
I was trying to use native quantity price breaks. But after fight with attributes and their quantities, i gave up. There is no way to let it work. After that I installed your mod. First of all i'd like to say thank you for really cool mod, but I still cannot get this to work. In a native price module there is option called " Discount Qty Applies to Mixed Attributes" and it work when Price by attributes is off. I think this mod is missing something simmilar.
Adam
-
Re: Quantity Discounts for 1.3
-
Re: Quantity Discounts for 1.3
Hi Scott and Hi Others
Now I am stuck. :-(
I Sell memory sticks. Want to use your quantity price breaks and maybe minimum quantity to accomplish this:
Example of 4 products. All products differences only memory size. Because of limitation quantity price breaks work with attributes I've been pushed to put them as a separate products than one with attribute "Memory"
-------------------------------------------------------------------------------------------
Capacity/Volume -----50-------------72------------ 144---------- 288---------- 576
-------------------------------------------------------------------------------------------
-----------512MB----- $29.42----- $27.86--------- $24.23----- $22.68----- $19.87
-----------1GB----- -- $31.93----- $29.75--------- $26.92----- $23.31 ----- $21.74
-----------2GB-------- $62.99----- $57.89--------- $52.47----- $49.57 ----- $46.44
-----------4GB------- $145.57----- etc
I want to let customer buy differnet size of memory stick in range of "Minimum Quantity", example: Minimum Quantity is 50. If customer buys 73 x 512MB also can chose other 1GB in price of "between 72 - 144". If he buy more than 144, other sizes of this product wille in 144 range and so on.
I was trying to use native quantity price breaks. But after fight with attributes and their quantities, i gave up. There is no way to let it work. After that I installed your mod. First of all i'd like to say thank you for really cool mod, but I still cannot get this to work. In a native price module there is option called " Discount Qty Applies to Mixed Attributes" and it work when Price by attributes is off. I think this mod is missing something simmilar.
Adam
-
Re: Quantity Discounts for 1.3
Opps, sorry for bumped post
-
Re: Quantity Discounts for 1.3
Will the quantity discount be available for 1.3.6? When I install the current version it changes the page on the admin.:smile:
-
Re: Quantity Discounts for 1.3
Huh? It works fine in 1.3.6 and 1.3.7.
Scott
-
Re: Quantity Discounts for 1.3
Must be me then. When I install... the editing box to the right of the modules in order-totals disappears. And, quantity discounts is not even in the list. Oh well, I will keep trying.
-
Re: Quantity Discounts for 1.3
Yikes, now I have it installed, I see a problem. With mine, the discount is per item/quantity. IOW - when someone buys 10 of anything on the site then each item is discounted. 1-9=2.00, 10-15=1.00 per item. How can I accomplish that?
-
Re: Quantity Discounts for 1.3
Quantity Discounts version 1.4 is now available, with infinite levels of {level, amount} pairs (not just the five from the admin screen), and additional marketing text functions get_discount_parms() and get_discounted_prices(). For sample code and screenshots of these new functions, see the help at http://www.thatsoftwareguy.com/zenca...html#marketing
Scott
-
Re: Quantity Discounts for 1.3
There is a small bug in version 1.4; please go to the bottom of the file and in the function
setup() comment out the call to add_extra_level_discount(). This was supposed to be
just an example and should be a comment.
Thanks,
Scott
-
Re: Quantity Discounts for 1.3
I HATE to be dense... But I've read this WHOLE thread and I still can't tell if this module calculates discounts the way my client has her store structured.. She offers her customer a discount on the total order if they purchase a certain number of a particular item.. For example:
Quantity ------- Discounted Price
2 --------------- $10.00 off order total (discount is subtracted from the total order BEFORE taxes
and shipping)
3 --------------- $20.00 off order total (discount is subtracted from the total order BEFORE taxes
and shipping)
4 or more ----- $40.00 off order total (discount is subtracted from the total order BEFORE taxes
and shipping)
The product discount feature that comes with Zen Cart won't let me do this.. Will this module allow me to do this??
-
Re: Quantity Discounts for 1.3
Did you try it?
Install it and use discount units = currency, total by item, and set the levels per your client's needs.
This seems to be what you want.
Scott
-
Re: Quantity Discounts for 1.3
Hiya, great mod, so do we still comment out
Code:
$this->add_extra_level_discount(100, 50);
on line 174.
Thanks
-
Re: Quantity Discounts for 1.3
Yes please do. I will fix this next time I update the software. This was just an oversight in
version 1.4.
Scott
-
Re: Quantity Discounts for 1.3
Thanks and thanks again for your mod. Will visit your site for more. :thumbsup:
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
swguy
Did you try it?
Install it and use discount units = currency, total by item, and set the levels per your client's needs.
This seems to be what you want.
Scott
I wanted to confirm it would do what I needed before I spent the time installing it.. Otherwise Plan B was to talk to my client about revamping her discount program.. Sounds like what you are saying is that your mod will do the discount calculation the way her current store works.. I'll give it a whirl and let you know if it works..
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
swguy
Did you try it?
Install it and use discount units = currency, total by item, and set the levels per your client's needs.
This seems to be what you want.
Scott
Okay I've installed this and it appears that it applies the discount across the board.. We want the discount to apply if a customer buys a certain number of a specific item in the store.. In other words
If a customer buys Item A and buys a certain quantity they will receive a discount which will vary depending on the quantity they buy.. But Item B doesn't have a quantity discount. So there is no discount no mater what quantity of Item B is purchased.
-
Re: Quantity Discounts for 1.3
Oh and I should add that the items which will be discounted are in a different cateory than the ones that will not be discounted..
I have looked and played and it doesn't appear that the default product discount function or this contribution will do what I need.. Am I coming to the correct conclusion??
-
Re: Quantity Discounts for 1.3
Just installed v1.4 on ZC 1.3.7
I have three discount levels applied to total quantity in cart. I set the following parameters 6, 12, & 20 % discount amounts with 100, 500, & 1000 discount levels.
I've tried different values for the above and regardless of what I enter there is always a 50% discount applied.
Thanks for any help. Looks like a fantastic contribution.
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
DivaVocals
Oh and I should add that the items which will be discounted are in a different cateory than the ones that will not be discounted..
I have looked and played and it doesn't appear that the default product discount function or this contribution will do what I need.. Am I coming to the correct conclusion??
No. You need to look at the functions function exclude_category() and
exclude_product() so that you can discount only what you want.
Please read the help.
Scott
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
airtime
Just installed v1.4 on ZC 1.3.7
I have three discount levels applied to total quantity in cart. I set the following parameters 6, 12, & 20 % discount amounts with 100, 500, & 1000 discount levels.
I've tried different values for the above and regardless of what I enter there is always a 50% discount applied.
Thanks for any help. Looks like a fantastic contribution.
The 50% discount is caused by the bug I reported in 1.4; please delete the
line of code in setup() that does
$this->add_extra_level_discount(100, 50);
I will fix this asap.
Scott
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
swguy
No. You need to look at the functions function exclude_category() and
exclude_product() so that you can discount only what you want.
Please read the help.
Scott
My bad..:blush: Reading is fundamental huh??? I skipped right over the rest of the Readme file assuming that everything could be tweaked from the Admin panel..:lamo:
Many apologies.. GREAT contribution BTW.. (should be part of core code if you ask me..) Plus my client is happy as happy can be that we don't have to change her discount program.. Thanks for your patience..
-
Re: Quantity Discounts for 1.3
Glad it worked out for you!
Scott
-
Re: Quantity Discounts for 1.3
The extra line in setup() which should have been deleted or commented out, as reported in post 67
Quote:
Originally Posted by
swguy
There is a small bug in version 1.4; please go to the bottom of the file and in the function
setup() comment out the call to add_extra_level_discount(). This was supposed to be
just an example and should be a comment.
has been fixed in version 1.5, which has just been installed in the downloads area. No other functional changes have been made in version 1.5; you do not need to upgrade as long as you have made this fix to version 1.4.
Thanks,
Scott
-
Re: Quantity Discounts for 1.3
swguy-
Please forgive me for not readin all 9 pages of the thread on your mod. Attribute it to fuzzy frum eye syndrome :shocking:
Does your mod have to be applied to every product in the store? In other words, if I want to have customers receive a $2.00 discount on any product in the store they buy over 1 regardless of what it is (for example dvd titles).
Say if all the dvds in the store are $13.00 (makes for an easier scenario). A customer buys 1 of title a for $13.00, then they buy 1 of title B, it then Goes in at $13.00 but with a discount of $2.00, then they buy one of item C, which goes in also at $13.00 with a discount of $2.00, etc.
So does your mod do that, and if so does it have to be entered on every product, or activated just once?
thank you,
betty
aka fuzzy eyes
-
Re: Quantity Discounts for 1.3
Download it and take a look at the help or look at the examples on my home page. You do not have to activate it on each product; it's very configurable. You can include or exclude products or categories in many ways.
Good luck,
Scott
-
Re: Quantity Discounts for 1.3
I have quantiy discounts set up per category or total number of items purchased basis..
Ok, why is the total on checkout step 2 of 3 different that the total in the side box Shopping cart [more].
Mark,
-
Re: Quantity Discounts for 1.3
Why are you showing the shopping cart sidebox on the checkout page?
But the answer to your question is that the shoping cart sidebox only
shows the subtotal from the shopping cart page, not all the other totals,
grossups and credits that you see on page 2.
-
Re: Quantity Discounts for 1.3
Thank you,
I will look into not showing the sidebox Shopping Cart [more] on checkout.
Mark,
-
Re: Quantity Discounts for 1.3
swguy, great mod its just what i was looking for. quick question though i need to have 12 discount levels i have read all the documentation in the package plus what is on your site. but i cant seem to figure out how to add more levels.
where and how do i add the extra levels. i saw the example at the bottom of ot_quantity_discount.php but im just not sure what to do, im kind of new to php.
thanks
-
Re: Quantity Discounts for 1.3
In setup() you will call
$this->add_extra_level_discount($quantity, $discount);
7 more times to get 12 levels.
-
Re: Quantity Discounts for 1.3
*L* that's all i just uncomment this line
$this->add_extra_level_discount(100, 50);
and add it 6 more times?
my mind is retarded, i always thing something is more complicated then it is it always turns out to be so much easier then i make it for myself.
thanks
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
bobbyt
*L* that's all i just uncomment this line
$this->add_extra_level_discount(100, 50);
and add it 6 more times?
Bingo! Adjust the quantities and discount amount to your requirements, and you're done. This also interoperates with the marketing text, so you should have no further changes.
Scott
-
Re: Quantity Discounts for 1.3
thanks alot, i appreciate the help i wish i had known it was as easy as that, i just never expect anything to be that easy.
thanks again and thanks for the mod its great.
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
haredo
Thank you,
I will look into not showing the sidebox Shopping Cart [more] on checkout.
Mark,
I could have sworn there was logic in the shopping cart sidebox to prevent it from being
shown on the checkout pages and the shopping cart page, but I just checked it and sure enough there isn't. Hmm.... guess I was remembering a customization someone had done.
-
Re: Quantity Discounts for 1.3
is it possible to use more then one discount level.
what im looking to do is set this up so that its based on the total of the items, but the same items not mixed.
say a customer buys
4 of the same item #45854
total for the 4 items is = 50.00
discount = 10.00
but say they also buy 4 of another item #58956
total for the 4 items is = 68.00
Discount = 13.50
so when they check out their total discount will be 23.50
i have played around with the settings and the exclude cat and item, but i don't seem to be having any luck.
is this possible and if so can someone point me in the right direction.
thanks a ton
-
Re: Quantity Discounts for 1.3
You don't want exclude cat and item, you want apply_special_category_discount and apply_special_item_discount. Examples are provided in the help on my home page.
Scott
-
Re: Quantity Discounts for 1.3
ok i will have a look i got a little confused with all the exits and customizations for this. thanks for the help.
-
Re: Quantity Discounts for 1.3
am i missing something here?
have set up one discount level in admin.
have added excluded categories in the .php file, but the discount is still being applied to all categories
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
stehodges
am i missing something here?
have set up one discount level in admin.
have added excluded categories in the .php file, but the discount is still being applied to all categories
are you sure you have entered the category id for exclusion ? Also, I believe it will only work on the parent category of products. So for example if you have:
Code:
CAT 1
|___ SUBCAT A
|___ SUBCAT B
|##########_ PRODUCT ABC001
|##########_ PRODUCT ABC002
You will need to enter the category id for SUBCAT B; entering CAT 1 ID will not work (to my knowledge)
-
Re: Quantity Discounts for 1.3
Thanks for the reply
I have tried that
I have 4 main categories, one of which has an ID of "37"
Within that category, there are many categories - ive tested a few with no luck.
I've even tried adding 37, and an id of one of the subcats - no luck
-
Re: Quantity Discounts for 1.3
stehodges, could you perhaps post the code you are using for the exclusion
-
Re: Quantity Discounts for 1.3
You can only specify a category with only products underneath it.
Scott