Fred,
This applies to HTML code but the variables should work in your js:
Yes, you can ultilize the variable shipping preference feature to have the buyer choose which area and shipping amount to charge per transaction.
You can turn off the shipping calculator all together and add the necessary shipping variables to the HTML code of your shopping cart buttons.
To review your shipping calculation for your account, please follow these steps:
1. Log into your account at
https://www.paypal.com by entering your email address and password in the Member Login box. This will take you to the "My Account" page.
2. Click the "Profile" subtab.
3. Click the "Shipping Calculations" link in the "Selling Preferences" column.
4. Click on the "Edit" button.
At the bottom of this page you'll notice two box selections:
Check the top box to disable the shipping calculator .
(Top Box)
Click here to disable the shipping fee calculation listed above. Leave unchecked if you wish to have the shipping amounts passed in from PayPal Shopping Cart Purchases, Single Item Purchases, or Donations.
Bottom Box: Don't worry about this setting since your're not using both the shipping calculator and the shipping variables together.
(Bottom Box)
The following box setting is for using the shipping calculator plus the added shipping variables.
Here's a drop down menu shipping preference selection example you can use to have the buyer select their shipping preference Charge Amount:
If you notice that the following was added to the end of our add to cart HTML code.
Please Select Your Shipping Preference:
<select name="shipping">
<option value="3.00">Domestic - $3.00 </option>
<option value="5.00">International - $5.00</option>
</select>
Button starts here:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="YourEmailAddress">
<input type="hidden" name="item_name" value="Test">
<input type="hidden" name="amount" value="$.01">
<input type="image" src="https://www.paypal.com/images/sc-but-03.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" width="106" height="24">
<input type="hidden" name="add" value="1">
Please Select Your Shipping Preference:
<select name="shipping">
<option value="3.00">Domestic - $3.00 </option>
<option value="5.00">International - $5.00</option>
</select>
</form>
Button ends above:
You can change, "Please Select Your Shipping Preference," or " Domestic, International and the dollar amounts to whatever you want."