Print Page | Close Window

Add to Cart With Radio buttons

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=1598
Printed Date: 22-April-2025 at 2:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add to Cart With Radio buttons
Posted By: gordo
Subject: Add to Cart With Radio buttons
Date 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.



Replies:
Posted By: ProductCart
Date Posted: 06-May-2008 at 11:19am
We recently added an http://wiki.earlyimpact.com/how_to/add_to_cart - 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 - 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.


-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: gordo
Date 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!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net