PDA

View Full Version : Shipping Costs by Weight


Jules1777
01-19-2011, 07:26 PM
Hi

I wonder if anyone can help. I am using Paypal for my payments on my online shop, although I want to calculate the shipping costs based on the weights of my items.

Paypal have said I can do this using the 'shipping' and 'shipping2' variables, although I am not quite sure how to make up these variables or how to integrate them into my site using the weight value instead of cost value.

Can anyone help, or do you need more information from me?

Regards
Jules1777
:confused:

johnMoss
01-19-2011, 11:10 PM
Since you've posted your question in this html section I assume you are trying to write a sequence for this? I assume therefore also you are not using an established e-commerce system? Your payment method is inconsequential to to determining a price, it handles charge only, as would visa, mastercard etc. So if are you looking for a subroutine to handle automated weight/price calculations you would want to start by visiting any possible developer sites within the shippers, like UPS or the post office for example. Here for example you can look at UPS's developer guide. This oughta get you started...
http://www.ups.com/gec/techdocs/pdf/RatesandServiceHTML.pdf (http://www.ups.com/gec/techdocs/pdf/RatesandServiceHTML.pdf)

The code you get here will easily dump it's result exactly where you want it in your invoice fields...

Jules1777
01-20-2011, 02:17 PM
Thanks for you reply John. My website is www.lovebiltong.co.uk.

If you look at the page http://www.lovebiltong.co.uk/jerky/jerky.html

If you choose for example: Original Beef > 75g 3.10, then press add to cart. The shopping cart that comes up automatically charges the Postage and Package by the total price in the cart. What I need to happen is the Postage and Package to be charged by the total weight in the cart.

Is there an easy way of changing this?

johnMoss
01-20-2011, 03:04 PM
Ok, I looked at it... Apparently Paypal is moving further into the e-com world, I didn't realize they have added the shipping calc to their functionality... I went and looked at it and indeed you can add automated shipping calculation, BUT, only in the U.S. They're not setup for anything not based in the U.S. I assume your in England? This means you're going to have to build your own calculator if you want that type of functionality. Sounds hairy but it shouldn't be too formidable. You need to choose a shipper, then go to their site & find their developer tools for doing this. The complete code should be there... I'd at least give that a shot...

Jules1777
01-21-2011, 10:59 AM
Thanks again John, I will give it a shot.
Have you heard of 'Alert Pay'? Someone has mentioned this to me to use instead of Paypal, anyone got any recommendations for it?

johnMoss
01-21-2011, 01:03 PM
I haven't, no...