|
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/25/2002 Posts: 3 Location: ,
|
>> 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?
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 10/17/2002 Posts: 2,139 Location: ,
|
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.
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/25/2002 Posts: 3 Location: ,
|
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.
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
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
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/25/2002 Posts: 3 Location: ,
|
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?
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
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
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/24/2002 Posts: 2,004 Location: ,
|
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
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
Correct, if the merchant has Profile shipping set up. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/12/2002 Posts: 312 Location: ,
|
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?
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.274 seconds.