Hi,
I'm currently having problems applying a 10% members discount for a product that uses Paypal Standard as the payment method.
The discount shows correctly all through the checkout process - but on the final review pane, the hidden Paypal form does not have the correct amount.
I have added a CA with the trigger "Calculate product discounts".
Heres the action:
Title: Apply a discount
Operation: Multiply
Amount: -0.1
Discount type:
Products
Hidden form field on review page:
This should say 8.01....
Has anybody had this problem before? I'm not sure if I should be using an additional CA to calculate the amount at payment stage as well?
Comments
Comment #1
maikeru commentedOops, heres the hidden field in the paypal form, which should have a value of 8.01:
<input type="hidden" name="amount_2" id="edit-amount-2" value="8.90" />Comment #2
maikeru commentedI just noticed the correct total is being sent to Paypal.
So to get around the problem I selected "Submit the whole order as a single line item." in admin/store/settings/payment/edit/methods.
Not sure if this is the only way to get around it, looking into uc_paypal.module line 982 it says:
// List the whole cart as a single item to account for fees/discountsSo I'm assuming this is the correct way to calculate discounts with Paypal....
Michael
Comment #3
MBroberg commentedYes that is a standard method of getting around the "PayPal doesn't like negative numbers" problem. But there is also a patch here:
http://drupal.org/node/815482