close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

add multiple products to ecart (not utilising a checkbox)

Thread began 2/12/2014 1:24 am by CraigR | Last modified 6/09/2014 1:04 pm by Jason Byrnes | 268 views | 3 replies |

CraigRBeta Tester

add multiple products to ecart (not utilising a checkbox)

I have created pages to add multiple items to a cart with a single click, (with ecart and dataassist search using the checkbox method), but would like to have the same functionality, except not using a checkbox, but relying on the post values of the quantity fields alone, so that the cart is populated if the qty field value is > 0.

Is this something that is easy to by adapting the dataassist search method, or do I need to hand code it ?

UPDATE

I guessed that if I don't bother with the 'Add to Cart' recordset, it could work, as items will not be added to the cart if their quantity is zero anyway.

Seems to work, and a lot easier then the checkbox method

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear you found a work around.

Sign in to reply to this post

Nico

How to achieve the same but without using ecart

Hi.
I want to update a relational database but without the use of checkboxes. In my form I use an input value. So if the input value is not empty I want to update the relational table. Right now the table gets updated only if I have the checkbox checked. Thank you in advance

Sign in to reply to this post

Jason ByrnesWebAssist

Not entirely sure i get what your trying to accomplish.

A relational table store IDs from 2 tables to create a many to many relationship.

A hidden element is used to store the parent ID,

the checkbox stores the child table ID

in the case of the manage relational table tutorial it is relating Items to genres.

The hidden element stores the ItemID, the checkboxes store the Genre ID.

When a checkbox is checked, it created a new record in the itemgenres table with the ItemID and the selected genre id.

you could add additional fields to the item genre table and use a text field to for that column, but if you where to replace the checkbox with a text field, you would need to input the genre ID manually.

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