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

How to add additional costs to a product and add it as a sum charge in the cart

Thread began 9/02/2013 8:21 am by info4753 | Last modified 9/17/2013 12:45 pm by info4753 | 1072 views | 10 replies

Nathon Jones Web Design

no checkbox option?

Hi Jason. Something must have gone astray in our thinking / operating here...

We added a new column called "AddGiftWrap" in the eCart Object columns section. We selected type "number" for this as nothing else seemed appropriate.

In the Add to Cart behaviour, in the Bindings section, our new column AddGiftWrap is there but the only "Updateable" options are "hidden field", "text field" and "select list". There is no option for checkbox. :o(

So...we proceeded with adding it as an updateable text field and then we manually changed it to a checkbox...
<input type="checkbox" name="BFcart_1_AddGiftWrap_Add" value="1" />

This, as you suggested, allows us to create the Charges rule but now, when we click the Add to Cart button we get this error, similar to an error we were previously getting:

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'cDbl'
/babyfish2013/WA_eCart/BFcart_VB.asp, line 34

Line 34 is:
retVal.AddGiftWrap = cDbl(itemAddGiftWrap)

We believe that when the checkbox isn't checked (when a customer doesn't require gift wrapping) then no value is being passed and, therefore, we are thrown the type mismatch error because it is looking for a numerical value.

Perhaps you can see a glaring error in all of this? Really appreciate your help. Thank you.

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