[ic] inventory checking (solved)

Jerry interchange-users@icdevgroup.org
Thu Jun 20 11:38:00 2002


> -----Original Message-----
> From: interchange-users-admin@icdevgroup.org
> [mailto:interchange-users-admin@icdevgroup.org]On Behalf Of Andrei
> Gologan
> Sent: Thursday, June 20, 2002 11:05 AM
> To: interchange-users@icdevgroup.org
> Subject: Re: [ic] inventory checking (solved)
>
>
> I have solved it, as most of the times 5 minutes after posting to the list
> :-)
>
> here is the code for checkout.html:
>
> [if data inventory::quantity::[item-sku] < [item-quantity] ]
> <FONT size=-2 COLOR=RED>Höchstmenge:</FONT>
>
> <input type="text" name=[quantity-name] value="[item-data inventory
> quantity]" size=3>
> [else]
> <input type="text" name=[quantity-name] value="[item-quantity]" size=3>
> [/else][/if]
>

But won't this allow them to just manually change it back to the higher
quantity and still order more than you have, as long as they don't
refresh the checkout page before completing the checkout process?
This would put your inventory into negative numbers.

We don't allow, for the most part, quantity changes on the checkout page,
only on the basket page. Maybe a little javascript to force a page
refresh if the quantity of any item is changed?

Jerry Uphoff
jerry@digitalfm.com