close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Shipping charges on Specific Line Items mapping to PayPal

Thread began 5/21/2009 7:51 am by randy294090 | Last modified 5/22/2009 8:36 am by randy294090 | 2428 views | 4 replies |

randy294090

Shipping charges on Specific Line Items mapping to PayPal

Hi,

I have added per item shipping charges to my static eCart object and input the per item charge in the bindings tab when creating the button button.

In the cart the shipping charge show in the line item columns, totals in the line and in the Total Charges for the order.

But the line item shipping charges do not transfer to the PayPal totals. I am using the Website Payments Standard.

How do I get the line item shipping to map over the the PayPal line and order totals?

Here is the site and you can test if you wish.

11thstepmeditation.org/

Thanks,

Randy

Sign in to reply to this post

Ray BorduinWebAssist

You need to add the shipping charge to the price in the hidden form element where it is being passed to paypal.

It should be in one of the form elements inside the DO loop for the cart. You will see it is set to the Price column and would need to be updated to add the Shipping column to that price so that paypal will think the total is correct.

You could either do the math right there in the hidden form element, or add a calculation to the cart: PaypalPrice = [Price] + [Shipping]

Then just refer to the PaypalPrice when passing to paypal.

Sign in to reply to this post
Did this help? Tips are appreciated...

randy294090

Hmmm....not sure what DO Loop is. This code below is on my confirm page and looks like it is the data that is passing to PayPal. Is this correct and would you mind showing what line to add the shipping column to the price?

<?php //WA eCart Validation
if ((WA_eCart_FormatNumber($eleventh_step_store->DisplayInfo("Price") - (($eleventh_step_store->DisplayInfo("Price")/$eleventh_step_store->TotalColumn("TotalPrice")) * $eleventh_step_store->GetDiscounts()), false, 2) > 0)) {
?>
<input type="hidden" name="amount_<?php echo $eleventh_step_store_Index+1; ?>" id="amount_<?php echo $eleventh_step_store_Index+1; ?>" value="<?php echo WA_eCart_FormatNumber($eleventh_step_store->DisplayInfo("Price") - (($eleventh_step_store->DisplayInfo("Price")/$eleventh_step_store->TotalColumn("TotalPrice")) * $eleventh_step_store->GetDiscounts()), false, 2) ?>" />
<input type="hidden" name="item_name_<?php echo $eleventh_step_store_Index+1; ?>" id="item_name_<?php echo $eleventh_step_store_Index+1; ?>" value="<?php echo $eleventh_step_store->DisplayInfo("Name") ?>" />
<input type="hidden" name="item_number_<?php echo $eleventh_step_store_Index+1; ?>" id="item_number_<?php echo $eleventh_step_store_Index+1; ?>" value="<?php echo $eleventh_step_store->DisplayInfo("ID") ?>" />
<input type="hidden" name="quantity_<?php echo $eleventh_step_store_Index+1; ?>" id="quantity_<?php echo $eleventh_step_store_Index+1; ?>" value="<?php echo $eleventh_step_store->DisplayInfo("Quantity") ?>" />
<input type="hidden" name="on0_<?php echo $eleventh_step_store_Index+1; ?>" id="on0_<?php echo $eleventh_step_store_Index+1; ?>" value="" />
<input type="hidden" name="os0_<?php echo $eleventh_step_store_Index+1; ?>" id="os0_<?php echo $eleventh_step_store_Index+1; ?>" value="" />
<input type="hidden" name="on1_<?php echo $eleventh_step_store_Index+1; ?>" id="on1_<?php echo $eleventh_step_store_Index+1; ?>" value="" />
<input type="hidden" name="os1_<?php echo $eleventh_step_store_Index+1; ?>" id="os1_<?php echo $eleventh_step_store_Index+1; ?>" value="" />
<?php //WA eCart Validation
}
else {
$eleventh_step_store_Index --;

Sign in to reply to this post

Ray BorduinWebAssist

This is the correct spot. Are you using discounts? The line in question is:

id="amount_<?php echo $eleventh_step_store_Index+1; ?>" value="<?php echo WA_eCart_FormatNumber($eleventh_step_store->DisplayInfo("Price") - (($eleventh_step_store->DisplayInfo("Price")/$eleventh_step_store->TotalColumn("TotalPrice")) * $eleventh_step_store->GetDiscounts()), false, 2) ?>"

You can update it to something like:

id="amount_<?php echo $eleventh_step_store_Index+1; ?>" value="<?php echo WA_eCart_FormatNumber($eleventh_step_store->DisplayInfo("Price") + $eleventh_step_store->DisplayInfo("YourShippingColumnName"), false, 2) ?>"

Sign in to reply to this post
Did this help? Tips are appreciated...

randy294090

That worked! Thanks for your help, Ray!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...