• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. Storefronts and Shopping Carts > 49. Put Both Cart Buttons in One Form

Put Both Cart Buttons in One Form

Overcome the limitations of some web development tools by combining the Add to Cart and View Cart buttons into a single HTML form.

If you’re using a web page editor that prefers or allows pages to contain only one form (such as some versions of Dreamweaver), or if you’re a Microsoft .NET programmer, you might need to combine both Shopping Cart buttons into a single web form.

Fortunately, PayPal relies on the names of the buttons, not on the post URL or other details of the HTML form, to correctly interpret the buttons.

The Code

To implement this single-form design, simply include two submit buttons in the PayPal cart form. Name one button add and the other button display, like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint