close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

ecart multiple add works well but also adds all items if no items are selected

Thread began 4/09/2014 7:02 am by pliogeo413133 | Last modified 4/09/2014 8:29 am by Jason Byrnes | 328 views | 1 replies |

pliogeo413133

ecart multiple add works well but also adds all items if no items are selected

Hi,
I have implemented multiple add to cart interface using tutorial and all seems to work well. Client has pointed out that if nothing is selected and add to cart button is clicked, cart goes ahead and adds all items in list. Otherwise if you click one or a few items it adds those selected. I suspect there is a modification required to the DataAssist Search (rsAddSelected) behaviour but can't work it out. Can you please help?

please refer to code attached

Sign in to reply to this post

Jason ByrnesWebAssist

You did not set the default where clause in Data Assist Search. Edit the Data Assist Search server beahvior and set the default Where clause to 0 = 1

for reference:
http://www.webassist.com/tutorials/Checkbox-method-for-add-to-cart

Step 2: Configure the DataAssist Search
. . .
3. For the Default WHERE clause - make sure you enter 0=1
. . .

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