-
Re: Quantity Discounts for 1.3
I add 5 and get the discount ...
In the cart I see:
In the checkout_payment I see:
Quote:
Sub-Total: $675.00
Free Shipping Options (Free Shipping): $0.00
13% HST: $87.75
Total: $762.75
In the checkout_confirmation I see:
Quote:
Sub-Total: $675.00
Free Shipping Options (Free Shipping): $0.00
13% HST: $87.75
Total: $762.75
What were you wanting to see?
-
Re: Quantity Discounts for 1.3
You are using the native Quantity Discount in Zen Cart, not the Quantity Discount contribution. In the native Quantity Discount, the price is reduced in the cart. If you add 2 boxes of checks (the link you gave), you'll see the price is $165 rather than $175. So no discount is displayed as a line item; that's how the native Quantity Discount works.
-
Re: Quantity Discounts for 1.3
Thanks everyone! the problem was that the item was set to be priced by attributes and therefore didn't calculate the discount.
I did however install the contribution but couldn't figure setting the discount to a specific item.
-
Re: Quantity Discounts for 1.3
The Quantity Discounts contribution is not designed to apply a discount to a single item; it's designed to apply a discount to all items. If you want a quantity discount on a single item, you should use the built-in facility for doing this.
-
Re: Quantity Discounts for 1.3
I have an issue with quantity discounts and group discounts. I want to subtract the quantity discount from the order subtotal, compute the group discount on the result and subtract it from the subtotal. Then I want to add the shipping cost and compute tax on the result. When the tax is zero, everything is calculated properly, but when the tax is non-zero, the amount used to compute the group discount is wrong. It is too low by an amount equal to the tax on the quantity discount. The quantity discount amount itself is correct. I have the include tax control set to false and the recalculate tax control set to Standard for both quantity discount and group discount. Quantity discounts has a lower sort order than group discounts.
If I set the quantity discount control for tax recalculate to None, the quantity discount amount and group discount amounts are correct but the tax on the order is wrong, being too high. Any suggestions for setting the controls or is this a bug?
I'm using Zen Cart 1.5.1. Thanks in advance!
Dave
-
Re: Quantity Discounts for 1.3
-
Re: Quantity Discounts for 1.3
Works great! Thanks for the quick response.
Dave
-
Re: Quantity Discounts for 1.3
Hello. This is probably a really stupid and basic question. And I have read the documentation and...well and least some of the posts. I have 2 products of Jeans. Jeans A and Jeans B. both are RRP $59.95. I want to be able to provide a discount of $9.95 if the customer buys four of either Jeans A or Jeans B or a combination of both eg: 2 of Jeans A and 2 of Jeans B. Is this Mod capable of doing this- I understood it could? I have installed the module no problems. But for the life of me cannot work out how to apply the module to these products!? Surely the discount does not apply to every product in the store.?
-
Re: Quantity Discounts for 1.3
Actually, the discount *does* apply to every item in the store. :)
-
Re: Quantity Discounts for 1.3
If you downloaded Quantity Discounts in the last 3 weeks, please make this small change to ./includes/modules/order_total/ot_quantity_discount.php - at the bottom of the file in the function setup() change
Code:
$this->add_extra_level_discount(500, 55);
to
Code:
// $this->add_extra_level_discount(500, 55);
i.e. comment the line out - this was only intended as example code. Thanks to Tim Lester for spotting this.
-
Re: Quantity Discounts for 1.3
Is it possible to exclude all categories except for specific categories (without listing every category to be excluded)?
-
Re: Quantity Discounts for 1.3
^^^
It's ok, I figured this out.
-
Re: Quantity Discounts for 1.3
Another question. Is there a way to only show the discount table for products in the categories not excluded? Due to the high number of products in the two categories I need this particular mod for I would prefer to use this mod, if possible, over the zencart discount feature.
-
Re: Quantity Discounts for 1.3
Alright, found the answer to that question as well.. can't be done it appears, it will either show on tpl_product_info_display or it won't.
-
Re: Quantity Discounts for 1.3
Could we run two copies of the script to produce two different scenarios?
First one uses a category and pricing structure of buy 2 get one free (and that scaled for the 5 discounts)
Second one to use a load your cart with 8 items get 20% off your order (then scale for the 5 discounts)
-
Re: Quantity Discounts for 1.3
Hello! I am unble to find the answer to my question so I will post it here:
As of now
Code:
// 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, currency, currency/item) are also used here.
function apply_special_category_discount($category, $count, &$disc_amount) {
switch ($category) {
case 66:
if ($count > 1) {
$disc_amount = 30;
}
break;
What do I have to do to get the next level of discount within the same category? I'd like to have (buy 2, get 30% off, buy 3 get 50% off)
EXAMPLE
case 66:
if ($count > 2) {
$disc_amount = 50;
}
break;
-
Re: Quantity Discounts for 1.3
Code:
switch ($category) {
case 66:
if ($count >= 3) {
$disc_amount = 50;
} else if ($count == 2) {
$disc_amount = 30;
}
break;
-
Re: Quantity Discounts for 1.3
I installed your module. I noticed the discount will be shown in checkout page. can the discount be shown on cart page? I mean the discount will be reduced at cart page rather than at checkout page. If so, how? Thanks for your reply!
-
Re: Quantity Discounts for 1.3
Brilliant Module, just have a few questions (had loads but found out most answers in this thread - thanks).
Can I remove the quantity discount box from categories where I offer no discount (currently it shows the box and heading on everything, even when no discounts set-up).
How do I change the text at checkout from Quantity Discount to something else? (searched on here and tried developers tool kit search but cannot find where the text is coming from - is not a link on my checkout if that makes any difference).
I'm using 1.3.9h
Thanks
-
Re: Quantity Discounts for 1.3
Question 2: change includes/languages/english/modules/order_total/ot_quantity_discount.php
Question 1: See note #3 after the marketing text examples.
http://www.thatsoftwareguy.com/zenca...html#marketing
-
Re: Quantity Discounts for 1.3
-
Re: Quantity Discounts for 1.3
Hi,
I am using the Swipe HQ payment module, I also have quantity discounts installed. For some reason on the order confirmation e-mail the discount gets taken of the total twice - it doesn't do this anywhere else, just on the confirmation e-mail and only when using the swipeHQ payment module.
Below is the code I believe to be responsible for sending the order confirmation e-mail from the swipehq module:
//send emails
if (!empty($_REQUEST['user_data'])) {
$order_id = $_REQUEST['user_data'];
if (!empty($_SESSION['swipehq_order_' . $order_id])) {
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
require_once('includes/languages/english/checkout_process.php');
require_once(DIR_WS_CLASSES . 'order.php');
require_once(DIR_WS_CLASSES . 'payment.php');
$payment_class = new payment($_SESSION['payment']);
$order = unserialize($_SESSION['swipehq_order_' . $order_id]);
require_once(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;
$order_totals = $order_total_modules->process();
$order->send_order_email($order_id, 2);
$zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL');
}
}
For some reason this is causing zencart to take the discount of the total twice (but only on the order confirmation e-mail).
Below is an example of what the confirmation e-mail looks like:
Sub-Total: $135.60
Fastways Courier
(Delivery to 2110 - Please allow 2-3 working days for delivery once payment has been confirmed1 box(es) 1.16kg(s)): $4.50
Quantity Discount: -$6.78
GST: $16.52
Total: $126.54 (This should be $133.32, but instead of the correct discount of 6.78 being applied, 13.56 is being taken of the total)
I have e-mailed SwipeHQ re this, but they say it is due to the mods I have installed and can't help.
I believe it is the code below that is causing the problem, but can't figure out what I could change to get the confirmation e-mail sent with the correct total.
require_once(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;
$order_totals = $order_total_modules->process();
Any help would be very appreciated.
Thanks,
Mike.
-
Re: Quantity Discounts for 1.3
You're going to have to do some debugging. Start printing out the variables after the line that says $order = unserialize($_SESSION['swipehq_order_' . $order_id]);
and see where things are going awry.
-
Re: Quantity Discounts for 1.3
Hi,
Sorry, I am not very good at PHP - I tried using print_r and echo to print the variables, but it is just causing the site to crash. How do I go about printing variables?
(I have also check Zencarts error log but there is nothing coming up in there).
Thanks,
Mike.
-
Re: Quantity Discounts for 1.3
Hi again,
Just found this post: http://www.zen-cart.com/showthread.p...tudy-variables, I will give some of the suggestions here a go and report back. Thanks for pointing me in the right direction Scott.
Regards,
Mike
-
Re: Quantity Discounts for 1.3
Hi again,
Below is the contents of the order_total array being used for the confirmation e-mail.
order_total Object
(
[modules] => Array
(
[0] => ot_subtotal.php
[1] => ot_shipping.php
[2] => ot_quantity_discount.php
[3] => ot_tax.php
[4] => ot_total.php
)
)
</pre><br><br> <pre>Array
(
[0] => Array
(
[code] => ot_subtotal
[title] => Sub-Total:
[text] => $135.60
[value] => 135.6
[sort_order] => 100
)
[1] => Array
(
[code] => ot_shipping
[title] => Fastways Courier (Delivery to <b>2110</b> - Please allow 2-3 working days for delivery once payment has been confirmed<br>1 box(es) 1.16kg(s)):
[text] => $4.50
[value] => 4.49995
[sort_order] => 200
)
[2] => Array
(
[code] => ot_quantity_discount
[title] => Quantity Discount:
[text] => -$6.78
[value] => 6.78
[sort_order] => 295
)
[3] => Array
(
[code] => ot_tax
[title] => GST:
[text] => $16.52
[value] => 16.51695
[sort_order] => 300
)
[4] => Array
(
[code] => ot_total
[title] => Total:
[text] => $126.54
[value] => 126.53995
[sort_order] => 999
)
All information is correct with the exception of the total. I can only assume that the swipehq code is somehow telling the order_total module to take the discount of the total twice - although I can't figure out where or how. Any ideas?
Thanks,
Mike
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
mikecnz
I have e-mailed SwipeHQ re this, but they say it is due to the mods I have installed and can't help.
I'll bet you the same thing happens if you use the (built in) Group Discounting module, btw.
Try this: Instead of creating a new $order_total_modules, unserialize it the way you unserialize the order (you would of course have to serialize it when you serialize the order too).
-
Re: Quantity Discounts for 1.3
Hi Scott,
You were correct in your assumption. I have been talking with SwipeHQ about your suggestion, but have been stonewalled. I tried to work it out myself but couldn't get it to work (mostly because it was trial and error and I really don’t know what I am doing).
The other thought I had was would it be possible to pull the information from the database (like the admin invoice does)? I've look at the tables but can't find where the quantity discount is recorded.
Thanks,
Mike.
-
Re: Quantity Discounts for 1.3
It's in the order totals table. Sorry they're not cooperating - did you tell them the same problem will exist with built-in Group Discounts?
-
Re: Quantity Discounts for 1.3
Thanks, I obviously didn't look far enough through the orders to find one that qualified for a discount (silly me)
Yes, I mentioned to them that the issue wasn't just with the mod, I think they are just to busy to care at the moment.
Could I perhaps try something likes this:
$order_totals = $db->Execute("select , text, from " . TABLE_ORDER_TOTALS . "
where orders_id = '" . (int)$oID . "'");
Although now that I have written that it doesn't look like it would work.
Regards,
Mike.
-
Re: Quantity Discounts for 1.3
Thanks for the help - one more question...
I am trying to add discounts to a third category using this module but I cannot get the 'quantity discount' box to show up in this new category. I have added the following text to: /public_html/includes/modules/order_total/ot_quantity_discount.php
Code:
case 102:
if ($count > 29) {
$disc_amount = 15;
} elseif ($count > 19) {
$disc_amount = 10;
} elseif ($count > 9) {
$disc_amount = 5;
}
break;
Is there somewhere else I need to 'activate' this so that the discount box will show up?
It still shows on my two other categories (which have the discounts listed on the same ot_quantity_discount page) but just not this third one.
Thanks
-
Re: Quantity Discounts for 1.3
It's ok, have got it sorted now.
It won't let me delete the last post tho.
-
Re: Quantity Discounts for 1.3
I have installed the module, but i have searched for ages?
Sure i am being stupid but where in the admin panel is the configuration for the discounts setup
-
Re: Quantity Discounts for 1.3
Use admin-modules-order total-quantity discounts - edit to set the configuration. It applies to the whole cart.
-
Re: Quantity Discounts for 1.3
Hi Scott,
I'm using Zencart 1.5.1 and Quantity Discounts 1.12. I've read http://www.thatsoftwareguy.com/zenca...discounts.html and tried searching the forum.
I have "Display Prices with Tax" = true (in Admin->Configuration->My Store) as I want to display prices including UK VAT.
On my test product info page (http://tinyurl.com/lkeo9hr), you will see that I've plonked on your codes for Quantity Discounts Marketing Example 1 and 4. The prices displayed currently do not include VAT.
How do I get it to display the prices including vAT?
Many thanks!
-
Re: Quantity Discounts for 1.3
Edit the file includes/modules/order_total/ot_quantity_discount.php and go to the function get_discounted_prices.
Where the call to $this->print_amount is made, switch that to
$currencies->display_price($disprice, zen_get_tax_rate($product_info->fields['products_tax_class_id']));
(Note that you will need to look up the tax class id - i.e.
$sql = "SELECT products_tax_class_id FROM " . TABLE_PRODUCTS . " WHERE products_id = " . (int)$product;
$product_info = $db->Execute($sql);
-
Re: Quantity Discounts for 1.3
Thank you so much for the quick reply. I'm not a programmer so this is what I think I should do if I understand your reply correctly. Apologies in advance if I'm taking things too literally.
My tax class id is 1.
In the file includes/modules/order_total/ot_quantity_discount.php, I need to replace
$priceinfo[$pos]['price'] = $this->print_amount($disprice);
with
$priceinfo[$pos]['price'] = $currencies->display_price($disprice, zen_get_tax_rate($product_info->fields['products_tax_class_id']));
$sql = "SELECT products_tax_class_id FROM " . TABLE_PRODUCTS . " WHERE products_id = 1 " . (int)$product;
$product_info = $db->Execute($sql);
Bet I got that wrong!
-
Re: Quantity Discounts for 1.3
It didn't work. Tried different combinations too. Sorry to bother you but would really appreciate a dumbed down version. :) Thanks
-
Re: Quantity Discounts for 1.3
change
$priceinfo[$pos]['price'] = $this->print_amount($disprice);
to
$priceinfo[$pos]['price'] = $currencies->display_price($disprice, zen_get_tax_rate(1));
-
Re: Quantity Discounts for 1.3
Thank you for your patience Scott.
I did exactly as you suggested (twice. I made sure I used an unmodified includes/modules/order_total/ot_quantity_discount.php from the zipped file). I'm now getting a blank where the pricing has dissapeared with the buy button at http://tinyurl.com/lkeo9hr
-
Re: Quantity Discounts for 1.3
ah ok. at the top of the function add
Code:
global $currencies;
So you have
Code:
function get_discounted_prices($product, $category) {
global $currencies;
-
Re: Quantity Discounts for 1.3
You're a star Scott. It worked! Thank you very much!
-
2 Attachment(s)
Re: Quantity Discounts for 1.3
Hi,
In our store, we offer quantity discounts on all products dependent on the quantity purchased (set in Categories Quantities Discounts ).
The price is discounted correctly in the Quantity Box on the product page. But my only issue is that it's not discounted in the cart. Please refer to the following picture:
Attachment 13369
Attachment 13370
The cart calculation is just based on base price, but not on discount price. I wonder if it has something to do with the cart and checkout calculating the discount differently?
Any suggestions would be greatly appreciated.
Eric
-
Re: Quantity Discounts for 1.3
@Eric, this is the support thread for my Quantity Discounts mod
http://www.zen-cart.com/downloads.php?do=file&id=135
which is different from Numinix's mod
http://www.zen-cart.com/downloads.php?do=file&id=1485
And it appears you are using his rather than mine.
In any event, both are order total modules, which means the customer doesn't see the discount until they check out.
-
Re: Quantity Discounts for 1.3
We have a report from a TaxCloud merchant that has recently installed Quantity Discounts:
"Rather than applying the discount to the sub-total, adding shipping, and then calculating the tax (as it should) Quantity Discounts is adding the sub-total and shipping together, calculating the tax, and then applying the discount."
This observation is correct.
It is important that the discounts are applied to each item and not as a separate line item on the checkout page.
For example, let’s say you have a promotional offer of $10 off a $50 order. If a customer is purchasing two items totaling $50 (each with a sales price of $25), you will need to divide the $10 discount between those items (adjusting the sales price for each item to $20). Only after the discount has been applied can one determine the sales tax amount due.
Furthermore, and this is the issue provoking this post, combining shipping amount with the subtotal will prevent proper determination of tax because shipping is NOT always taxable.
-
Re: Quantity Discounts for 1.3
Quantity Discounts does not include shipping. Furthermore, it does not apply discounts to individual items. That's the point of an Order Total module. It applies the discount to the total. If you need per item discounting, you will need to use Sales, Specials or the Native Quantity Discounting mechanism in Zen Cart.
-
Re: Quantity Discounts for 1.3
Hello Doodlebuckets,
I am wondering if you are first of all still there as this post is a few years old! If so, did you ever get your answer regarding if the discounted price per category can somehow be manually entered instead of a percentage? Your question matches mine almost word for word as I have a similar situation with my pricing tiers at my online store. I want to simply add the discounted price without relying on the calculator to create the new pricing tier since it is not giving the result I need.
Thanks and I look forward to hearing from you,
Scott( a different Scott than in this thread :)
-
Re: Quantity Discounts for 1.3
You aren't limited to discount by percentage - you can discount by a currency amount.
-
Re: Quantity Discounts for 1.3
Quantity Discounts works fine in Zen Cart 1.5.2 and 1.5.3.
-
Re: Quantity Discounts for 1.3
Hello,
Hopefully I'm posting this the right way in the correct thread. I am using Zen Cart v1.3.9h with the swguy Quantity Discounts mod. When I installed the mod, I ran a number of test orders to confirm it calculated the discounted price correctly for different order sizes, but I didn't complete the order and charge a credit card.
Today the first customer purchased enough items to qualify for the quantity discount. The discount calculated correctly and was reflected in the order total in the shopping cart and on the order record I see now in ZC. When the customer's credit card was charged, however, it was charged for the undiscounted amount. What could cause this? I searched the forum and didn't find a similar issue.
Thanks for your assistance.
Jeff
-
Re: Quantity Discounts for 1.3
Which credit card integration are you using?
-
Re: Quantity Discounts for 1.3
I'm using the Authorize.net (AIM) module.
-
Re: Quantity Discounts for 1.3
Are you using the official one from Zen Cart? This is the first time I have heard of this problem in Zen Cart. In osCommerce it was a huge problem because people would grow their own payment modules without taking into account order totals.
-
Re: Quantity Discounts for 1.3
Yes, I am using the one that came with the Zen Cart software. I downloaded the full version of the software from the Zen Cart site and installed it myself (not using my hosting company's automated install).
In case it's relevant, I am also using the TaxCloud module to calculate in-state sales tax, though this customer was out of state so there was no sales tax charged.
-
Re: Quantity Discounts for 1.3
I would be grateful for any help with trying to display the right marketing text for two parent categories which uses the function apply_special_category_discount. I've read and re-read the detailed documentation and still don't know how to add logic to the get_discount_parms() method I'm using from Quantity Discounts to reflect my category exceptions.
All my other products use Total By Item discount basis as follows:
Quantity Discount
2 - 9 10%
10 - 39 15%
40 + 20%
Parent categories 16 & 22 uses the following discount basis
2 - 9 10%
10 + 15%
This is what I've done:
1. Apply_special_category_discount() in includes/modules/order_total/ot_quantity_discount.php
Code:
function apply_special_category_discount($category, $count, &$disc_amount) {
switch($category) {
case 16:
case 22:
if ($count >= 10) {
$disc_amount = 15;
} else if ($count >= 2) {
$disc_amount = 10;
}
break;
}
}
2. As many of my products are linked and I've made the two changes to includes/templates/MYTEMPLATE/templates/tpl_product_info_display.php as advised in http://www.thatsoftwareguy.com/zenca...issues.html#mt
Has anyone managed to get this working?
-
Re: Quantity Discounts for 1.3
You have to hardcode the marketing text for these exception cases. The get_* functions can't reverse engineer your logic in the apply_special functions.
-
Re: Quantity Discounts for 1.3
The help page has been updated with an example of this.
-
Re: Quantity Discounts for 1.3
Thank you so much Scott! I appreciate the example which worked when I cut and paste.
Scott, I realised that my apply_special_category_discount isn't working. I've checked and checked to see if I've got my syntax wrong or missed something but don't seem to. All I've done for this is ammend includes/modules/order_total/ot_quantity_discount.php to
Code:
function apply_special_category_discount($category, $count, &$disc_amount) {
switch($category) {
case 16:
case 22:
if ($count >= 10) {
$disc_amount = 15;
} else if ($count >= 2) {
$disc_amount = 10;
}
break;
}
}
I've tested it by adding my basket with 50 products and the discount is showing as 20% (which is default for all other products) and not 15% for this category. I feel as thick as two planks!
Thank you for your patience.
-
Re: Quantity Discounts for 1.3
Go to the FAQ for Quantity Discounts and look at the link "Category Issues." Either your master categories id is not set the way you think it is (sometimes happens when EZ Populate is used) or you aren't clear on what "category" means for Quantity Discounts (it means master category).
-
Re: Quantity Discounts for 1.3
Thank you for the quick reply Scott. I've read the Category Issues http://www.thatsoftwareguy.com/zenca...issues.html#mt a few times and read it again a couple of times and realised that I was using a linked category (master_categories_id = 16) which I've removed and checked that the one I'm using (master_categories_id = 22) is correct.
includes/modules/order_total/ot_quantity_discount.php now shows
Code:
function apply_special_category_discount($category, $count, &$disc_amount) {
switch($category) {
case 22:
if ($count > 10) {
$disc_amount = 15;
} else if ($count > 2) {
$disc_amount = 10;
}
break;
}
}
It still doesn't seem to be working. E.g. if I add a quantity of 50 to this product from category id 22 - http://tinyurl.com/kzhgamj, I'm getting 20% discount (default discount for all other categories) instead of 15%. I'm using Fast and Easy Checkout module and I don't think that matters in this case. I've read the installation notes again. Going to take a break. It's so straightforward with detailed documention and I'm pulling my hair out!
-
Re: Quantity Discounts for 1.3
Hmmm.... one thing you may not have considered - this exit only works for Total by Category - have you checked your Discount Basis setting in Admin->Modules->Order Total?
-
Re: Quantity Discounts for 1.3
That was it! Mine was set at Total by Item so when I changed it, everything works as expected! Thank you so much Scott. I've sent you a small donation as a token of my appreciation for your superb and expert support.
-
Re: Quantity Discounts for 1.3
-
Re: Quantity Discounts for 1.3
Greetings All,
I know there was discussion about working with sub-categories, but not sure if that has been implemented. So, quick question before I install.
I have several sub-categories under one parent category and wish to apply a discount by percent if 10 or more item are purchased, in total, form any of the sub-categories.
Can Quantity Discounts be configured to apply discounts when combining item purchased from sub-categories under a parent category?
Thanks :D
-
Re: Quantity Discounts for 1.3
You can't easily do this with Quantity Discounts. Please see your PM for other ideas.
-
1 Attachment(s)
Re: Quantity Discounts for 1.3
I have an odd error I couldn't find mentioned in the thread. Our discount appears on the invoice as a line item, and it is deducted from the amount charged to the client through authorize.net correctly, but the invoice itself doesn't reflect the true total AFTER the discount. I'm attaching a picture of it. What could cause this?
Attachment 14934
-
Re: Quantity Discounts for 1.3
What admin module did you screenshot? (What's in the address bar?) For example if it's edit orders or super orders, some versions of those utilities need updates to correctly reflect my discounts. Details:
http://www.thatsoftwareguy.com/blog/...counting-mods/
-
Re: Quantity Discounts for 1.3
It shows that way in edit orders (the original regular edit button), in edit orders (super orders I believe) invoice and packing slip and details... does that help? We do have an edit orders add-on though, so maybe that effects everything?
-
Re: Quantity Discounts for 1.3
Please take a screenshot of invoice or packing slip that shows the browser's address bar (the space where you type in the URL).
-
1 Attachment(s)
Re: Quantity Discounts for 1.3
Here you go, thanks so much! This is the invoice page.Attachment 14945
-
Re: Quantity Discounts for 1.3
I have no idea. I have never seen this situation. I would have to analyze your site to figure out what's going on.
-
Re: Quantity Discounts for 1.3
Is there a place I can send you login information?
-
Re: Quantity Discounts for 1.3
Please see your PM if you want to hire me.
-
Re: Quantity Discounts for 1.3
I have just installed this and I think I have an issue as I am also using Reward Points Module.
No discount is showing at all in the checkout pages.
Could this be the case?
-
Re: Quantity Discounts for 1.3
They don't interfere with each other. How have you configured Quantity Discounts?
-
Re: Quantity Discounts for 1.3
I was aiming at discounting each product by 10p when hitting over £18 total, 20p each for over £36 etc
Include Tax
true
Re-calculate Tax
VAT
Discount Units
currency
Discount Basis
Total By Item
Counting Method
currency
Discount Level 1
18
Discount Amount 1
0.10
Discount Level 2
36
Discount Amount 2
0.20
Discount Level 3
72
Discount Amount 3
0.3
-
Re: Quantity Discounts for 1.3
I suspect you want Discount Basis = Total Items in Cart. Right now it is saying if you spend over L18 on a per item basis, you get this discount.
-
Re: Quantity Discounts for 1.3
even if I change the value to
Total Items in cart
Counting method - Currency
Discount level 1 - 3
Discount amount - 5
the total still remains the same in the cart.
-
Re: Quantity Discounts for 1.3
Just realised this is in the wrong thread.
I have version 1.5.1 so will post there.
-
Re: Quantity Discounts for 1.3
It's called "for 1.3" because it was created when 1.2 was still in widespread use. It works fine in 1.5. You have some sort of issue (likely related to another mod or other change) in your cart that is preventing it from working; you're going to have to get someone to look in detail at your site. I can't debug this sort of thing over the forum.
-
Re: Quantity Discounts for 1.3
I have started again and the discount is now working once you are signed in and checking out.
If you are not logged in there is no sign of any discount at all in the shopping cart or elsewhere.
I'm assuming this is due to the Reward points shopping cart being used and not the standard one.
Is there a way of showing a table or displaying the fact that the more you buy, the more you save?
-
Re: Quantity Discounts for 1.3
ah ok I misunderstood your issue. Yes, order totals are not shown until checkout time. With my stuff, you can use Discount Preview if you want to change this behavior.
To see ways to display the discount on the product info page, go to my site and look at the Quantity Discounts Help page. There are many methods shown. This is called the marketing text for Quantity Discounts.
http://www.thatsoftwareguy.com/zenca...html#marketing
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
swguy
ah ok I misunderstood your issue. Yes, order totals are not shown until checkout time. With my stuff, you can use Discount Preview if you want to change this behavior.
To see ways to display the discount on the product info page, go to my site and look at the Quantity Discounts Help page. There are many methods shown. This is called the marketing text for Quantity Discounts.
http://www.thatsoftwareguy.com/zenca...html#marketing
That's what I'm looking for.
Thanks.
-
Re: Quantity Discounts for 1.3
One more question, the marketing text is showing the best price without vat.
Is there a way of showing it including vat at all?
Also I received your PM and will reply (eventually)
-
Re: Quantity Discounts for 1.3
You'd have to write the code; nothing is built in.
-
Re: Quantity Discounts for 1.3
Hi,
How can I changes total price, such that - buy any three product for $29
product A = $19
product B = $20
product C = $21
Total for all three (offer price) = $29
Please help!
Thanks.
-
Re: Quantity Discounts for 1.3
Quantity Discounts doesn't do this sort of thing. See PM for other ideas.
-
Re: Quantity Discounts for 1.3
Grr. I have updated my site to responsive and lost my marbles.
I have 23 products (wax melts) in a sub category no 58.
Currently at 40p each but then if you buy a MIX of 14 of these products i want to charge 35p and 28 at 32p.
There is nothing else in this category but there are products in its parent category that i dont want to discount.
I have set the discount basis by category but am struggling with the code. Am i correct in altering the ot_quantity_discount.php file in the includes/modules/order_total folder.
If i am where do i alter the code as im struggling to get this to work?
-
Re: Quantity Discounts for 1.3
See your PM for suggestion.
-
Re: Quantity Discounts for 1.3
Just for future info if anyone is reading this.
I have bitten the bullet and paid for swguys table discount.
This is the only way i could get things to work correctly after trying nearly everything else.
-
Re: Quantity Discounts for 1.3
If you wish to style "quantity discount" text in your admin order pages, add td.ot-quantity-discount-Text to your admin\includes\stylesheet.css
either in here
Code:
td.ot-subtotal-Text,td.ot-cod-fee-Text,td.ot-total-Text,td.ot-group-pricing-Text,td.ot-gv-Text,td.ot-loworderfee-Text,td.ot-shipping-Text,td.ot-subtotal-Text,td.ot-tax-Text,td.ot-coupon-Text,td.ot-quantity-discount-Text{
font-weight:bold;
}
or as a separate entry
Code:
td.ot-quantity-discount-Text[/COLOR]{font-weight:bold;}
hope this helps.
-
Re: Quantity Discounts for 1.3
How would I duplicate quantity discounts?
-
Re: Quantity Discounts for 1.3
discount_1.12 is marked as up to zen_cart 1.5.3
Will it work for 1.5.5a?
Did anyone try already?
-
Re: Quantity Discounts for 1.3
It works for all versions of Zen Cart.
-
Re: Quantity Discounts for 1.3
Version 1.5.5b clean install with demo products. PHP 5.6.23 MySQL 5.5.52 Apache 2.4.18
Dropped in the latest mod's includes folder in the root of haredoDOTcom/155b.
Edited the tpl_product_info_display.php to include the example 2 statement.
Installed in the admin with settings of:
- true
- 295
- false
- Standard
- currency
- Total by Item
- items
- 2
- 2.5
- 3
- 5
- 0
- 0
- 0
- 0
- 0
- 0
Discount shows up as advertised on all items in the shop.
Next, tried to exclude the Swat 3: Close Quarters Battle Linked item under Software :: Simulation.
The product_id is 21 and the master category ID is 18.
Have tried:
- Adding case 18: to the category exclusion list
Code:
// Add categories you wish to exclude to this list. // Go to Admin->Catalog->Categories/Products and look
// at the left hand side of the list to determine
// category id. Note that 99999 and 99998 are just given
// as examples.
function exclude_category($category) {
switch ($category) {
case 18:
case 99999:
case 99998:
return true;
}
return false;
}
- Adding case 21: to the product exclusion list
Code:
// Add products you wish to exclude to this list. // Go to Admin->Catalog->Categories/Products->[Your category]
// and look at the left hand side of the list to determine
// product id. Note that 99999 and 99998 are just given
// as examples.
function exclude_product($id) {
switch ($id) {
case 21:
case 99999:
case 99998:
return true;
}
return false;
}
- Adding case 18: to the category exclusion list AND adding case 21: to the product exclusion list.
Code:
// Add categories you wish to exclude to this list. // Go to Admin->Catalog->Categories/Products and look
// at the left hand side of the list to determine
// category id. Note that 99999 and 99998 are just given
// as examples.
function exclude_category($category) {
switch ($category) {
case 18:
case 99999:
case 99998:
return true;
}
return false;
}
// Add products you wish to exclude to this list.
// Go to Admin->Catalog->Categories/Products->[Your category]
// and look at the left hand side of the list to determine
// product id. Note that 99999 and 99998 are just given
// as examples.
function exclude_product($id) {
switch ($id) {
case 21:
case 99999:
case 99998:
return true;
}
return false;
}
None of these combinations managed to exclude the discount listing from the Swat 3: product listing.
Where might we be going wrong?
-
Re: Quantity Discounts for 1.3
You have to add logic to the marketing text if you are using the user exits. This is explained in note 3.
http://www.thatsoftwareguy.com/zenca...html#marketing
-
Re: Quantity Discounts for 1.3
Thanks that was the fix ...
Happy Thanksgiving Scott ...
Mark,
-
Re: Quantity Discounts for 1.3
Is there a way to specify a price per item rather than a discount percentage? We'd like to offer a '5 for $5 each' sale for certain products in one category. A purchase of any five of them would change the price to $5 each. I don't see any way to do that with the Quantity Discount plugin, but perhaps I just haven't read the notes closely enough.
-
Re: Quantity Discounts for 1.3
Quantity Discounts doesn't do this. If you want to look on my site at Free Gift Chooser, it does things like this.
-
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
swguy
Quantity Discounts doesn't do this. If you want to look on my site at Free Gift Chooser, it does things like this.
That appears to be only for osCommerce, though, not ZenCart.