Shipping methods - non U.S

lizliz
Contributor
Contributor

Hi,

I'm using paypal business account outside of the U.S.

I would like to give my customers the option to choose between 3 shipping methods, each with its own price, and one of them is store pick-up. How can I do that?

 

Thank you in advance!

Login to Me Too
2 REPLIES 2

snowshoe
Frequent Advisor
Frequent Advisor

There's various approaches however, you'e going to need some custom scripting to manage the logic. 

 

*  If your plan is to apply your shipping options to the entire shopping cart, you're going to need either a custom coded mini-cart or a 3rd party shopping cart that has the features you need.   Here's one example of a mini-cart for some ideas:

http://ccaples.com/index.php/basic-scripts/examples-iii/mini-cart-sample

 

* If your plan is apply your shipping options to an individual item, here's another approach:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Button Example Code</title>

<!-- START META TAG SECTION -->
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta http-equiv="Content-Language" content="en">
<!-- END META TAG SECTION -->


<!-- Start of Script CalculateOrder1 -->
<SCRIPT language=javascript>
<!--
function CalculateOrder1(form)
{

if (document.myform.os0.value == "Small")
 {
 document.myform.amount.value = 25.00;
 document.myform.item_number.value = "S-WB-1001";
 if (document.myform.os2.value == "US"){
 document.myform.shipping.value = "10.00";
 document.myform.shipping2.value = "3.00";
 }
 if (document.myform.os2.value == "Canada"){
 document.myform.shipping.value = "15.00";
 document.myform.shipping2.value = "4.00";
 } 
 if (document.myform.os2.value == "Mexico"){
 document.myform.shipping.value = "16.00";
 document.myform.shipping2.value = "5.00";
 }
 if (document.myform.os2.value == "Europe"){
 document.myform.shipping.value = "20.00";
 document.myform.shipping2.value = "6.00";
 }
 }
 
if (document.myform.os0.value == "Medium")
 {
 document.myform.amount.value = 50.00;
 document.myform.item_number.value = "M-WB-2002";
 if (document.myform.os2.value == "US"){
 document.myform.shipping.value = "10.00";
 document.myform.shipping2.value = "3.00";
 }
 if (document.myform.os2.value == "Canada"){
 document.myform.shipping.value = "15.00";
 document.myform.shipping2.value = "4.00";
 } 
 if (document.myform.os2.value == "Mexico"){
 document.myform.shipping.value = "16.00";
 document.myform.shipping2.value = "5.00";
 }
 if (document.myform.os2.value == "Europe"){
 document.myform.shipping.value = "20.00";
 document.myform.shipping2.value = "6.00";
 }
 }
 
 
 if (document.myform.os0.value == "Large")
 {
 document.myform.amount.value =  75.00;
 document.myform.item_number.value = "L-WB-3003";
 if (document.myform.os2.value == "US"){
 document.myform.shipping.value = "10.00";
 document.myform.shipping2.value = "3.00";
 }
 if (document.myform.os2.value == "Canada"){
 document.myform.shipping.value = "15.00";
 document.myform.shipping2.value = "4.00";
 } 
 if (document.myform.os2.value == "Mexico"){
 document.myform.shipping.value = "16.00";
 document.myform.shipping2.value = "5.00";
 }
 if (document.myform.os2.value == "Europe"){
 document.myform.shipping.value = "20.00";
 document.myform.shipping2.value = "6.00";
 }
 }
}
//-->  
</SCRIPT>
<!-- End of Script CalculateOrder1 -->



</head>

<body>

<!-- START SAMPLE CODE SECTION -->


<!-- PARAGRAPH 1 -->
Shipping &amp; Delivery Examples

<br><br>

Add to Cart - Options for International Selections.

<br><br>

Widget Block

<br><br>

<!-- Start of Add to Cart Form -->
<!-- Note: target="paypal" was replaced with target="_self" -->
<!-- Note: shopping_url also added to code -->
<!-- These two changes allow better functionality with IE and Firefox --> 
<form method="post" action="https://www.paypal.com/cgi-bin/webscr" target="_self" name="myform">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable. -->
<input type="hidden" name="cpp_header_image" value="https://www.yourwebsite.com/logo.jpg"> 

Select Size:&nbsp;&nbsp;
<input value="Size" type="hidden" name="on0">
<select name="os0">
<option value="Small" selected>Small - $25.00</option>
<option value="Medium">Medium - $50.00</option>
<option value="Large">Large - $75.00</option>
</select>

<br><br>

Select Color:&nbsp;&nbsp;
<input type="hidden" name="on1" value="Color">
<input NAME="os1" type="radio" value="Green" checked>Green&nbsp;&nbsp;&nbsp;
<input NAME="os1" type="radio" value="Red">Red&nbsp;&nbsp;&nbsp;
<input NAME="os1" type="radio" value="Blue">Blue&nbsp;&nbsp;&nbsp;
<input NAME="os1" type="radio" value="Yellow">Yellow


<br><br>

Select Shipping Destination:&nbsp;&nbsp;
<input type="hidden" name="on2" value="Shipping Destination">
<select name="os2">
<option value="US" selected>US - Any Size | $10 First Item | $3.00 Ea Additional Item</option>
<option value="Canada">Canada - Any Size | $15 First Item | $4.00 Ea Additional Item</option>
<option value="Mexico">Mexico - Any Size | $16 First Item | $5.00 Ea Additional Item</option>
<option value="Europe">Europe - Any Size | $20 First Item | $6.00 Ea Additional Item</option>
</select>

<br><br><br>

<input onclick=CalculateOrder1(document.myform) border="0" alt="Make payments with PayPal - it's fast, free and secure!" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" type="image" name="submit">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
<!-- -->
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID -->
<input type="hidden" name="business" value="your email address">
<input type="hidden" name="item_name" value="Widget Block">
<input type="hidden" name="amount">
<input type="hidden" name="item_number">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="shipping">
<input type="hidden" name="shipping2">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<!-- Replace value with the web page you want the customer to return to -->
<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/Shipping_Delivery_01.html">
<!-- Replace value with the web page you want the customer to return to after a successful transaction -->
<input type="hidden" name="return" value="http://www.yourwebsite.com/ThankYou.html">
<!-- Replace value with the web page you want the customer to return to after item cancellation -->
<input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/Cancel.html">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">
</form>
<!-- End of Form -->

<br>

<!--  Start of View Cart Button Code  -->
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable. -->
<input type="hidden" name="cpp_header_image" value="https://www.yourwebsite.com/logo.jpg"> 
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="display" value="1">
<!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID -->
<input type="hidden" name="business" value="your email address">
<!-- Replace value with the web page you want the customer to return to -->
<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/Shipping_Delivery_02.html">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_viewcart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form> 
<!--  End of View Cart Button Code  -->



<!-- END BUTTON EXAMPLES -->



<!-- END SAMPLE CODE SECTION -->

<br><br><br><br>
<hr align="left" width="50%" noshade>
<br><br>
NOTES:
<br>
In order to test the code, you must replace the &quot;business&quot; value variable with your PayPal Email Address or your Merchant Account ID.

</body>
</html>

 

Login to Me Too

lizliz
Contributor
Contributor

Thank you.

The shipping options should be for the entire shopping cart. I looked at the example but I'm not sure, how do I even start to have the mini cart?

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.