VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: QuannyUK on November 02, 2013, 16:18:54 PM

Title: Confirming a Zero-valued Order [SOLVED]
Post by: QuannyUK on November 02, 2013, 16:18:54 PM
VirtueMart version: 2.0.22a
Address: www.barryrogersschoolofsewing.co.uk/online-shop


Hello,

I have just installed AwoCoupon Pro in order to allow for gift certificates to be used on my site, and this has presented an issue regarding orders which come in at at zero value.  From what I have been advised, this is an issue within VirtueMart, rather than an issue with the plugin, hence posting here.  If that's not correct, please let me know however any support would be fantastic.

What is happening, is that when coupons / gift certificates are added bringing an order's value down to zero, the order does not get the 'Confirmed' status automatically.  I've tried setting up a special postage and payment option to sort it out, but setting a Max Order Value to them of 0 just shows them up for all orders.

Essentially, my question is... how can I have VirtueMart automatically set the status of a zero-valued order to 'Confirmed'?

Thanks,

- Adam.
Title: Re: Confirming a Zero-valued Order
Post by: jenkinhill on November 02, 2013, 22:31:15 PM
A fix for this was included in a later version, now at 2.0.24, very soon 2.0.24a will be released with more small bugfixes. http://virtuemart.net/news/latest-news/449-virtuemart-2-0-24-is-available-includes-sofort-banking
Title: Re: Confirming a Zero-valued Order
Post by: QuannyUK on November 04, 2013, 15:47:21 PM
Hi,

I just updated to 2.0.24, but I still have the same problem.  I placed a product in the Cart for £1.00, applied a Coupon bringing the total value to £0.00, and went through the checkout.  I had to select a payment option, which remained at Pending when the order went through.  It didn't change to Confirmed, so no confirmation emails to anybody.

Do I need to set up some sort of special payment method?  Or, should VirtueMart set the order as 'Confirmed' automatically for a £0.00 valued order?

- Adam.
Title: Re: Confirming a Zero-valued Order
Post by: jenkinhill on November 04, 2013, 16:50:10 PM
What happens if you set the product price to 1.0001
Title: Re: Confirming a Zero-valued Order
Post by: QuannyUK on November 04, 2013, 21:39:53 PM
Will certainly give that a go, but won't the coupon still pull the order total to £0.00 even if the product has an extra 0.0001 on the end?  Do I need to put that extra 0.0001 somewhere else?
Title: Re: Confirming a Zero-valued Order
Post by: jenkinhill on November 04, 2013, 23:45:53 PM
Play with it. The payment plugin still has to change pending to confirmed somehow.
Title: Re: Confirming a Zero-valued Order [SOLVED]
Post by: QuannyUK on November 11, 2013, 11:13:51 AM
Thank you so much, with your help I managed to get this sorted.  For the benefit of others, I've listed what I did below:

1. Set the minimum amount for your existing payment methods to 0.01

2. Create a new payment method (I called mine 'No Payment Required') and set the maximum amount for that payment method to be 0.001 - note the extra 0, making this 1/100th of your currency

3. Set "Order Status for Pending transactions" to Confirmed.

As simple as that!  This means that anything requiring a payment, so in my case 1 pence upwards, will need your customer to select a payment method as normal.  Otherwise, it falls below the 1/100th of the currency and only gives the option for 'No Payment Required'.  When this new method is selected, the order is set to Confirmed and all the relevant emails and invoices will be sent out.

I've updated the original thread over at AwoCoupon too:
http://awodev.com/forum/awocoupon/help-section/awocoupon-pro-order-paid-using-gift-certificate-remains-pending

Thanks again...