How to get more item info to show up in shopping cart

Toobusy
Contributor
Contributor

I have created a drop down menu with quantity and price choices (just two).   It's one item with two purchases choices:   4 per set for .88 or 17.60 for a bag of 100.   Clicking on either choice in the drop down menu works to add that item to the shopping cart but it just shows the name of the item (1/2" 8 Spoke Metal Wheel), item code (2050)  and then the price.  I can not get the "4 per set" or "bag of 100" to show up in the shopping cart even though they show up in the drop down menu.   It would be nice to have that show up so we which purchase choice they want other than by price.

 

Current code:

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="CW8AZYTXUFCV4">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="1/2 in. 8 Spoke Metal Wheel">
<input type="hidden" name="item_number" value="2050">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="add" value="1">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">

<table>
<tr><td><select name="os0">
<option value="Set of 4">Set of 4 - $0.88</option>
<option value="Bag of 100">Bag of 100 -  $17.60</option>
</select></td></tr>
</table>

<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="option_select0" value="Set of 4">
<input type="hidden" name="option_amount0" value="0.88">
<input type="hidden" name="option_select1" value="Bag of 100">
<input type="hidden" name="option_amount1" value="17.60">
<input type="hidden" name="option_index" value="0">
<input type="image" src="Graphics/paypaladdtocart.gif"  border="0" name="submit" alt="Add To Cart">

 

Is there any way to have those two choices show up in the shopping cart somewhere?   If I modify item name value, it won't work because it's one item with two purchase choices so I can't be that specific in the description.

 

Thanks....

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

PayPal_Frank
Administrator
Administrator

Hi Toobusy,

 

I know you're really busy 😉 but this code will work for you:

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="CW8AZYTXUFCV4">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="1/2 in. 8 Spoke Metal Wheel">
<input type="hidden" name="item_number" value="2050">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="add" value="1">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">

<table>
<tr><td><input type="hidden" name="on0" value="Quantity">Quantity</td></tr><tr><td><select name="os0">
<option value="Set of 4">Set of 4 - $0.88</option>
<option value="Bag of 100">Bag of 100 -  $17.60</option>
</select></td></tr>
</table>

<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="option_select0" value="Set of 4">
<input type="hidden" name="option_amount0" value="0.88">
<input type="hidden" name="option_select1" value="Bag of 100">
<input type="hidden" name="option_amount1" value="17.60">
<input type="hidden" name="option_index" value="0">
<input type="image" src="Graphics/paypaladdtocart.gif"  border="0" name="submit" alt="Add To Cart">

 I added the following code which sets the name of the options to "Quantity" .  You can change that to whatever you want to call the options.  Once the buyer clicks the add to cart button, the option they chose will appear under the item name during checkout.

<tr><td><input type="hidden" name="on0" value="Quantity">Quantity</td></tr>

 

I hope this helps! 🙂

 

- Frank

 

If you see a helpful post, please accept it as a solution or give the author kudos. 🙂 Thanks!

View solution in original post

Login to Me Too
2 REPLIES 2
Solved

PayPal_Frank
Administrator
Administrator

Hi Toobusy,

 

I know you're really busy 😉 but this code will work for you:

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="CW8AZYTXUFCV4">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="1/2 in. 8 Spoke Metal Wheel">
<input type="hidden" name="item_number" value="2050">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="add" value="1">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">

<table>
<tr><td><input type="hidden" name="on0" value="Quantity">Quantity</td></tr><tr><td><select name="os0">
<option value="Set of 4">Set of 4 - $0.88</option>
<option value="Bag of 100">Bag of 100 -  $17.60</option>
</select></td></tr>
</table>

<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="option_select0" value="Set of 4">
<input type="hidden" name="option_amount0" value="0.88">
<input type="hidden" name="option_select1" value="Bag of 100">
<input type="hidden" name="option_amount1" value="17.60">
<input type="hidden" name="option_index" value="0">
<input type="image" src="Graphics/paypaladdtocart.gif"  border="0" name="submit" alt="Add To Cart">

 I added the following code which sets the name of the options to "Quantity" .  You can change that to whatever you want to call the options.  Once the buyer clicks the add to cart button, the option they chose will appear under the item name during checkout.

<tr><td><input type="hidden" name="on0" value="Quantity">Quantity</td></tr>

 

I hope this helps! 🙂

 

- Frank

 

If you see a helpful post, please accept it as a solution or give the author kudos. 🙂 Thanks!
Login to Me Too

Toobusy
Contributor
Contributor

Well...thank you so very much!    Worked like a charm.    I had seen that piece of code before but kept thinking I didn't need it.  Thanks for proving me wrong.  Smiley Wink

 

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.