VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: rfilgueiras on June 18, 2016, 12:35:46 PM

Title: Free products
Post by: rfilgueiras on June 18, 2016, 12:35:46 PM
Hello,

I have virtuemart 3 and joomla 3.x.

If the total price of my cart is 0, virtuemart redirect to a payment service.

Is there any plugin for free products?

I dont want to redirect to the payment service.

Thanks,
Rodrigo
Title: Re: Free products
Post by: jenkinhill on June 18, 2016, 12:51:57 PM
I did it like this for a client:
Set Minimum Amount of 0.01 for your normal payment plugin.
Set up a standard payment plugin as "No charge" with Maximum Amount set to 0.009

You should test the min/max values on your own site.
Title: Re: Free products
Post by: rfilgueiras on June 18, 2016, 14:11:25 PM
Thanks @jenkinhill,

And if the total price can be 0 but also it can be not equals to zero (20 dollars for example).


I can have two options:

Final price 0 euros
Final price higher than 0 euros.

Thanks,
Rodrigo
Title: Re: Free products
Post by: jenkinhill on June 18, 2016, 16:37:48 PM
My solution works for not going to the usual payment plugin if the final cart price effectively is zero. That's all it does. More than zero or if shipping charges apply then payment is requested as normal.