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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart

Thread began 3/09/2010 3:18 am by david331670 | Last modified 3/09/2010 7:11 pm by Jason Byrnes | 852 views | 3 replies |

david331670

eCart

I'm stumped.
I have created a repeating region with a list of products from a data base with the add to cart button.
If I select one of the items down the list eg. 4th from the list, click add to cart it works adding the correct selection, thumbnail, description and to the cart.
Instead of add to cart button I would like a link to a separate page that will populate the page from the ItemID I have created a page link mycartpage.php?ItemID=4 where my page is set up with an add to cart function. It works no problem.
I would like to pick up the ItemID from the first mentioned repeating region, eg. itemID=4
I assume there would be a php script as there is in the add to cart button.
How can I pass the appropriate itemID to "mycartpage.php" to populate the cart page.
eg only <?php echo $row_rsComp["ItemID"]; ?>
I would appreciate your help
Thank you
David

Sign in to reply to this post

Jason ByrnesWebAssist

set the link to pass the id value from the recordset:
mycartpage.php?ItemID=<?php echo $row_rsComp["ItemID"]; ?>


On the mycartpage.php page, create a recodrset that will filter the ItemID column of the products table on the ItemID querystring variabel.

Then add the Add to Cart server behavior. On the server behviaors panel, click the plus button and select eCart -> Add to Cart -> Add to Cart. select before page load or recordset not empty for the trigger. On the bindings tab, bind the Cart Columns to the recordset columns.

Sign in to reply to this post

david331670

eCart

Thank you
I was so close, a few more trial and errors' might have seen me thru.
Never mind, thanks again.

Sign in to reply to this post

Jason ByrnesWebAssist

no worries.

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