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

Auto Deduct Inventory

Thread began 8/12/2010 6:59 am by jbarron397794 | Last modified 4/05/2011 11:51 am by jbarron397794 | 2338 views | 3 replies

JenniferBeta Tester

Hi, Going back to this. The method I posted below works great, my only problem is that within my database I have each item in inventory listed separately with a separate ID. In other words if I have a shirt that has 3 different sizes, I have 3 different lines with 3 different ID #s within my database:

itemId: 102 itemName: White Polo itemSize: M
itemId: 103 itemName: White Polo itemSize: L
itemId: 104 itemName: White Polo itemSize: XL

Within e-Cart how would I call out the correct item ID#?

I am currently building two recordsets within Dreamweaver as follows:


FROM inventory
WHERE itemId = 102


FROM inventory
WHERE itemName = queryparam1 AND itemSize = queryparam2

type: text
default value: ""
runtime value: $_POST['itemName_1']

default value: ""
runtime value: $_POST['sumidrive1_1_Size_Add']

These recordsets seem to work when there is a different price dependent upon what size the user selects. I bind the price to the rsShirtWhite (the second recordset) and it populates the shopping cart with the correct price. However, how do I get the correct ID to populate in the shopping cart? If I bind the ID column to the second recordset's ID column, should that not populate the correct ID according to size? Why would this method work for the price and not the size?

Any input you could give me would be greatly appreciated!


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