If this is your first visit, check our documentation. To post, register or login.
Forums / Business Issues / Other Business Topics / How to NOT reduce inventory/stock numbers on pending payment?

How to NOT reduce inventory/stock numbers on pending payment?

Started by valhalla1 on 6 Jun 2011, 6:42 PM · Views: 141

Results 1 to 11 of 11
6 Jun 2011, 6:42 PM
#1
valhalla1 avatar

valhalla1

New Zenner

Join Date:
Jun 2011
Posts:
16
Plugin Contributions:
0

How to NOT reduce inventory/stock numbers on pending payment?

I am new to zen cart but I am starting a web store and using Bitcoin as the only accepted payment, using the Bitcoin payment module for Zen Cart
forum.bitcoin.org/index.php?topic=7273

the question I have is, how do I setup zen cart so that inventory/stock numbers are not decreased until the payment is made? As of now I have to manually check for payment being made with bitcoin, similar to if you were only accepting a mailed check/money order.

Currently in my testing, it appears someone can order up every item in the store, depleting my inventory, and never pay, thus depriving any actual paying customer from buying anything.

Not that I think a customer would do that but its certainly feasible a competitor could benefit from such an attack. Is it possible for Zen Cart not to deduct inventory until payment is paid?

6 Jun 2011, 6:49 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: How to NOT reduce inventory/stock numbers on pending payment?

Valhalla1:

Is it possible for Zen Cart not to deduct inventory until payment is paid?That's not a built-in feature at the present time.
Inventory is presently reduced when an order is placed.

How would you expect the system to magically "know" when payment has been completed on some external website? Wouldn't you still have to manually update the inventory status when you get some sort of notice/email from that other site that the payment has been completed?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Jun 2011, 7:07 PM
#3
valhalla1 avatar

valhalla1

New Zenner

Join Date:
Jun 2011
Posts:
16
Plugin Contributions:
0

Re: How to NOT reduce inventory/stock numbers on pending payment?

DrByte:

How would you expect the system to magically "know" when payment has been completed on some external website?

its actually an internal payment function, its all software running locally - there are no external websites involved. When order is initially made, it shows in PENDING status. Once payment is completed, this pending status is changed to completed, or paid, or something (not sure yet I've only begun my testing and it isn't live yet)

anyway I was hoping Zen Cart could only reduce the inventory after payment status switches out of pending.

6 Jun 2011, 7:09 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: How to NOT reduce inventory/stock numbers on pending payment?

Valhalla1:

I was hoping Zen Cart could only reduce the inventory after payment status switches out of pending.
That's not a built-in feature; however, you're certainly welcome to write your own custom code to handle your unique requirements :)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Jun 2011, 7:10 PM
#5
valhalla1 avatar

valhalla1

New Zenner

Join Date:
Jun 2011
Posts:
16
Plugin Contributions:
0

Re: How to NOT reduce inventory/stock numbers on pending payment?

lets forget about the bitcoin part for now as that isn't important imo.

Let's say I am only accepting the built in money orders function as payment, the problem would be the same. Someone could order up all of the inventory and never mail the money order.

6 Jun 2011, 9:02 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,753
Plugin Contributions:
0

Re: How to NOT reduce inventory/stock numbers on pending payment?

So let's turn that around - say you have 2 people at the same time order the 5 widgets you have in stock and both the money orders come in the mail at the same time - what are you going to do then?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

6 Jun 2011, 9:47 PM
#7
valhalla1 avatar

valhalla1

New Zenner

Join Date:
Jun 2011
Posts:
16
Plugin Contributions:
0

Re: How to NOT reduce inventory/stock numbers on pending payment?

so I guess this is a valid denial-of-service attack vector, and a cost of doing business

beware zen cart users, if you accept money orders your competitors can suck up all your listed inventory and never pay - gotta watch those orders 24/7!

6 Jun 2011, 10:26 PM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,753
Plugin Contributions:
0

Re: How to NOT reduce inventory/stock numbers on pending payment?

Do you really think your competitors have nothing better to do than submit fake orders to mess with you?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

5 May 2020, 12:44 AM
#9
koda avatar

koda

New Zenner

Join Date:
Feb 2011
Posts:
57
Plugin Contributions:
0

Re: How to NOT reduce inventory/stock numbers on pending payment?

Some industries are very cut throat. Do not underestimate malicious intent or greed. (yes I know this thread is from 2011, but the point made by the OP is a fair one). Payment modules can switch an order status from pending to processing based on if the tx went through. It would seem intuitive to also provide a mechanism that would allow stock to be reduced based on this variable.

5 May 2020, 10:28 AM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to NOT reduce inventory/stock numbers on pending payment?

Koda:

Some industries are very cut throat. Do not underestimate malicious intent or greed. (yes I know this thread is from 2011, but the point made by the OP is a fair one). Payment modules can switch an order status from pending to processing based on if the tx went through. It would seem intuitive to also provide a mechanism that would allow stock to be reduced based on this variable.
And although I don't know if Kim still supports the ZC project, the point made is still the same, which individual should receive the product if two or more individuals paid, where say authorization is used for one the day before and direct payment for another today and the store was processing those authorized payments but does so after the current online direct payment was made... The one that just ordered today because they used direct payment instead of a method that was setup by the store to use authorization?

As DrByte has said, such a change can be programmed in; however, the general precept is that the first one to check out wins. This isn't just a ZC thing, done any online shopping recently for groceries using any of the other eCommerce site software?

On the extreme, if every product in the store or a single product that was available in a large quantity were purchased all at once, I would think that it would (if not should) raise the suspicions of the store owner. How real is the order, especially if to be paid by check/money order or something similar.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 May 2020, 11:50 AM
#11
swguy avatar

swguy

Administrator

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

Re: How to NOT reduce inventory/stock numbers on pending payment?

Koda:

It would seem intuitive to also provide a mechanism that would allow stock to be reduced based on this variable.

See response #4. We eagerly await your PR!

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.