close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

stock in order

Thread began 10/27/2009 2:11 pm by alhero_94375722 | Last modified 7/20/2010 5:05 pm by alhero_94375722 | 2284 views | 17 replies

Eric Mittman

There are a couple of ways that you can do this but they are custom as well. One way that you can do this is to keep the check that is on your add to cart page that stops the user from adding more than the available stock to the cart. As for when it is in the cart you could add a new column to your cart to hold the available stock. Once you have this column in the cart you would modify your add to cart server behavior and bind the value from your recordset to this new column.

Once you have this value in the cart when you add an item to the cart you can have a calculation that will check to see if the quantity is greater than the available stock, if so set it to the available stock. The calculation would be added to the eCart calculations tab. It might look like this depending on how you name your columns:

([Quantity] > [Stock])?[Quantity] = [Stock]:[Quantity] = [Quantity]

If the column that holds the stock is not called Stock then you will need to modify this server calculation.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...