Jump to content


Photo

Problem with Shipping Variables..


  • This topic is locked This topic is locked
9 replies to this topic

#1 badger

badger

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 25 November 2002 - 04:41 PM


>> Adding PayPal Checkout to 3rd Party Shopping Carts

I am working on implementing just such a thing, and I have read the article over and over again.
Specifically I need to know if the shipping variable are working correctly.

They do not appear to be working correctly..

Here is an example of my code:

<form 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='item_name_1' value='S.E.M;I - Electric Cell'>
<input type='hidden' name='item_number_1' value='SYNC011'>
<input type='hidden' name='quantity_1' value='1'>
<input type='hidden' name='shipping1_1' value='$1.50'>
<input type='hidden' name='shipping2_1' value='$1.00'>
<input type='hidden' name='amount_1' value='$9.00'>
<input type='hidden' name='item_name_2' value='Negative Format - Distant Pulses'>
<input type='hidden' name='item_number_2' value='NEGF003'>
<input type='hidden' name='quantity_2' value='1'>
<input type='hidden' name='shipping1_2' value='$1.50'>
<input type='hidden' name='shipping2_2' value='$1.00'>
<input type='hidden' name='amount_2' value='$12.50'>
<input type='hidden' name='business' value='badger@badger.cx'>
<input type='image' src='http://images.paypal.com/images/x-click-but01.gif' name='submit' alt='Order with Paypal'>
</form>

By my personal calculations, shipping should be an additional $2.50, but this doesn't appear when I go through the process with a different user. What am I doing wrong? I need to be able to set the shipping per item from my shopping cart since I ship to different regions in the world, and need to be able adjust my shipping prices for different countries.


Help?

#2 PayPalStephen

PayPalStephen

    Advanced Member

  • Members
  • 2,138 posts

Posted 26 November 2002 - 12:04 PM

The first shipping should not have a ( 1 ) after it.

Try this:

<form 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='item_name_1' value='S.E.M;I - Electric Cell'>
<input type='hidden' name='item_number_1' value='SYNC011'>
<input type='hidden' name='quantity_1' value='1'>
<input type='hidden' name='shipping_1' value='$1.50'>
<input type='hidden' name='shipping2_1' value='$1.00'>
<input type='hidden' name='amount_1' value='$9.00'>
<input type='hidden' name='item_name_2' value='Negative Format - Distant Pulses'>
<input type='hidden' name='item_number_2' value='NEGF003'>
<input type='hidden' name='quantity_2' value='1'>
<input type='hidden' name='shipping_2' value='$1.50'>
<input type='hidden' name='shipping2_2' value='$1.00'>
<input type='hidden' name='amount_2' value='$12.50'>
<input type='hidden' name='business' value='badger@badger.cx'>
<input type='image' src='http://images.paypal.com/images/x-click-but01.gif' name='submit' alt='Order with Paypal'>
</form>


Stephen Ivaskevicius
PayPal/eBay, Inc.

#3 badger

badger

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 27 November 2002 - 05:13 PM

That didn't work either. Neither does removing teh shipping variable out of the loop.. based on input from the dev's at PayPal..

Here is my new code (that still does not show shipping values.

<form 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='no_shipping' value='1'>
<input type='hidden' name='shipping' value='$1.50'>
<input type='hidden' name='shipping2' value='$1.00'>
<input type='hidden' name='item_name_1' value='S.E.M;I - Electric Cell'>
<input type='hidden' name='item_number_1' value='SYNC011'>
<input type='hidden' name='quantity_1' value='1'>
<input type='hidden' name='amount_1' value='$9.00'>
<input type='hidden' name='item_name_2' value='Monstrum Sepsis - Primordial Notion [2CD]'>
<input type='hidden' name='item_number_2' value='SYNC008'>
<input type='hidden' name='quantity_2' value='1'>
<input type='hidden' name='amount_2' value='$11.00'>
<input type='hidden' name='business' value='badger@badger.cx'>
<input type='image' src='http://images.paypal.com/images/x-click-but01.gif' name='submit' alt='Order with Paypal'>
</form>

I'm stumped here.

#4 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 28 November 2002 - 08:06 PM

Stephen's FORM is correct and works OK for me. What is the problem you are seeing?

Note: you won't see the shipping amounts until you get to teh second PayPal page.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn

#5 badger

badger

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 02 December 2002 - 05:22 PM

The problem I am seeing is that the shipping is not calculated when I get to step 2.

I don't even see a line for it.

Here is the latest code attempt. (as generated by my ASP code)

<form 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='business' value='badger@badger.cx'>
<input type='hidden' name='no_shipping' value='1'>
<input type='hidden' name='shipping' value='1.00'>
<input type='hidden' name='shipping2' value='1.00'>
<input type='hidden' name='cs' value='1'>
<input type='hidden' name='item_name_1' value='S.E.M;I - Electric Cell'>
<input type='hidden' name='item_number_1' value='SYNC011'>
<input type='hidden' name='quantity_1' value='1'>
<input type='hidden' name='amount_1' value='$9.00'>
<input type='hidden' name='item_name_2' value='Negative Format - Distant Pulses'>
<input type='hidden' name='item_number_2' value='NEGF003'>
<input type='hidden' name='quantity_2' value='1'>
<input type='hidden' name='amount_2' value='$12.50'>
<input type='hidden' name='item_name_3' value='St. Vitus Dance - The Feeling of Absence'>
<input type='hidden' name='item_number_3' value='SVD001'>
<input type='hidden' name='quantity_3' value='1'>
<input type='hidden' name='amount_3' value='$11.00'>
<input type='image' src='http://images.paypal.com/images/x-click-but01.gif' name='submit' alt='Order with Paypal'>
</form>

When I login as a different user than my main account, I see all three items in the shopping cart.

after going to step two, where the shipping SHOULD be calculated, I don't see any line for shipping. there is no next step after this page, it is the PAY page.

Help?


#6 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 02 December 2002 - 06:24 PM

That's inocrrect. It needs to be like:

<input type='hidden' name='shipping_1' value='$1.50'>
<input type='hidden' name='shipping2_1' value='$1.00'>

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn

#7 ron

ron

    Advanced Member

  • Members
  • 2,003 posts

Posted 08 December 2002 - 01:53 PM

Sorry, but doesn't PayPal's documentation say that before shipping and shipping2 will work that the user has to check the "allow override" box in the profile? Didn't try it, but rememberr reading that...

Ron.


close

#8 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 09 December 2002 - 01:31 PM

Correct, if the merchant has Profile shipping set up.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn

#9 Guest(old)

Guest(old)

    Junior Member

  • Members
  • 312 posts

Posted 11 December 2002 - 05:17 PM

I wonder whether this thread relates to what I am trying to do. I need to be able to enable the purchaser to select one of three shipping ooptions (costs) depending on the part of the world that they live in eg. Ship within the USA $4.00, Whip to Europe $19.50, Ship to Asia $20.50. Can this be done?

How do I include multiple shipping payment options?

#10 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 11 December 2002 - 06:44 PM

One option: http://www.paypaldev...asp?TOPIC_ID=73

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users