close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Web development tutorial

Donations with eCart

Tutorial created by Ray Borduin, WebAssist

Categories: eCart


Donations are a very common use of eCart. Although it is not explicitly called out in any of the interfaces, configuring eCart to receive donations is quite simple.

To allow donations to be received, you need to make the Price option for an Add to Cart button ‘Updateable’. This would allow someone to enter the amount of the donation they intend to give, and add that to their cart for checkout. This How To shows you the steps required to create this type of Add to Cart button.

arrow downWhat you need to start

  1. Dreamweaver CS3 or later
  2. eCart 5

arrow downCreate the Add to Cart button

Since this Add to Cart button does not need to be dynamic, you can apply it anywhere on your site that you see fit.

  1. Open the PHP page you wish to provide the donation feature.
  2. Place your cursor on the page where you wish the Add to Cart button and amount field to display.
  3. Choose the Add to Cart Button option from the eCart toolbar/Insert panel.

  4. On the General tab, choose Add static item to cart.
  5. Specify a page to redirect to after clicking Add to cart.
  6. Select the Bindings tab.
  7. Select the Name column and enter a default value.
    If you are using PayPal, PayPal will return an error if you do not specify a name.

  8. Repeat for Description column (optional).
  9. Choose the Price column.
  10. Select the Updatable checkbox.
  11. From the 'as' menu list, choose Select List or Text Field.

    If choosing a text field this will allow donors to enter any amount they like. You will want to apply validation to prevent inputting 0 or a negative amount. If you do not already know how to apply validation to your form fields, consider CSS Form Builder for applying various validations.

  12. Click OK.

Since this Add to Cart button does not need to be dynamic, you can apply it anywhere on your site that you see fit.

arrow downPopulating Select List fields

If you have chosen to make the price column updateable as a select list, you will need to populate those fields with various values. Most likely, you will want to provide values for the most commonly donated denominations.

  1. Choose the select list that was added to your page.
  2. From the Properties Inspector, choose the List Values option.
  3. In the Item Label column, enter the amount you wish.
  4. In the Value column, enter the actual value of each amount.

  5. Click OK.

arrow downReviews and comments

Comments will be sent to the author of this tutorial and may not be answered immediately. For general help from WebAssist, please visit technical support.

Sign in to add comments

sfranzken73972: 8 Years, 4 Months, 2 Weeks, 1 Day, 7 Hours, 57 Minutes ago

How could we add an other feild so donator could enter any amount?


Team WebAssist: 8 Years, 4 Months, 2 Weeks, 1 Day, 7 Hours, 49 Minutes ago

See the Create the Add to cart button section above, step 9, plus the note below it. If that doesn't answer your question, please visit technical support (click help in our main menu) so we can help you out more quickly.

jwk: 8 Years, 2 Months, 1 Day, 7 Hours, 59 Minutes ago

4. Add on the GENERAL tab
5. Add on the GENERAL tab
6a. Choose the NAME column in Default Value field type a name for your item.. Else PayPal returnes Error Detected - shopping cart is empty
6b. do same for descripition field -- optional


Team WebAssist: 8 Years, 2 Months, 2 Hours, 42 Minutes ago

info441118, Thank you for your feedback. Updates have been made!

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.