Option variables onX and osX are not passed to PayPal from my custom shopping cart

I created a custom shopping cart which allows visitors to add items to a shopping cart on my site and to checkout the items via PayPal.

PROBLEM: All the variables and their values are transfered to Paypal except on1,os1 and on2,os2 below.  

Your assistance in resolving this issue will be appreciated.

Thank you.

<form id="Paypal" name="Paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="invoice" value="201177EF21FFAA5" />
<input type="hidden" name="shipping" value="11.2" />
<input type="hidden" name="item_name_1" value="Meade T-Shirt" />
<input type="hidden" name="amount_1" value="16.00" />
<input type="hidden" name="quantity_1" value="1" />
<input type="hidden" name="on1" value="Size" />
<input type="hidden" name="os1" value="Medium" />
<input type="hidden" name="shipping_1" value="11.2" />
<input type="hidden" name="item_name_2" value="Stylist's Cape" />
<input type="hidden" name="amount_2" value="24.99" />
<input type="hidden" name="quantity_2" value="3" />
<input type="hidden" name="on2" value="Color" />
<input type="hidden" name="os2" value="Lime Green" />
<input type="hidden" name="shipping_2" value="12.13" />
<input type="hidden" name="first_name" value="Peter" />
<input type="hidden" name="last_name" value="Jones" />
<input type="hidden" name="address1" value="200 Liberty Street" />
<input type="hidden" name="address2" value="" />
<input type="hidden" name="city" value="Liverpool" />
<input type="hidden" name="state" value="NY" />
<input type="hidden" name="zip" value="10010" />
<input type="hidden" name="email" value="peterj@noemail.net" />
<input type="hidden" name="business" value="shop@mydomain.com" />
<input type="hidden" name="no_note" value="0" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="lc" value="USA" />
<input type="hidden" name="return" value="http://www.mydomain.com/feedback-shop.aspx?PayPal=Success" />
<input type="hidden" name="notify_url" value="http://www.mydomain.com/feedback-shop.aspx" />
<input name="cpp_header_image" type="hidden" value="https://www.mydomain.com/images/ecomm/logoForPaypal.png" />
<input type="hidden" name="cancel_return" value="http://www.mydomain.com/feedback-shop.aspx?PayPal=Cancel" />
<input type="hidden" name="cn" value="How did you hear about us?" />
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DeMyuAuthor Commented:

I have attached a screenshot of the problem.

Thank you.

Screenshot of problem
Scott MadeiraCommented:
I think you are using these incorrectly.  The variables are on0, os0, on1 and os1 and they apply to each item not to a running total of the items.  Also, they apply to a PayPal shopping cart (or buy now or subscription button) and not a custom cart that you created.

these variables are not valid for a custom cart.  What you can do though is set your Item_Name_1 varaible to include the options like this:

<input type="hidden" name="item_name_1" value="Meade T-Shirt - Size: Medium" />
<input type="hidden" name="amount_1" value="16.00" />
<input type="hidden" name="quantity_1" value="1" />

You would collect the values in your cart form and then concatenate them together as the item name assuming the nameisn't longer than what payPal can accept.

Hope that helps...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DeMyuAuthor Commented:
Thank you!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.