close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Adding Checkboxes to Shopping Cart

Thread began 2/02/2010 9:24 am by jbarron397794 | Last modified 2/19/2010 2:57 pm by jbarron397794 | 3608 views | 11 replies

Eric Mittman

You can do this in eCart. You will first need to add a column to your cart that will hold this value.

You would then make sure to update your add to cart server behavior so that this column has a value by default. You can enter a value or get it from an input in your add to cart form.

Once you have the column and it is getting a value in your add to cart the next step is to update the your cart display to add a radio group or checkbox to this column. The important part about this is the name. The name for this element will need to be like this:

<your cart name>_<the column name>_<?php echo $<your cart name>->DisplayIndex; ?>

So if your cart were named eCart1 and the column were named personal the name of the input would be like this:

eCart1_personal_<?php echo $eCart1->DisplayIndex; ?>

You would need to make sure that you have a value specified, here is what an example of what a radio group would look like for this column:

<input type="radio" name="testCart_personal_<?php echo $testCart->DisplayIndex?>" id="per1" value="personal" />Personal<br/>
<input type="radio" name="testCart_Pro_<?php echo $testCart->DisplayIndex?>" id="per2" value="business" />Business

This will make the column in your cart updatable. Lastly you will want to set the selected value dynamically. To do this select the radio option in design view, then in the property inspector choose the dynamic button. For the select value equal to select your personal column from the cart. This way the selection will be reflected properly in the cart.

This will give you an updatable column that will hold the value of personal or business depending on the user selection. When you are storing the info in your db you can just bind this column in the cart with your column in the db table.

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