Post by zaccaz » Thu Jan 28, 2010 3:33 pm

Hi all,

I apologize if this is answered somewhere else, but I've been looking all night.

Basically I need to apply a cross-product QUANTITY DISCOUNT to all of my products. So, for example, if the customer buys 3 of one item and 2 of another item, they get the quantity discount for 5 items. In other words, currently the only way to get the discount is to buy 5 of the SAME item. I want them to be able to buy different combinations of items and still get the discount.

Could someone please help me to code this, or tell me where to look if it already has been? Any support would be greatly appreciated. Thanks so much.

Newbie

Posts

Joined
Thu Jan 28, 2010 3:21 pm

Post by zaccaz » Fri Jan 29, 2010 1:30 pm

I've still had no luck with this, unfortunately. I did find a mod that does exactly what I'm looking for with Zen cart, however. It allows for quantity discounts on a total item basis, which is just what I need (http://www.zen-cart.com/index.php?main_ ... cts_id=235)

I just can't believe that no one has run into this problem (and been savvy enough to fix it) with Opencart...

Any suggestions?

Newbie

Posts

Joined
Thu Jan 28, 2010 3:21 pm

Post by Qphoria » Fri Jan 29, 2010 8:34 pm

I have a mod called "Category Based Discount" that lets you set discounts for products in the same category.
So if you have 5 items in a category and you want to give a 10% discount if people buy 3 items from that category, or a $5 discount if they buy 5 or more.... then this will do it.

Simply create a category that you want the discounts to apply like "Discount Combos"
Then even if your products are in other categories, you can assign them to this new category as well to be eligible for discount.

Then setup the multiple discount structures for the new category and choose if you want unique or not. Unique means they have to buy x number of unique items vs any combination of x (5 x cups or 1 cup, 1 bowl, 1 spoon, 1 fork, 1 knife)

That should do what you need.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by zaccaz » Sat Jan 30, 2010 1:54 am

Thanks for your reply. I'll go get your mod. I was hoping there would be a simpler fix, without having the change my category structure. But I've been trying for days, so I guess I'll give in.

Thank you very much for the assistance, and for the mod.

Newbie

Posts

Joined
Thu Jan 28, 2010 3:21 pm

Post by Qphoria » Sat Jan 30, 2010 3:03 am

you dont have to change it
thats why i said create another. Products can be in multiple categories at the same time. So this "discount" category would just trigger the discount code, but the other categories wouldn't change

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by zaccaz » Sat Jan 30, 2010 4:15 am

Ok, thanks.

I downloaded your mod, but I'm having problems.

I have the sort order set to 2, but I'm not seeing the discounts applied at all. Once I get to the last step (after shipping) and press continue, I get the following error:

Fatal error: Call to undefined method Language::getId() in /usr431/home/b/j/bjacobs/public_html/store/catalog/model/total/category_based_discount.php on line 73

Any suggestions? Thanks a lot.

Newbie

Posts

Joined
Thu Jan 28, 2010 3:21 pm

Post by Qphoria » Sat Jan 30, 2010 5:09 am

arg stupid language change.. i'll fix it

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Sat Jan 30, 2010 5:19 am

ok fixed. redownload from my site

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by zaccaz » Sat Jan 30, 2010 6:40 am

Cool. That fixed the error. Thanks!

Two more questions for you, if you have the time:

1) With the category discounts, is it possible to have the discount show at the level of the shopping cart instead of the confirmation page (as it does with the normal product discounts)?

2) Above you suggested making a "discount" category with all of my products to trigger the discounts. That sounds great, but I really don't want this category to be visible to customers. Could you possibly help me find a way to make it hidden from view on my storefront?

Perhaps your CategoryStatus mod would do the trick? I tried getting it to work but got a bunch of undefined variable errors.

Thank you so much for your help.

Newbie

Posts

Joined
Thu Jan 28, 2010 3:21 pm

Post by zaccaz » Sat Jan 30, 2010 3:26 pm

Forget #2. I got it figured out thanks to an old post of yours. (For those interested, see here: http://forum.opencart.com/viewtopic.php?f=22&t=6670)

I'd still love to know about #1, though. Thanks again for all your help.

Newbie

Posts

Joined
Thu Jan 28, 2010 3:21 pm

Post by oddy » Wed Dec 21, 2011 4:05 am

Hi Q...

do you still have this mod?

tks before

Newbie

Posts

Joined
Fri Apr 09, 2010 5:46 pm

Post by admiss » Tue Mar 31, 2015 5:24 pm

Qphoria wrote:I have a mod called "Category Based Discount" that lets you set discounts for products in the same category.
So if you have 5 items in a category and you want to give a 10% discount if people buy 3 items from that category, or a $5 discount if they buy 5 or more.... then this will do it.

Simply create a category that you want the discounts to apply like "Discount Combos"
Then even if your products are in other categories, you can assign them to this new category as well to be eligible for discount.

Then setup the multiple discount structures for the new category and choose if you want unique or not. Unique means they have to buy x number of unique items vs any combination of x (5 x cups or 1 cup, 1 bowl, 1 spoon, 1 fork, 1 knife)

That should do what you need.

Hello,
This is exactly what I need, (if works on 1.5.6) but the link results 404 not found

Newbie

Posts

Joined
Thu Mar 26, 2015 4:57 pm
Who is online

Users browsing this forum: No registered users and 15 guests