News:

Looking for documentation? Take a look on our wiki

Main Menu

Confirming a Zero-valued Order [SOLVED]

Started by QuannyUK, November 02, 2013, 16:18:54 PM

Previous topic - Next topic

QuannyUK

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.

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

QuannyUK

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.

jenkinhill

What happens if you set the product price to 1.0001
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

QuannyUK

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?

jenkinhill

Play with it. The payment plugin still has to change pending to confirmed somehow.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

QuannyUK

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...