close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Need multiple options displayed on paypal checkout

Thread began 10/29/2009 11:53 am by alinart392471 | Last modified 10/29/2009 1:51 pm by alinart392471 | 942 views | 1 replies


Need multiple options displayed on paypal checkout

When items are added to the cart... only the item number displays on checkout.
I'm using just a simple javascript integration for paypal. No PHP.

When the customer checks out, there is no indication of what size or color they chose despite having those options available. How can I get more than just the first option to display? I tried adding the option variables that I found in the developers section of paypal but it didn't work.

This is the code on the item page

<input type="hidden" class="item_number" value="M1001" name="on0"/> </form>
<select class="item_size" name="on1">
<option value="S"> S </option>
<option value="M"> M </option>
<option value="L"> L </option>
<option value="XL"> XL </option>
<option value="XXL"> XXL </option>
<select class="item_color" name="on2">
<option value="Blk/Wht"> Black/White </option>
<option value="Nvy/Pfc"> Navy/Pacific </option>
<input value="1" class="item_Quantity" type="text" size="3">

and this is part of my javascript coding:

this.paypalCheckout = function() {

var winpar = "scrollbars,location,resizable,status",
strn = "" +
"&upload=1" +
"&business=" + +
"&currency_code=" + this.currency,
counter = 1,
itemsString = "";

if( this.taxRate ){
strn = strn +
"&tax_cart=" + this.currencyStringForPaypalCheckout( this.taxCost );

for( var current in this.items ){
var item = this.items[current];

var optionsString = "";
for( var field in item ){
if( typeof(item[field]) != "function" && field != "id" && field != "price" && field != "quantity" && field != "name" /*&& field != "shipping"*/) {
optionsString = optionsString + "&" + field + "=" + item[field] ;
optionsString = optionsString.substring(1);

itemsString = itemsString + "&item_name_" + counter + "=" + +
"&item_number_" + counter + "=" + counter +
"&quantity_" + counter + "=" + item.quantity +
"&amount_" + counter + "=" + this.currencyStringForPaypalCheckout( item.price ) +
"&on0_" + counter + "=" + "Options" +
"&os0_" + counter + "=" + optionsString;

if( this.shipping() != 0){
itemsString = itemsString + "&item_name_" + counter + "=Shipping" +
"&item_number_" + counter + "=" + counter +
"&quantity_" + counter + "=1" +
"&amount_" + counter + "=" + this.currencyStringForPaypalCheckout( this.shippingCost );

strn = strn + itemsString ; (strn, "paypal", winpar);

Please help as this needs to be resolved asap.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...