VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: MaxMi on September 02, 2013, 22:30:08 PM

Title: Coupons and the total cost in the cart equal to zero
Post by: MaxMi on September 02, 2013, 22:30:08 PM
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
Title: Re: Coupons and the total cost in the cart equal to zero
Post by: MaxMi on September 03, 2013, 10:09:29 AM
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
Title: Re: Coupons and the total cost in the cart equal to zero
Post by: seyi on September 17, 2013, 11:25:54 AM
Hello,

I agree, they really should take coupon codes into account.  Here are the solutions we came up with for standard:
http://awodev.com/forum/awocoupon/help-section/skip-select-payment-method#comment-5322

And paypal:
http://awodev.com/forum/awocoupon/help-section/skip-select-payment-method#comment-5350

Title: Re: Coupons and the total cost in the cart equal to zero
Post by: alatak on September 17, 2013, 17:46:35 PM
Hello

We already have fixed that for the next version and for all payments.
Title: Re: Coupons and the total cost in the cart equal to zero
Post by: seyi on September 17, 2013, 17:59:03 PM
Great news, good to hear.