Payments with shipping and handling fees

dannie
Contributor
Contributor

I sell ceramics and I'm trying to figure out how I can create a button that will let a person buy a piece and put it in the shopping cart, but then the payment is held for me to send an invoice that includes shipping and handling.  Is this possible?

Each piece weighs different.  Thank you!

Login to Me Too
2 REPLIES 2

snowshoe
Frequent Advisor
Frequent Advisor

Unfortunately the Payments Standard cart is not designed to work in that manor.

 

One work around would be to use the shipping override variables and the weight unit variables.  This requires a bit of extra coding and depending on your products and choices may require some additional scripting to manage the logic.  If you're into coding your own stuff, see the example below.  Depending on what you have in mind, you may be able to use online button creator if the button code is simple, else if you need scripting, the code has to be manaully created.  Note, in order for the overides to work, you must have at least one shipping method setup in your account profile.  See this guide for info on how to use the shipping and weight variables. https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pp_websitepaymentsstandard_integrat...

 

If all of this is spooky, then a 3rd party shopping cart may work better for your needs.  Many carts have the features built in.  Here's one example: http://www.e-junkie.com/   You can find others here:  https://www.paypal-marketing.com/emarketing/partner/directory/directory.page;jsessionid=BE3436438EB8...

 

 

<!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 -->
<SCRIPT language=javascript>
function CalculateOrder(form)
{

if (form.os0.value == "Small")
 {
 form.amount.value = 4.00;
 form.item_number.value = "1001-S";
 form.weight.value = ".25";
 }
 
if (form.os0.value == "Medium")
 {
 form.amount.value = 5.00;
 form.item_number.value = "1001-M";
 form.weight.value = ".75";
 }

if (form.os0.value == "Large")
 {
 form.amount.value = 6.00;
 form.item_number.value = "1001-L";
 form.weight.value = ".85";
 }
}  
</SCRIPT>
<!-- End of Script -->


</head>

<body>

<!-- START SAMPLE CODE SECTION -->


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

<br><br>

Add to Cart - how to use the Weight Variables in the Script.

<br><br>


Notes:<br>
In order to see shipping rates, you would setup your Profile Shipping Method based on weight.


<br><br><br>


<!-- START CONTENTS -->

<!-- START BUTTON EXAMPLES -->

Widget Candles

<br><br>

<!-- Start of Add to Cart Form -->
<!-- Note: target="paypal" was replaced with the variable target="_self" -->
<!-- Note: shopping_url also added to code -->
<!-- These two changes allow better functionality with IE and Firefox --> 
<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 in your View Cart code. -->
<input type="hidden" name="cpp_header_image" value="https://www.yourwebsite.com/logo.jpg"> 
<!--  -->
<input type="hidden" name="on0" value="Size">Select Candle Size:&nbsp;&nbsp;
<SELECT name="os0">
<OPTION value="Small" selected>Small Candle - $4.00 - Weight .25 lb</OPTION>
<OPTION value="Medium">Medium Candle - $5.00 - Weight .75 lb</OPTION>
<OPTION value="Large">Large Candle - $6.00 - Weight .85 lb</OPTION>
</SELECT>
<br><br>
<input type="hidden" name="on1" value="Scent">Select Scent:&nbsp;&nbsp;
<SELECT name="os1">
<OPTION value="Vanilla" selected>Vanilla</OPTION>
<OPTION value="Lavender">Lavender</OPTION>
<OPTION value="Apple Pie">Apple Pie</OPTION>
</SELECT>
<br><br>
<INPUT onclick=CalculateOrder(this.form) type="image" alt="Make payments with PayPal - it's fast, free and secure!" 
src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border=0 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 Account ID -->
<input type="hidden" name="business" value="your @ emailaddress.com">
<input type="hidden" name="item_name" value="Widget Candle">
<input type="hidden" name="amount">
<input type="hidden" name="item_number">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="weight">
<input type="hidden" name="weight_unit" value="lbs">
<!-- 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_09.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="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<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 in your View Cart code. -->
<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 Account ID -->
<input type="hidden" name="business" value="your @ emailaddress.com">
<!-- 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_09.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 Account ID.

</body>
</html>

 

Login to Me Too

dannie
Contributor
Contributor

Thank you Snowshoe for your reply!  Wow!  I really appreciated the HTML formula, I dabble a bit in HTML, but most goes over my head.

 

You stated that the Payments Standard cart isn't designed for what I wanted.  What about the Advanced or Pro carts...will they do what I want?

 

My friend said she saw it on E-bay where a person hit the Buy Now Button and it added it to her shopping cart, but when it came to check out there was a note that payment was on hold until the Seller sent an invoice to her to cover shipping and handling fees.  Have you or anyone else here seen that before?  Thank you for all your help.

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.