YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Problem with charging shipping Options
moryoav
#1 Posted : Tuesday, November 17, 2009 10:03:54 AM
Rank: Starting Member

Groups: Registered

Joined: 2/3/2009
Posts: 2
Location: ,
Hello,

I have set a table of shipping charges under the PayPal profile. If I use the PayPal's own Buy Now buttons then shipping charges work fine.
I'm working on something more dynamic and the shipping doesn't work well there.

I want to charge by weight. I have set the params for "weight_1" to "weight_12". Only the first item gets a shipping price, the rest have free shipping.
The result: The user is not charged for shipping at all.

What am I doing wrong?

Thanks!

(I'm dynamically filling out the amount_X and item_name_Y according to a selection by the user).

<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="business" value="mybusinessname">
<input type="hidden" name="item_name_1" value="" />
<input type="hidden" name="amount_1" value="" />
<input type="hidden" name="item_name_2" value="" />
<input type="hidden" name="amount_2" value="" />
<input type="hidden" name="item_name_3" value="" />
<input type="hidden" name="amount_3" value="" />
<input type="hidden" name="item_name_4" value="" />
<input type="hidden" name="amount_4" value="" />
<input type="hidden" name="item_name_5" value="" />
<input type="hidden" name="amount_5" value="" />
<input type="hidden" name="item_name_6" value="" />
<input type="hidden" name="amount_6" value="" />
<input type="hidden" name="item_name_7" value="" />
<input type="hidden" name="amount_7" value="" />
<input type="hidden" name="item_name_8" value="" />
<input type="hidden" name="amount_8" value="" />
<input type="hidden" name="item_name_9" value="" />
<input type="hidden" name="amount_9" value="" />
<input type="hidden" name="item_name_10" value="" />
<input type="hidden" name="amount_10" value="" />
<input type="hidden" name="item_name_11" value="" />
<input type="hidden" name="amount_11" value="" />
<input type="hidden" name="item_name_12" value="" />
<input type="hidden" name="amount_12" value="" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="no_shipping" value="2" />
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="weight_unit" value="kgs" />
<input type="hidden" name="weight_1" value="1.0" />
<input type="hidden" name="weight_2" value="0" />
<input type="hidden" name="weight_3" value="0" />
<input type="hidden" name="weight_4" value="0" />
<input type="hidden" name="weight_5" value="0" />
<input type="hidden" name="weight_6" value="0" />
<input type="hidden" name="weight_7" value="0" />
<input type="hidden" name="weight_8" value="0" />
<input type="hidden" name="weight_9" value="0" />
<input type="hidden" name="weight_10" value="0" />
<input type="hidden" name="weight_11" value="0" />
<input type="hidden" name="weight_12" value="0" />
<input type="hidden" name="weight_cart" value="1" />
<input type="hidden" name="baseamt" value="189.00" />
<input type="hidden" name="basedes" value="Quicktionary2" />
Sponsor  
 
nds_webdesign
#2 Posted : Wednesday, November 25, 2009 3:44:08 AM
Rank: Junior Member

Groups: Registered

Joined: 10/15/2009
Posts: 159
Location: Omaha, NE USA
Instead of passing all that data to PayPal try passing it to a script and then calculate the weight on your side and post it to PayPal as the value of the "weight" variable.

example:

Code:

for(int i = 0; i <= weightArray.Length; i++)
{
weight = weight + weight[i];
}

//build your string and do a redirect to PayPal

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.291 seconds.