Zen Cart Logo
Forums / General Questions / Quantity not updating

Quantity not updating

Locked

Views: 1,925

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
27 Nov 2009, 3:23 PM
#1
billgod avatar

billgod

New Zenner

Join Date:
Nov 2009
Posts:
6
Plugin Contributions:
0

Quantity not updating

I am trying to setup zen cart for downloads with a qty of 1. I want the qty to drop to 0 and be removed when some one purchases it. The qty never changes. Is it because I am purchasing it with the test credit card number or do I have something configured wrong? If it could be something configured wrong. What should I look at?

Zen Cart 1.3.8a

thanks
Bill

27 Nov 2009, 3:56 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Quantity not updating

Have you set up a download (using attributes) yet?

27 Nov 2009, 4:00 PM
#3
billgod avatar

billgod

New Zenner

Join Date:
Nov 2009
Posts:
6
Plugin Contributions:
0

Re: Quantity not updating

Yes the download seems to be working correctly. if you purchase it. you get an email with the link. once you set the order to shipped you get another email with the link. that link has the download button. It is set to 5 downloads. Even if you download it 5 times the qty still says 1?

28 Nov 2009, 3:58 PM
#4
billgod avatar

billgod

New Zenner

Join Date:
Nov 2009
Posts:
6
Plugin Contributions:
0

Re: Quantity not updating

Does anyone else have any other ideas to check? I need to get this working.

28 Nov 2009, 10:46 PM
#5
billgod avatar

billgod

New Zenner

Join Date:
Nov 2009
Posts:
6
Plugin Contributions:
0

Re: Quantity not updating

I created a new site for a test. I followed the instructions on http://www.imakewebsites.ca/zen-cart-downloadable-products/ to make the option downloadable. You can download it and everything works fine. the thing that does not change is the qty. I want to only sell 1 of this item. doe anyone know if you can do this? I have a test non downloadable product and it reduces qty by 1 every sale like you would expect.

29 Nov 2009, 3:18 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Quantity not updating

What value is set for Configuration->Attribute Settings->Number of Downloads Allowed - Per Product? I think the default is 5.

When you say "Even if you download it 5 times the qty still says 1", on what page does the qty still 'say' this?

30 Nov 2009, 7:50 PM
#7
billgod avatar

billgod

New Zenner

Join Date:
Nov 2009
Posts:
6
Plugin Contributions:
0

Re: Quantity not updating

the max download is set to 1. what I mean is if I log in and purchase it 5 times it still says qty of 1. Does any know if the QTY just does not reduce on downloadable products?

My goal is to only sell 1 of each item. The items are downloadable content. once downloaded I want the qty to change from 1 to 0 and remove itself from the site. Can this be done?

1 Dec 2009, 4:31 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Quantity not updating

Downloads do not track on stock ...

1 Dec 2009, 10:53 AM
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Quantity not updating

Right, but what billgod is saying is that if the maximum download count is set to 1 and the customer (for some reason) chooses to purchase 5 downloads in a single order ... there is only 1 download available to the customer instead of 5.

1 Dec 2009, 3:42 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Quantity not updating

Downloads are controlled by the Download setting of Maximum number of downloads and maximum count ...

The quantity on a Download does not increase the Maximum number of downloads ...

You could re-write the code to try to account for this, but I am not coming up with an reason for purchasing multiple downloads of the same Product that wouldn't require customization to the code to warrant changing the core code, at this time ...

There are scenarios where the Download is used for other things that licenses etc. would need more elaborate schemes to this, but again, that leads to customized code on a per site basis ...

We will keep this in mind, for the multitude of scenarios that a Download Product can be used ...

7 Dec 2009, 7:02 PM
#11
billgod avatar

billgod

New Zenner

Join Date:
Nov 2009
Posts:
6
Plugin Contributions:
0

Re: Quantity not updating

Ajeh

you have answered my question. thank you. I was only asking why the stock does not drop down to 0 when someone purchases a download. I wish it had this feature or I wish I could make it work. I guess we will just have to manually delete it after someone purchases it.

thanks

18 Feb 2010, 4:42 PM
#12
chrismarie avatar

chrismarie

New Zenner

Join Date:
Apr 2009
Location:
Chicago, IL
Posts:
45
Plugin Contributions:
0

Re: Quantity not updating

Hey billgod,
I'm dealing with this same problem right now because my downloads are coupons and if the coupon seller wants to set a maximum of say 200 available, I need to have some way to make the coupon unavailable to the 201st customer.

The easiest way that I can think of to accomplish this is to set products_quantity to 0 if products_ordered is greater than or equal to products_quantity_order_max

(I'm using products_quantity because I don't want to disable the product, I want it to appear sold out, but you could change products_status to 0 if you want it to go away)

I'm just learning php and the whole zen cart system, so it's going to take me some thinking to write the actual code and find a place to put it, but as soon as I come up with a solution, I'll post it here so you can use it too :)

18 Feb 2010, 5:21 PM
#13
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,287
Plugin Contributions:
39

Re: Quantity not updating

You do not have to set it by hand

Configuration >> Stock

Check stock level true
Subtract stock true
Allow Checkout false
Mark product out of stock ***

~Melanie

18 Feb 2010, 5:34 PM
#14
chrismarie avatar

chrismarie

New Zenner

Join Date:
Apr 2009
Location:
Chicago, IL
Posts:
45
Plugin Contributions:
0

Re: Quantity not updating

Hi Melanie,
Those are my settings, but unfortunately downloadable products aren't set to track on stock, and I've got a whole store of downloadable products.

I tried to set the Maximum downloads, but that doesn't influence whether the product shows as in or out of stock. When I tested it, I could download beyond the maximum, so that option isn't viable.

Thanks for the attempt, though. I should have mentioned my stock settings. Your recent Zen Cart Project is gorgeous, btw :)
C

18 Feb 2010, 5:39 PM
#15
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,287
Plugin Contributions:
39

Re: Quantity not updating

You could make them a standard product type and use an attribute download, then they would be tracked =-)

Thanks,

Melanie

18 Feb 2010, 6:00 PM
#16
chrismarie avatar

chrismarie

New Zenner

Join Date:
Apr 2009
Location:
Chicago, IL
Posts:
45
Plugin Contributions:
0

Re: Quantity not updating

Aha! I didn't think that it was possible to give a product a download attribute and and have it treated as a regular product without a shipping address requirement. Thanks to your suggestion, I gave the product screen another look and tried the setting:
Always Free Shipping: Special, Product/Download Combo Requires a Shipping Address
I don't know why it works, but the next purchase I made to test it didn't ask me for shipping, changed the qty, and gave the download link....so, yay!

I also tried the combo of
Product is Virtual: No, Shipping Address Required
Always Free Shipping: Yes, Always Free Shipping

and that worked too!

Kudos to you and a million thanks.
C

18 Feb 2010, 6:05 PM
#17
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,287
Plugin Contributions:
39

Re: Quantity not updating

Cheers!