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


ecart-add to cart

Thread began 5/28/2010 2:38 am by david331670 | Last modified 5/28/2010 8:12 pm by Eric Mittman | 746 views | 1 replies |


ecart-add to cart

I am creating a new cart.
I have a product and size/price selection for an item
I would like to have a check box for additional item, gift wrapping that i want to add the price to the selection if the box is ticked and then show this and the total price in the cart.
I have been trying to use an updatable check box. I cant quite figure out where to put it, in the form field with the "Add to cart Button" or Outside the form field? anyway I choose I cant get any info from the button.
In the checkbox inspector I dont understand the area "Check if" I dont know what to put there, and I dont understand the Equal to text area as well.
I have a Gift wrap column in the cart details. I have a gift wrap table in the data base, separate from the main product data base table.I have also added the Gift wrap to the price calculations see pic
I cant get it to work, can you please point me in the right direction.
Thanks David

Sign in to reply to this post

Eric Mittman

It looks like you have the calculation all setup for the gift wrap column. It looks like you just need to get the checkbox to add the price of the gift wrap to the cart with the item.

To do this you should add a check box to the add to cart form. For the value you can set it to the price of the gift wrap. Then in the add to cart server behavior you would bind this checkbox to the giftwrap column.

The way that the checkboxes work they will only post what is in the value attribute if the box is checked. If not it will not post a value. So binding the cart column to the form element directly will ensure that a value is bound only if the box is checked.

If you make this an updatable checkbox in the cart it should allow you to toggle the gift wrap option.

In the checkbox property inspector the 'check if' is for dynamic checkbox's that you would like to be checked based on a value. The equal to box is part of this, so if you had a recordset with a column value of 1 and you wanted the checkbox to default to be checked based on this column you would enter the details into here.

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





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