thestampdad
Technical User
- Nov 2, 2001
- 14
Hello everyone,
I am trying to find a way to use javascript (I no nothing about this) to pass to our PayPal shopping cart the right shipping and handling charge. I was told that javascript would be able to help?
We are selling 3 things that all have a different price and different shipping charge. The shopping cart works if someone purchases just one item but if someone purchases multiple different items we are charging too much shipping and handling.
What I would like to do is take the maximum charge of the items chosen and only charge that amount. One problem I may have is different sizes of the same item seem to take on it's own shipping and handling charge for each size.
Here is an extract of my PayPal Shopping Cart html....
First Item For Sale:
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="abc@123.com">
<input type="hidden" name="item_name" value="2008 Calendar">
<input type="hidden" name="amount" value="16.95">
<input type="hidden" name="shipping" value="10.00">
<input type="hidden" name="shipping2" value="2.00">
<input type="hidden" name="tax" value="1.02"><!-- this is 6% tax GST + no PST on $16.95 -->
<input type="hidden" name="buyer_credit_promo_code" value="">
<input type="hidden" name="buyer_credit_product_category" value="">
<input type="hidden" name="buyer_credit_shipping_method" value="">
<input type="hidden" name="buyer_credit_user_address_change" value="">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="lc" value="CA">
<input type="hidden" name="bn" value="PP-ShopCartBF">
Second Item For Sale:
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="abc@123.com">
<input type="hidden" name="item_name" value="OPC Magazine - Issue # 2">
<input type="hidden" name="amount" value="9.99">
<input type="hidden" name="shipping" value="2.00">
<input type="hidden" name="shipping2" value="1.00">
<input type="hidden" name="tax" value="0.00"><!-- no taxes on magazines -->
<input type="hidden" name="buyer_credit_promo_code" value="">
<input type="hidden" name="buyer_credit_product_category" value="">
<input type="hidden" name="buyer_credit_shipping_method" value="">
<input type="hidden" name="buyer_credit_user_address_change" value="">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="lc" value="CA">
<input type="hidden" name="bn" value="PP-ShopCartBF">
Third Item For Sale - Contains 4 different sizes to choose from:
<td><input type="hidden" name="on0" value="Size">
<strong>Size</strong></td>
<td><select name="os0">
<option value="Medium">(M) Medium
<option value="Large">(L) Large
<option value="Extra Large">(XL) Extra Large
<option value="Extra Extra Large">(XXL) Extra Extra Large</select>
</td>
</tr>
<tr>
<td><input type="hidden" name="on1" value="Colour">
<strong>Colour </strong></td>
<td><select name="os1">
<option value="Navy Blue">Navy Blue</select> </td>
</tr>
</table>
<p>
<input type="image" src=" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src=" width="1" height="1">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="abc@123.com">
<input type="hidden" name="item_name" value="OPC Golf Shirt">
<input type="hidden" name="amount" value="19.99">
<input type="hidden" name="shipping" value="11.00">
<input type="hidden" name="shipping2" value="5.00">
<input type="hidden" name="tax" value="2.80"><!-- this is 6% tax GST + 8% PST on $19.99 -->
<input type="hidden" name="buyer_credit_promo_code" value="">
<input type="hidden" name="buyer_credit_product_category" value="">
<input type="hidden" name="buyer_credit_shipping_method" value="">
<input type="hidden" name="buyer_credit_user_address_change" value="">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="return" value="<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="lc" value="CA">
<input type="hidden" name="bn" value="PP-ShopCartBF">
Thank you in advance for any assistance you can provide.
Dave.
I am trying to find a way to use javascript (I no nothing about this) to pass to our PayPal shopping cart the right shipping and handling charge. I was told that javascript would be able to help?
We are selling 3 things that all have a different price and different shipping charge. The shopping cart works if someone purchases just one item but if someone purchases multiple different items we are charging too much shipping and handling.
What I would like to do is take the maximum charge of the items chosen and only charge that amount. One problem I may have is different sizes of the same item seem to take on it's own shipping and handling charge for each size.
Here is an extract of my PayPal Shopping Cart html....
First Item For Sale:
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="abc@123.com">
<input type="hidden" name="item_name" value="2008 Calendar">
<input type="hidden" name="amount" value="16.95">
<input type="hidden" name="shipping" value="10.00">
<input type="hidden" name="shipping2" value="2.00">
<input type="hidden" name="tax" value="1.02"><!-- this is 6% tax GST + no PST on $16.95 -->
<input type="hidden" name="buyer_credit_promo_code" value="">
<input type="hidden" name="buyer_credit_product_category" value="">
<input type="hidden" name="buyer_credit_shipping_method" value="">
<input type="hidden" name="buyer_credit_user_address_change" value="">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="lc" value="CA">
<input type="hidden" name="bn" value="PP-ShopCartBF">
Second Item For Sale:
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="abc@123.com">
<input type="hidden" name="item_name" value="OPC Magazine - Issue # 2">
<input type="hidden" name="amount" value="9.99">
<input type="hidden" name="shipping" value="2.00">
<input type="hidden" name="shipping2" value="1.00">
<input type="hidden" name="tax" value="0.00"><!-- no taxes on magazines -->
<input type="hidden" name="buyer_credit_promo_code" value="">
<input type="hidden" name="buyer_credit_product_category" value="">
<input type="hidden" name="buyer_credit_shipping_method" value="">
<input type="hidden" name="buyer_credit_user_address_change" value="">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="lc" value="CA">
<input type="hidden" name="bn" value="PP-ShopCartBF">
Third Item For Sale - Contains 4 different sizes to choose from:
<td><input type="hidden" name="on0" value="Size">
<strong>Size</strong></td>
<td><select name="os0">
<option value="Medium">(M) Medium
<option value="Large">(L) Large
<option value="Extra Large">(XL) Extra Large
<option value="Extra Extra Large">(XXL) Extra Extra Large</select>
</td>
</tr>
<tr>
<td><input type="hidden" name="on1" value="Colour">
<strong>Colour </strong></td>
<td><select name="os1">
<option value="Navy Blue">Navy Blue</select> </td>
</tr>
</table>
<p>
<input type="image" src=" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src=" width="1" height="1">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="abc@123.com">
<input type="hidden" name="item_name" value="OPC Golf Shirt">
<input type="hidden" name="amount" value="19.99">
<input type="hidden" name="shipping" value="11.00">
<input type="hidden" name="shipping2" value="5.00">
<input type="hidden" name="tax" value="2.80"><!-- this is 6% tax GST + 8% PST on $19.99 -->
<input type="hidden" name="buyer_credit_promo_code" value="">
<input type="hidden" name="buyer_credit_product_category" value="">
<input type="hidden" name="buyer_credit_shipping_method" value="">
<input type="hidden" name="buyer_credit_user_address_change" value="">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="return" value="<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="lc" value="CA">
<input type="hidden" name="bn" value="PP-ShopCartBF">
Thank you in advance for any assistance you can provide.
Dave.