ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Add to Cart With Radio buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Add to Cart With Radio buttons

 Post Reply Post Reply
Author
Message
gordo View Drop Down
Newbie
Newbie


Joined: 09-April-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote gordo Quote  Post ReplyReply Direct Link To This Post Topic: Add to Cart With Radio buttons
    Posted: 06-May-2008 at 11:08am
We have are selling products and also extended warranties for these products. I have customized PC to find these additional warranties and display them on the product page (ViewPrdCode.asp). I would like to add an additional "Add To Cart" button on that page and display these add-on warranties with radio buttons. When the desired radio button is selected and the add to cart button is clicked, that warranty will be added to the cart.

I have tried making the "idproduct" name as the radio button (and obviously it is not hidden), making the "qty" hidden, but I have not had any success.

Can anyone point me in the right direction?

Thanks.
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post Posted: 06-May-2008 at 11:19am
We recently added an article on "adding to the cart" using links and forms on the new ProductCart WIKI (which is still a work in progress). This should help you in your efforts. You will just need to adjust the form code to account for the fact that you are using a radio button. The product id should be the "value" in your RADIO field.

http://wiki.earlyimpact.com/how_to/add_to_cart

In fact, you could contribute to that article on the WIKI by posting about using a radio button to add a product to the cart. We created the WIKI exactly for this reason: allowing everyone involved with ProductCart to share their knowledge.


Edited by earlyimp - 06-May-2008 at 11:21am
The ProductCart Team

Home of ProductCart shopping cart software
Back to Top
gordo View Drop Down
Newbie
Newbie


Joined: 09-April-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote gordo Quote  Post ReplyReply Direct Link To This Post Posted: 06-May-2008 at 11:30am
Arghhh....

As it turns out, I was trying to create a new form inside the existing "Add to Cart" form. I moved the closing form tag ahead of my new code and it worked perfectly.

When I get some time, I'll add a section to the Wiki for radio buttons.

Thanks!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.