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?
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?
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?
Well. I'll try again. But I'm pretty sure I uploaded everything. Even deleted the files on the server first.
additionally... Is there a way to create flat rate shipping per country? Select List maybe? USA and Canada.
Failed Again. Only works with the default [Price] * [Quantity] setting. Unless there is another dialog box? Manual doesn't say anything about additional settings.
What only works? What happens when it fails? I need to understand what exactly is failing.
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
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.
I did not see that anywhere in the documentation. In what document or tutorial is the PriceWithShipping instructions located?
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.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.