close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add to Cart Button for Individual DataAssist Results Page Items

Thread began 2/07/2014 8:28 am by Mike Perry | Last modified 2/10/2014 7:18 am by Jason Byrnes | 700 views | 3 replies |

Mike Perry

Add to Cart Button for Individual DataAssist Results Page Items

Is there a better way to do this?

I need individual Add to Cart buttons for a DataAssist Results page. I created an Add to Cart button in a separate form on the page, then copied the button code into the repeating table code for the results. I changed the main form action to the form action for the eCart burron form, then commented out all unneeded code.

When I click on a button it goes to the mycart.php page, but it sends the ProductID for the last item in the page recordset, not picking up the $row_WADAproducts["ProductID"] variable (10 items / page).

Page code is attached -- thanks,

Mike

Attached Files
trainingsignup_da.zip
Sign in to reply to this post

Jason ByrnesWebAssist

you need a form around each add to cart button.

before adding the add to cart, remove the form that is around the repeat region.

then add the add to cart button behavior to the results page.

this tutorial has details on adding the add to cart to the results:
http://www.webassist.com/tutorials/Create-a-product-catalog-eCommerce-Series

Sign in to reply to this post

Mike Perry

Got it -- thanks, Jason. . .

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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