Free shipping coupons doesn't work with OPC enabled

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

Free shipping coupons doesn't work with OPC enabled

Postby loppan » Tue Jul 14, 2020 9:58 pm

Hi!

I just noticed something weird. I haven't been sending out any discount coupons for a while so I don't know for long this has been an issue.

I use AwoCoupon 3.5.9.0 together with OPC 2.0.399.090720 on VM 3.6.10.

I create a test coupon that gives 100% off on shipping

I apply it on the checkout page and it looks promising :
coupon1.png
coupon1.png (24.45 KiB) Viewed 4576 times

The total is now 129kr which is correct.

But once I'm sent to Paypal (or any other of my payment methods) the discount isn't there anymore :
coupons2.png
coupons2.png (29.99 KiB) Viewed 4576 times

It seems like the discount isn't sent over to the next step properly. Regardless of which payment method I choose.

But, percentage (on products) coupons work fine, and when I disable OPC - to my big surprise - even free shipping coupon works with standard VM checkout.

I can't remember changing any settings lately that could affect this - and even if I did then probably discounts on products wouldn't work either, I suppose.

Please advise ;).

Thanks!

Best regards

Peter
loppan
 
Posts: 25
Joined: Thu Oct 27, 2016 7:26 am

Re: Free shipping coupons doesn't work with OPC enabled

Postby admin » Fri Jul 17, 2020 1:14 pm

hello peter, are you using this configuration in awo coupons ?

Suggested Awo configuration:

Enabled Store Coupons = YES
Case sensitive coupon code = NO
Enable zero value coupon = YES
Enable negative value coupon = YES


Best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Free shipping coupons doesn't work with OPC enabled

Postby loppan » Tue Jul 21, 2020 2:05 pm

Thank you Stan! It works now, after I switched these two to ON instead of OFF :

admin wrote:Enable zero value coupon = YES
Enable negative value coupon = YES


It's confusing though because it worked with standard VM checkout. But maybe it's the standard checkout that is buggy then :D.

Thanks Stan! All good now.
loppan
 
Posts: 25
Joined: Thu Oct 27, 2016 7:26 am

Re: Free shipping coupons doesn't work with OPC enabled

Postby admin » Mon Jul 27, 2020 6:00 pm

hello, i now updated some OPC core code to support "awo coupons automatic coupons" when OPC changes quantity of the products, so that awo can re-check it's autocoupon handling within the same request before the calculation is done.
available in opc 2.0.401+

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x