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

rating

Updating Product Table

Thread began 3/05/2012 3:34 pm by keith.mears422260 | Last modified 3/08/2012 10:01 am by Jason Byrnes | 614 views | 5 replies |

keith.mears422260

Updating Product Table

I am using PayPal standard and most of the products on sale will be unique items so I want to put them to Reserved status on the website as soon as a client puts the item in their cart. I want to control the product change from on sale to reserved by the stock level changing to '0' that I can simulate OK. However, it is updating the stock level that is causing problems as I cannot get all the items in the Cart to update the appropriate product table stock level, it only changes the 1st item in the cart product list the rest of the items are ignored. It seems I can only use the Webassist update a single record that is potentially the problem hence only the first record being updated and the update multiple records server behaviour does not recognise the form table in the cart as a repeated region. Is there a way round this?

Thanks in anticipation of your help.

Keith

Sign in to reply to this post

Jason ByrnesWebAssist

when the add to cart button is pressed, a hidden form element passes the ID of the item.

in the update record behavior, bind the Key Column value to the hidden form element to tell it which record to update.

Sign in to reply to this post

keith.mears422260

Hi Jason - Thanks for the quick response.

Sure this is my lack of knowledge here again but I am keying into the Shop ID, I can demonstrate that by putting the ID into the cart to confirm that I have correct column as the number from the shop ID is that of the Product table ID. It works perfectly when there is only one item in the cart, it is not working though on subsequent additions to the cart, it is as if it is not seeing the repeat of the items being added to the page.

I have just been testing this further and now convinced the cart has something wrong and perhaps the reason for my initial problem as well, when I have more one item in the cart and I select to remove the 1st record in the page from the cart it delete all records and not just the one selected, if I do the same on 2nd or 3rd record it just removes the item selected as it should do, so I think there is something wrong with the way the page is seeing that 1 record in the list. Any simple ideas or should I just delete this cart and set it up a new new one?

Hope this makes sense.

Regards

Keith

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

keith.mears422260

Thanks for all your help Jason, support as usual exceptional.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

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