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

Inventory control in eCart5

Thread began 4/06/2010 1:48 pm by Badger | Last modified 7/15/2010 1:44 pm by Badger | 3361 views | 28 replies

Eric Mittman

So you would like to check the quantity that the user has entered versus the available stock when they are trying to add it to the cart correct?

If you are trying to compare the posted value against a column in your table then you would need to do it within the advanced recordset creation view. In here you would be able to craft the query just like the sample that you noted, but where you are using the value from the form you should just enter a name for this value, then in the bottom you will need to define the query parameter. Click on add and set the name to the name you used in the sql, then for the value you can enter $_POST['<quantity field>'] as the runtime value, for the default value you should use something that will never work out, like 0.

Please post back and let me know if this is the way you are trying to do it and if this will work for you or if you have other requirements. Please post back with the details.

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

Content

rating

Layout

rating

Ease of use

rating

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...