Drop down buy now button?
Is there anyway to have a buy now button with a drop down of different options for the buyer to choose like Paypal offers?
Is there anyway to have a buy now button with a drop down of different options for the buyer to choose like Paypal offers?
yes.
Create a new column in the cart object for the product option.
In the Add to cart button, select the option column and set it to be Updateable From a select list.
This will add the select list to the page. you can populate the select list with the options you wish to offer.
How would I set up these options with each having a different price and then showing the option in the checkout cart?
I am using a Static
Thanks!!
using a static cart, you will need to do things slightly different, set the price column to be updatable from a select list and set the option column to be updatable from a hidden element.
set the label in the price list to show the option name and the value to that options price.
then use javascript to populate the hidden element with the selected options label.
an example of the modified add to cart form would look like this:
<form name="WA_Store_Cart_1_ATC_10" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>">
<input type="hidden" name="WA_Store_Cart_1_ID_Add" value="10" >
<input type="text" name="WA_Store_Cart_1_Quantity_Add" value="1" size="4" >
<select name="WA_Store_Cart_1_Price_Add" onChange="document.WA_Store_Cart_1_ATC_10.WA_Store_Cart_1_Options_Add.value = document.WA_Store_Cart_1_ATC_10.WA_Store_Cart_1_Price_Add[document.WA_Store_Cart_1_ATC_10.WA_Store_Cart_1_Price_Add.selectedIndex].text">
<option value="5">option 1</option>
<option value="10">option 2</option>
<option value="15">option 3 </option>
<option value="20">option 4</option>
</select>
<input type="hidden" name="WA_Store_Cart_1_Options_Add" value="option 1" >
<input type="submit" class="eC_FormButton" value="Add to Cart" name="WA_Store_Cart_1_ATC">
</form>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.