 Brad
|
I found this regarding Paypal shopping cart weight calculations:
http://www.pdncommunity.com/pdn/board/message?board.id=ppcart&message.id=7056
The Profile Weight Calculations will not work with items that weigh less than one pound. You would need to develop your own mini shopping cart for your items and then upload the data to PayPal. Your other option would be to use a 3rd party shopping cart with the features you desire.
I’m not sure if the shipping calculation functionality is in the currently available version of the BSDDS. The one I’m running (that I need to package up for release) has the following variables in any added item:
quantity
shipping_usd
shipping_cad
shipping_int
shipping_each
Here’s an example excerpt from the code of one of my “add cd to cart” buttons:
<input type="hidden" name="quantity" value="2">
<input type="hidden" name="shipping_usd" value="4">
<input type="hidden" name="shipping_cad" value="3">
<input type="hidden" name="shipping_int" value="5">
<input type="hidden" name="shipping_each" value="0.4">
Customer wants 2 CDs, let’s assume they’re in the US. To calculate the shipping, the cart does this:
- The first CD shipping is $4 (shipping_usd)
- The second CD is $4 (shipping_usd) * 0.4 (shipping_each)
- So it’s $1.60 for each additional CD
This probably doesn’t scale up to orders greater than 5 or 10 but that’s pretty rare in my experience and a lot easier than writing a weight calculator.
|
 meeble
|
brad,
I found this page, which details all of the parameters that can be passed onto PayPal:
https://www.paypal.com/IntegrationCenter/ic_std-variable-reference.html
It seems there are a few weight variables (including weight_cart). How difficult would it be to assign a weight value to each item in bsdds, and then add up the weights of all items, then pass the total on to PayPal?
Or, maybe it would be easier to just pass the weight of each item and just let PayPal do the addition. I’m just trying to think of the *easiest* way to do the mod.
thx
|
 Brad
|
Easiest way would probably be to add weight fields to the items, then have the bsdds calculate the shipping and pass the shipping value to Paypal like it currently does.
|
 meeble
|
ok. i just didn’t see any weight code in bsdds from my looking around. plus, i didn’t see any code for calculating domestic shipping at one rate versus international at another.
|