close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adding a form to a product

Thread began 4/22/2010 9:03 pm by bhwebdesign330086 | Last modified 4/26/2010 8:01 pm by Eric Mittman | 732 views | 3 replies |

bhwebdesign330086

Adding a form to a product

I am building a store for a client. He has many different products but two of them require that the customer provide more information. We added field to the page with the product description. Does powerstore support the cgi needed to send that info to where it needs to go? Can I just create the form on the product page and use cgi in the store to send the data or is there a better way to collect this info and send it via email?

Thanks

Sign in to reply to this post

Eric Mittman

Modifying PowerStore to include these fields in the product details page would probably be the best way to go about this. This is a little custom but it should not require any hand coding. You would want to add these fields to your order details table, then you can add the form fields to the to the add to cart form on the product details page.

Next you would need to update the cart using eCart to include these new columns for the requested data. Then on the confirm page you would want to update the store order details server behavior to and associate the newly added cart columns with the new columns in the order details table.

As you can see there are a few steps to the process but it is possible if you have eCart.

Sign in to reply to this post

bhwebdesign330086

Thanks for the quick response. I am really new to powestore and ecart so I am not following you on this. I have added the fields to the product page but not sure how to get the submit button to work. And I am not sure what you mean by adding the form again to another page and then adding columns.

Please help
Thanks
Bruce

Sign in to reply to this post

Eric Mittman

Did you add the fields to your db to record these values? If so you can add them to your page with the add to cart on it. In the product details page you need to ensure that you have the new form fields added to the cart form on the page. Once the form fields have been added any values that are entered into them when the add to cart button is pressed will be posted along with the other values for the item.

Once you have got that going you will need to update your cart to add in the new columns. The new columns will be named similar to your form elements. You need these columns to be able to store the info that is entered on the product details page in your cart.

Once you have done all of that you are ready to alter the add to cart server behavior. When you do this you will select the newly added columns and for their value you will select the new form fields you have added into the 'add to cart' form on the page. This is what you need to do to get it adding to the cart. Once you do that you can then edit the confirm pages to ensure you are storing the info in the db.

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