Zen Cart Logo

copy quantity discounts

Views: 5,351

Results 1 to 20 of 26
19 Sep 2009, 4:41 PM
#1
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

copy quantity discounts

(First, yes, I know about swguy's quantity discounts and think it is great. I just found myself in a position where I needed to copy lots of quantity discounts that used the default quantity discount system so did this. Actually, it works great in addition to swguy's mod which creates even more functionality. )

Here's a discount copier. Sceenshot is attached.

It works with the Quantity discounts that are used in the default Zen Cart and allows you to copy a discount to a product, a category, or the whole shop. Or delete a discount.

All the instructions are in the .zip file.

It's work in progress, so as ever with things that meddle with the database, BACK UP THE DATABASE first. But I haven't found any problems so far on a few Zen Cart installations. If you do then let me know please.

19 Sep 2009, 5:05 PM
#2
swguy avatar

swguy

Administrator

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

Re: copy quantity discounts

Choices are good! Once you think it's rock solid, consider submitting it to the Free Software Add Ons so people will be able to find it easily.

22 Jan 2010, 10:04 AM
#3
jmatthewgore avatar

jmatthewgore

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: copy quantity discounts

Wow, this is awesome. Thanks! Took me a while to find it...

  • Matt
22 Jan 2010, 11:10 AM
#4
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: copy quantity discounts

Glad you found it. Yes, I must get around to submitting it to the add-ons. On more thing on the to-do list :smile:

Do let me know how you get on with it. Any extras that would be handy? Any problems?

22 Jan 2010, 11:36 PM
#5
jmatthewgore avatar

jmatthewgore

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: copy quantity discounts

This was a very nice, simple way to do discounts... I'm very impressed. I backed up my database, installed it, and had applied all of the discounts that I wanted in a matter of 15 minutes or less.

I haven't encountered any problems yet. The only thing that seems a little odd is this:

I started off with about 300 products in my cart with no discounts. I initially edited one product (#29) to use as the copy source.

When I opened the discount copier, the graphical representation showed that there was one product that had a discount... but it was box 11. In the drop down box, the product still appeared with the correct label as #29.

In practical terms, it wasn't a problem (except perhaps that I couldn't use the diagram as a reference for which product # to choose as a source). Just thought it was worth mentioning.

  • Matt
20 Aug 2010, 3:01 PM
#6
vglide avatar

vglide

New Zenner

Join Date:
Dec 2009
Posts:
28
Plugin Contributions:
0

Re: copy quantity discounts

I backed up my database, downloaded and installed your Discount Copier. It is Fantastic! Exactly what I needed! Thank you SOOO much!

20 Aug 2010, 3:41 PM
#7
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: copy quantity discounts

Thanks for that.

Let me know if you have any problems and I'll try and help. But I hope there are no problems!

20 Aug 2010, 6:41 PM
#8
vglide avatar

vglide

New Zenner

Join Date:
Dec 2009
Posts:
28
Plugin Contributions:
0

Re: copy quantity discounts

niccol:

Thanks for that.

Let me know if you have any problems and I'll try and help. But I hope there are no problems!

I do have a question. Will this work with categories that have subcategories? For example:

Frames
-LP Frames
-CD Frames

20 Aug 2010, 8:19 PM
#9
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: copy quantity discounts

Yes, it should do.

23 Aug 2010, 1:39 PM
#10
vglide avatar

vglide

New Zenner

Join Date:
Dec 2009
Posts:
28
Plugin Contributions:
0

Re: copy quantity discounts

niccol:

Yes, it should do.

It applied to categories but it did not apply to subcategories. This is OK. I just needed to change out my categories a little. Well worth it, considering all the time I saved! :D

I do want to ask if you have tried to make the discounts mix n match for a category? Say a customer wants 6 Black LP Frames, 6 Silver and 6 Gold. He would get the 18 pc price.

23 Aug 2010, 1:41 PM
#11
swguy avatar

swguy

Administrator

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

Re: copy quantity discounts

VGlide:

I do want to ask if you have tried to make the discounts mix n match for a category? Say a customer wants 6 Black LP Frames, 6 Silver and 6 Gold. He would get the 18 pc price.

You cannot do this with the built in quantity discounts system; it's only per product.

You can do mix & match within a single parent category using the Quantity Discounts add on in the free software add ons.

23 Aug 2010, 2:36 PM
#12
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: copy quantity discounts

What swguy says is very true. It sounds as if his mod may be the one you are looking for :-)

THe issue with the sub-categories is strange as I can't repeat it on a test server.

Nick

23 Aug 2010, 2:41 PM
#13
vglide avatar

vglide

New Zenner

Join Date:
Dec 2009
Posts:
28
Plugin Contributions:
0

Re: copy quantity discounts

niccol:

What swguy says is very true. It sounds as if his mod may be the one you are looking for :-)

THe issue with the sub-categories is strange as I can't repeat it on a test server.

Nick

I have a lot more to do on my new site. Let me try again when I have the next category done. Maybe it was just me. It has happened before. :blush:

27 Aug 2010, 2:23 AM
#14
robinsonjas avatar

robinsonjas

New Zenner

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

Re: copy quantity discounts

I installed, but couldnt get the discount to stick to any categories, or even 'whole shop'...only worked on individual products only..but still faster than conventional method.

27 Aug 2010, 8:42 AM
#15
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: copy quantity discounts

@Vglide - oh I see what you mean now. Sorry was rushing a bit before.

In this set up

Cat A
-Sub B
-Sub C

Cat D
-Sub D
-Sub E

It will copy from D to the subcategory B.
If you copy from D to A it will not include the products in B and C. You'd have to copy from D to B and D to C. Or you'd have to nag me enough to write a few lines of code to change that behaviour. As I said it was written for a very specific set up which is why it is a post rather than an add-on :smile:

@robinsonjas
That is a bit surprising. I can't think of a reason why that would happen having looked at the code. You might try and re-install and see what happens. Then if you have the same error please get back in touch. A screenshot of the page just before you apply the changes would be helpful.

12 Sep 2011, 3:58 PM
#16
pudzpud avatar

pudzpud

Zen Follower

Join Date:
May 2009
Posts:
156
Plugin Contributions:
0

Re: copy quantity discounts

Sorry for dragging up an old thread but I cannot see anything relating to this in a more recent post.

I have never added mods to zencart (my ex used to do it and now I pay someone else too), however as this mod looks like it's just uploading the files to the right locations would it be something a novice like me could do? Obviously I would backup database first but is it just a case of adding new files or is there more to this and will it work on 1.3.9h?

Basically I can set up qty discounts through zencart but if I have 50 items in one category I need to manually add the discount to each product and if one price changes I need to change all 50 one at a time - I am hoping this mod allows me to create or change the discount on one product and then copy these prices to the others in the same category - is this right?

Thanks for any help.

12 Sep 2011, 4:32 PM
#17
vglide avatar

vglide

New Zenner

Join Date:
Dec 2009
Posts:
28
Plugin Contributions:
0

Re: copy quantity discounts

PudzPud:

Sorry for dragging up an old thread but I cannot see anything relating to this in a more recent post.

I have never added mods to zencart (my ex used to do it and now I pay someone else too), however as this mod looks like it's just uploading the files to the right locations would it be something a novice like me could do? Obviously I would backup database first but is it just a case of adding new files or is there more to this and will it work on 1.3.9h?

Basically I can set up qty discounts through zencart but if I have 50 items in one category I need to manually add the discount to each product and if one price changes I need to change all 50 one at a time - I am hoping this mod allows me to create or change the discount on one product and then copy these prices to the others in the same category - is this right?

Thanks for any help.

Hi,

I currently run 2 different discount programs. One is Quantity Discount from SWGuy. This one gives you the ability to do discounts per category. I use it for categories where I need to mix n match for customers to get discounts. I found it a little more complicated but, it works very well. Complicated means you have to know the correct category or product ids assigned to your products for it to work correctly. You have to do the assigning and then upload. Once it is uploaded, you would find it under Order Total. The second program is Discount Copier. This one allows you to set up one discount and then copy it to another product one by one, to a category one by one or to the whole shop. Once this one is uploaded you will find it under Catalog. I have only used it to a product one by one. I do like that it shows under product detail the Qty Discounts Off Price matrix. The one by SWGuy does not. Please note, you cannot use both discount programs in a category. I use 1.3.9e and had no problems. I hope this helps!

12 Sep 2011, 4:43 PM
#18
pudzpud avatar

pudzpud

Zen Follower

Join Date:
May 2009
Posts:
156
Plugin Contributions:
0

Re: copy quantity discounts

Thanks for the quick reply :)

The discount copier one is that easy to install for a newbie or are there lots of changes/conflicts etc? Also can you set up various discounts like the standard discount set-up on zencart i.e buy 1-5 for £2.50 each, buy 6-10 for £2.00 each, buy 11-20 for £1.50 each, buy 21+ for £1.20 each. etc

I had a look at softwareguys discounts and even bought one a while back but it's way over my head to install so i'm looking for something simple until I get my head around zc a bit more :)

12 Sep 2011, 5:43 PM
#19
vglide avatar

vglide

New Zenner

Join Date:
Dec 2009
Posts:
28
Plugin Contributions:
0

Re: copy quantity discounts

PudzPud:

Thanks for the quick reply :)

The discount copier one is that easy to install for a newbie or are there lots of changes/conflicts etc? Also can you set up various discounts like the standard discount set-up on zencart i.e buy 1-5 for £2.50 each, buy 6-10 for £2.00 each, buy 11-20 for £1.50 each, buy 21+ for £1.20 each. etc

I had a look at softwareguys discounts and even bought one a while back but it's way over my head to install so i'm looking for something simple until I get my head around zc a bit more :)

Actually Discount Copier was easy to install. That is exactly what I use it for. Some of my product is in 200 count cartons, some in 400 counts, etc. That is why I copy a 200 count product to another 200 count product. Here is a link to one of my products so you can see http://www.wagarassociates.com/index.php?main_page=product_info&cPath=70&products_id=405. Also for SWGuys discount package here is a link to a category and how I explain it to the customer http://www.wagarassociates.com/index.php?main_page=index&cPath=86

I am tech challenged and I managed. Just be sure to backup first before uploading!

12 Sep 2011, 6:16 PM
#20
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: copy quantity discounts

Gosh, I haven't thought about this for a while.

( Things to keep in mind. It was written for a specific install on 1.3.8a originally. It should work on any version of zen. But the reason that it is not an official module is that I have never got round to making it one. )

The install is very simple and does not effect anything else. No edits or database alterations. Just upload the files.

But the module is making major changes to some of the tables in the database when it copies the discounts so it is most definitely worth backing up the database before doing it. That can be done from phpMyAdmin or there is a mod called something like BackupMysql which I believe Dr Byte wrote.

This mod doesn't actually add any discount handling to Zen Cart. It uses the existing quantity discount system to set the discounts. What it allows you to do is set the discounts for one product and then copy the discounts to other products. Or to whole categories. This just makes adding discounts to your catalog much easier.

There should be no problem with using it in conjunction with SWGuys module. I have a client who does that quite successfully. The two modules add their discounts in different places as the order total is being calculated so can work together. Although you could get some weird effects if the discounts overlap and you get two discounts being applied. This isn't really to do with this module because, as I say, it just used the existing zen cart quantity discount system.

I think that is it. Thanks everyone.