News:

Looking for documentation? Take a look on our wiki

Main Menu

Coupons and the total cost in the cart equal to zero

Started by MaxMi, September 02, 2013, 22:30:08 PM

Previous topic - Next topic

MaxMi

Hello,
I have a problem with payments when inserting a coupon and the total amount becomes zero.

I have VM 2.0.22b and Joomla 2.5.13.

The payment method I use is PayPal and with zero amount virtuemart sends an informational message indicating that "This amount is not valid for payment with Paypal.". I tried to set 2 methods of payment:
1) Paypal, with a minimum amount of € 1
2) ZERO (standard), with a maximum amount of € 1

In this way Virtuemart use PayPal only if the order exceeds € 1 and zero only when the order is less than 1 €, but chooses based on the amount before applying the coupon.

When the order is more than 1 € and I put a coupon code, or a gitf card, even if the total becomes 0 (zero) there is only Paypal, but the payment does not continue ..

Did I forget something?

Thanks

MaxMi

Hello,
I'm not sure you have chosen the right forum, but the problem seems to me quite seriously because the sale of products with Git Card (coupon) creates a problem during the purchase.

It seems to me that virtuemart decide on the method of payment without considering the coupon. I tried to edit the plugin standard.php (payment standard) as follows:
from
$ amount = $ cart_prices ['salesPrice'];
to
$ amount = $ cart_prices ['billTotal'];

It seems to work, check the total price. I do not find, however, how to change paypal.php (and then I would not make errors).
Same developers know how to do? I think it's everyone's problem and then I would be sure that the change is correct.

Thank You
Max

seyi

Seyi A
--------------------
Promotion enhancement for Virtuemart:
   - AwoCoupon FREE - http://www.awocoupon.com/starter
   - AwoCoupon Pro - http://awodev.com/products/joomla/awocoupon
   - AwoRewards - http://awodev.com/products/joomla/aworewards
   - AwoAffiliate - http://awodev.com/products/joomla/awoaffiliate

alatak

Hello

We already have fixed that for the next version and for all payments.

seyi

Seyi A
--------------------
Promotion enhancement for Virtuemart:
   - AwoCoupon FREE - http://www.awocoupon.com/starter
   - AwoCoupon Pro - http://awodev.com/products/joomla/awocoupon
   - AwoRewards - http://awodev.com/products/joomla/aworewards
   - AwoAffiliate - http://awodev.com/products/joomla/awoaffiliate