cancel
Showing results for 
Search instead for 
Did you mean: 

Shipping calculations by weight

Contributor

Shipping calculations by weight

How do I send the total weight to PayPal from a given shopping cart on my site?

 

I'd like to use the shipping calculator in my PayPal profile to determine the shipping amount based on the weight of the cart.

 

I'm currently using a form on my site like this:

 

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="my-paypal-email-address-here" />
<input type="hidden" name="notify_url" value="https://www.mysite.com/payment_received.php" />
<input type="hidden" name="rm" value="2" />
</form>

 

 

Is there a variable to use, such as this:

 

<input type="hidden" name="weight" value="110" />