close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Charge Rule

Thread begun 3/31/2022 10:08 am by Rick | Last modified 4/03/2022 10:53 am by Ray Borduin | 1236 views | 24 replies |

Rick

Charge Rule

neither one of these calculations are working. resulting in a failed transaction.

TotalPrice = ([Price] + [Shipping]) * [Quantity]

or

TotalShipping = [Shipping] * [Quantity]

Is there another setting somewhere?

Sign in to reply to this post

Ray BorduinWebAssist

Those should work. Are you sure that is the source of the problem? Maybe the shipping isn't being set properly and the rule isn't the issue. Maybe you didn't upload the eCart object after updating the rule?

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

Rick

Well. I'll try again. But I'm pretty sure I uploaded everything. Even deleted the files on the server first.

Sign in to reply to this post

Rick

additionally... Is there a way to create flat rate shipping per country? Select List maybe? USA and Canada.

Sign in to reply to this post

Rick

Failed Again. Only works with the default [Price] * [Quantity] setting. Unless there is another dialog box? Manual doesn't say anything about additional settings.

Sign in to reply to this post

Ray BorduinWebAssist

What only works? What happens when it fails? I need to understand what exactly is failing.

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

Rick

The cart going to PayPal only works with the default [Price] * [Quantity] setting. Adding shipping to the calculation brings - Sorry... Transaction Failed. Cart price does not match content. something like that. Now... the cart is getting sent to PayPal but ignoring the shipping calculation.

$ATC_itemPrice = floatval("1.00");// column binding
$ATC_itemShipping = floatval("1.00");// column binding

Sign in to reply to this post

Ray BorduinWebAssist

You would have to add another calculation:

PriceWithShipping = [Price] + [Shipping]

Then use the PriceWithShipping as the item price when passing it to paypal.

Paypal requires that the sum of the individual prices equal the TotalPrice. So if you account for the shipping in the TotalPrice then you also have to account for it in the individual item price when passing it to paypal.

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

Rick

I did not see that anywhere in the documentation. In what document or tutorial is the PriceWithShipping instructions located?

Sign in to reply to this post

Ray BorduinWebAssist

I'm not sure... What documentation did you follow to implement the TotalPrice and TotalShipping calculations? I imagine it should be included in that. There are other ways it could be accounted for too. I'm just suggesting one way to account for it.

The problem is that the TotalPrice has to be the same as the sum of the individual prices or paypal will think there is a mistake and will reject the order.

The solution is to make sure the numbers add up. That means either account for it in both places or in neither place, but you can't change one without the other when using paypal.

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

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...