Click here to register.
      
irc://irc.freenode.net#webgui

iPhoneGuy: WebGUI is a pile of crap.
rizen: If WebGUI is such a pile of crap, why do you use it?
iPhoneGuy: Because it's the best pile of crap out there.

If this is what people who hate us are saying, imagine what people who love us will say. Come join us on IRC.


     Discuss > WebGUI Dev

C2: Inventory control error handling

User colink
Date 5/10/2008 6:57 pm
Views 507
Rating 0    Rate [
|
]
Previous · Next
User Message
colink

Should objects be throwing exceptions to indicate problems with inventory control, like asking for more of an object than are available?

Or is there a more preferred way to do it?



Back to Top
Rate [
|
]
 
 
JT
No. Set the max available method and then the cart will automatcally take care of everything. 

JT
On May 10, 2008, at 6:58 PM, <ckuskie@sterlink.net> wrote:

colink wrote:

Should objects be throwing exceptions to indicate problems with inventory control, like asking for more of an object than are available?

Or is there a more preferred way to do it?



http://www.plainblack.com/webgui/dev/discuss/c2-inventory-control-error-handling


--

Plain Black&#44; makers of WebGUI
http://plainblack.com


Back to Top
Rate [
|
]
 
 
colink
On Saturday 10 May 2008, jt@plainblack.com wrote:

>
>  No. Set the max available method and then the cart will automatcally take care of everything. 
>

Okay, so, from your email yesterday, I'll have addToCart decrement
the quantity by 1, since I'm not adding a quantity field to the
add to cart form in the Product.

If you have a little time some time this week (15-20 minutes), it
would help me to talk through some more of this high level stuff,
since you have already thought through it pretty well. (error handling,
quantity management, etc.)

Colin



Back to Top
Rate [
|
]
 
 
JT
No prob. I'll be on IRC most of the day today and all week. 

JT
On May 10, 2008, at 10:00 PM, <ckuskie@sterlink.net> wrote:

colink wrote:

On Saturday 10 May 2008, jt@plainblack.com wrote:

>
>  No. Set the max available method and then the cart will automatcally take care of everything. 
>

Okay, so, from your email yesterday, I'll have addToCart decrement
the quantity by 1, since I'm not adding a quantity field to the
add to cart form in the Product.

If you have a little time some time this week (15-20 minutes), it
would help me to talk through some more of this high level stuff,
since you have already thought through it pretty well. (error handling,
quantity management, etc.)

Colin



http://www.plainblack.com/webgui/dev/discuss/c2-inventory-control-error-handling/2


--

Plain Black&#44; makers of WebGUI
http://plainblack.com


Back to Top
Rate [
|
]
 
 
     Discuss > WebGUI Dev




Re: Duplicate web site by bartjol - Sun @ 01:21pm

YouSendIt like app. by pvanthony - Sun @ 09:33am

Smoketest For nightly_2008-07-20 by Visitor - Sun @ 01:37am

Smoketest For nightly_2008-07-19 by Visitor - Sat @ 01:38am

Re: Survey2 by perlmonkey2 - Fri @ 05:36pm

Smoketest For nightly_2008-07-18 by Visitor - Fri @ 01:39am

Re: Building WRE for Fedora Core 4 x86_64 by neodymiumex - Thu @ 02:59pm

Tracking file downloads in WebGUI by colink - Thu @ 02:00pm

Smoketest For nightly_2008-07-17 by Visitor - Thu @ 01:39am

Re: Survey2 by perlmonkey2 - Wed @ 11:05pm

Re: Survey2 by patspam - Wed @ 08:05pm

Re: Survey2 by perlmonkey2 - Wed @ 03:41pm

Re: Duplicate web site by techwriter - Wed @ 09:07am

Re: Limiting the size of avatars by bernd - Wed @ 03:45am

Smoketest For nightly_2008-07-16 by Visitor - Wed @ 01:38am