Click here to register.
      
Sprechen Sie WebGUI? Parlez vous WebGUI? Se habla WebGUI? Spreekt u WebGUI?

Do you speak WebGUI? Please help us translate WebGUI into your language.



     C2: Inventory control error handling > Re: C2: Inventory control error handling

C2: Inventory control error handling

User colink
Date 5/10/2008 6:57 pm
Views 836
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 [
|
]
 
 

shows by JT - Mon @ 05:16pm

Glad to be here by titlandata - Mon @ 04:22pm

Re: Partner for Featu Document Repository by JT - Mon @ 04:21pm

User Registration and update page by aewhale - Mon @ 03:56pm

Re: Partner for Feature: Document Repository by sduensin - Mon @ 03:35pm

Re: Partner for Featu Document Repository by JT - Mon @ 03:26pm

Re: Glad to be here by sduensin - Mon @ 02:26pm

Re: Partner for Feature: Document Repository by sduensin - Mon @ 02:14pm

Re: is there a an audio/video gallery wobject? by fdillon - Mon @ 02:04pm

Re: Security on files ? by knowmad - Mon @ 01:55pm

Form not working. Help! by pvanthony - Mon @ 12:01pm

Security on files ? by dwittenberg - Mon @ 11:47am

Re: Partner for Feature: Document Repository by alphamega - Mon @ 11:08am