If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Order Total Modules / Quantity Discounts for 1.3

Quantity Discounts for 1.3

Started by swguy on 13 Aug 2006, 10:22 AM · Views: 226,694

Results 561 to 580 of 847
1 Sep 2010, 4:18 PM
#561
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,758
Plugin Contributions:
56

Quantity Discounts for 1.3

You can't do any of this with Quantity Discounts.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

1 Sep 2010, 5:02 PM
#562
sports_guy avatar

sports_guy

Totally Zenned

Join Date:
Apr 2007
Location:
Dayton, Ohio
Posts:
682
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Do you have a paid module that does?

Building a better web, one site at a time: Dayton Web Design

1 Sep 2010, 5:26 PM
#563
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,758
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

Please email me. I would have contacted you but you have turned off both PMs and email, which is probably not what you want if you're asking questions on a forum.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

16 Sep 2010, 10:46 PM
#564
stevelucky avatar

stevelucky

New Zenner

Join Date:
Jun 2010
Posts:
44
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I'm running into problems where the discount is not calculated correctly under some random circumstances. I currently have it set to give a 20% discount if 2 items are purchased, a 30% discount if 3 items are purchased, a 40% discount if 4 items are purchased and a 50% discount if 5 items are purchased. On a few random occasions, a person will by 5 items, but only receive a 20% OR 30% discount, or somewhere in between. For example, I just had a sale where the customer bought 4 items which should have qualified them for a 40% discount. The items totaled $55.96 USD. The quantity discount given was $10.79 which works out to be about a 19.3% discount. Since I've been monitoring this over the last 2 days, it's happened a handful of time, while still working correctly most of the time. Why in the world would this happen?

P.S. - There were no other coupons or discounts involved.

16 Sep 2010, 11:22 PM
#565
stevelucky avatar

stevelucky

New Zenner

Join Date:
Jun 2010
Posts:
44
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Upon further discovery, it looks like it's just randomly not calculating one of the items purchased. It's not one specific item as that item will work fine for others. In the above example, The person purchased 4 things which should have given them a 40% discount, but it didn't count one of the items (which cost $9.99), thus only giving them a 30% discount on the 3 items, but charging full price on the 4th. Any ideas?

17 Sep 2010, 12:03 AM
#566
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,758
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

Are you using category based discounting, and if so have you checked the master category id field of the item in question?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

17 Sep 2010, 2:30 AM
#567
stevelucky avatar

stevelucky

New Zenner

Join Date:
Jun 2010
Posts:
44
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

swguy:

Are you using category based discounting, and if so have you checked the master category id field of the item in question?

Brilliant. It was supposed to be set to calculate by total items in cart. A minor detail that made a major difference. Thanks!

23 Sep 2010, 10:54 AM
#568
philibel avatar

philibel

Zen Follower

Join Date:
Mar 2008
Location:
Belgium
Posts:
120
Plugin Contributions:
3

Re: Quantity Discounts for 1.3

Zen-Cart 1.3.8
quantity_discount version 1.8

It works fine but I get a strange display as you can see in the attachment.

Is there an error in the php?

    function process() {
       global $db, $order, $currencies;
       $od_amount = $this->calculate_deductions();
       if ($od_amount['total'] > 0) {
         reset($order->info['tax_groups']);
         while (list($key, $value) = each($order->info['tax_groups'])) {
           $tax_rate = zen_get_tax_rate_from_desc($key);
           if ($od_amount[$key]) {
             $order->info['tax_groups'][$key] -= $od_amount[$key];
             $order->info['total'] -=  $od_amount[$key];
           }
         }
         $order->info['total'] = $order->info['total'] - $od_amount['total'];
         $this->title = '<a href="javascript:alert(\'' . $this->explanation . '\');">' . $this->title . '</a>'; 
         $this->output[] = array('title' => $this->title . ':',
         'text' => '-' . $currencies->format($od_amount['total'], true, $order->info['currency'], $order->info['currency_value']),
         'value' => $od_amount['total']);
   
       }
    }

Because the text that one can read:

<a href="javascript:alert( inside the box should not be there.
**Hoeveelheidskorting:'> ** is under the box and only Hoeveelheidskorting: has has to displayed and in the box.

Furthermore and that is the big problem <a href="javascript:alert( triggers a Forbidden page on the server when I want change the status of the order. Removing the ( fixes it.
Also I have to type a - in front of the amount or it will add the discount in stead of deducting it.

So far I always fix it manually but if it would be automatic, it would be nicer.

23 Sep 2010, 11:08 AM
#569
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,758
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

Please get the latest version of Quantity Discounts from the Free Software Add Ons section.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

23 Sep 2010, 11:25 AM
#570
philibel avatar

philibel

Zen Follower

Join Date:
Mar 2008
Location:
Belgium
Posts:
120
Plugin Contributions:
3

Re: Quantity Discounts for 1.3

Will that fix it all?

Something I just found by looking at de code the browser gets:

<td align="right" class="smallText">
<input name="update_totals[4][title]" size="219" value="<a href="javascript:alert(" uw="" huidige="" hoeveelheidskorting\n\n="" 5="" speciale="" wierookstokjes="" produkten@€7.50="" *="" 33.3333%="€2.50" (totaal="€2.50)\n\n\n\nTotale" korting:="" €2.50');"=""/>
Hoeveelheidskorting
:'>
</td>
23 Sep 2010, 2:03 PM
#571
philibel avatar

philibel

Zen Follower

Join Date:
Mar 2008
Location:
Belgium
Posts:
120
Plugin Contributions:
3

Re: Quantity Discounts for 1.3

I've just changed the files but there is no change in the display.

23 Sep 2010, 2:07 PM
#572
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,758
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

The screenshot you gave was using order edit. Existing orders will still have the extraneous text but new orders will not. If you want to change existing orders you would have to use phpMyAdmin.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

23 Sep 2010, 5:21 PM
#573
philibel avatar

philibel

Zen Follower

Join Date:
Mar 2008
Location:
Belgium
Posts:
120
Plugin Contributions:
3

Re: Quantity Discounts for 1.3

:blush:
And if it still appears I'll have to look at edit_orders, correct?

Thanks for your help. :bigups:

24 Sep 2010, 1:27 PM
#574
lebatsirk avatar

lebatsirk

New Zenner

Join Date:
May 2010
Posts:
3
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi,

I apologise if this has already been answered, but I have been trawling through the posts on here and cannot find a definitive answer so I thought I'd just ask outright.

What I want to do is this :-

I want people to be able to shop for my Christmas Cards in a different way to the rest of my card shop, i.e. 'pick and mix' style Christmas Cards so that people can basically put together their own packs from a choice of individual ones, getting greater discounts the more they buy.

The rest of my shop is set up as simple "add to basket" style pricing, with a little bit of "priced by attributes" in there.

However, for the Christmas Cards I thought from the description of the mod that if I had all the "pick and mix" cards in a single category, I would be able to use this mod to only apply multiple purchase discounts to that category (without affecting the others). For example : 1 card for 99p, 2-4 for 75p, 5-9 for 60p, 10+ for 50p per card.

I have had a look at this page http://www.thatsoftwareguy.com/zencart_category_issues.html as suggested on some of the other replies, and was wondering if I needed to add in a 'case' statement for the specific category number at function apply_special_category_discount but nothing I try seems to be working.

Could you please tell me if I'm on the right track, or if I'm trying to make your mod do something it's not meant to do?

Thanks in advance,

Kristabel

24 Sep 2010, 1:51 PM
#575
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,758
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

One caveat about this: you can't set the final price with quantity discounts, only the discounted amount. So you can do "Buy 3 get 10p off each" but not "Buy 3, and set the price to 30p each."

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

24 Sep 2010, 2:39 PM
#576
lebatsirk avatar

lebatsirk

New Zenner

Join Date:
May 2010
Posts:
3
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

But if all the products in that "pick and mix" category were under the same pricing structure then I could discount accordingly right?

For example,

99p for (any) one card in that category
25% discount for 2-4 cards in that category
50% discount for 5-9 cards in that category, etc

?

But assuming that's right, does the rest of what I want to do make sense for using your mod to do it with?

I'm going to spend time tonight working on it, but I don't want to spend hours figuring out the exact way to get it working if you know it's something I'm not going to be able to do.

:hug:

24 Sep 2010, 2:55 PM
#577
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,758
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

By listing the eligible categories in the exclude function (see examples on my home page of how to do this), and setting quantity discounts to count ALL items in the cart, you can do this, but you are of course limited to one discounting schedule. You couldn't do one quantity discounts for cards, another for some other type of item.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Sep 2010, 9:09 PM
#578
lebatsirk avatar

lebatsirk

New Zenner

Join Date:
May 2010
Posts:
3
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi, just wanted to say that I got it working just how I want it thanks :smile: I hadn't read the bit that says it doesn't show the discount until Step 2 of the Checkout process, but now I know that I've been able to add some text in to explain this to the customers, and I've edited the javascript alert link a bit too and it's working nicely.

Even better, I've been able to apply one set of discounts to the "mix & match" individual Xmas cards, and another set of discounts to the Xmas card packs (as I don't want to discount them quite as much!)

Thanks again :clap:

6 Oct 2010, 4:21 AM
#579
msmith29063 avatar

msmith29063

New Zenner

Join Date:
Jan 2008
Posts:
71
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Quick Question: On the latest version of Zen-Cart here. I need to be able to do a 10% discount on 10 or more items purchased within ONE master category. But the products in this master category have been linked from other categories. Can this module do this? Or can this module atleast be set-up to INCLUDE master (top-level) categories as opposed to EXCLUDE sub-categories? If not, what module should I use.

Thank you for your time.

6 Oct 2010, 4:32 AM
#580
msmith29063 avatar

msmith29063

New Zenner

Join Date:
Jan 2008
Posts:
71
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

And I just had another client ask me about setting up another quantity discount. 15% off for one item, 25% off of two items, and 30% off of three or more items. All in the same MASTER category. Is it possible to set this up with this module? Note that I would prefer to INCLUDE the master category for the discount as opposed to EXCLUDING all the categories that the discount doesn't apply to. This client constantly needs to add sub-categories.

Thank you again for your help.