Strange behaviour with Awocoupon

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

Strange behaviour with Awocoupon

Postby peter@.....com » Thu May 14, 2015 10:32 am

Config:
OPC 2.0.286.100415
VM 3.0.9
Joomla 3.4.1

Hi Stan, it seems that some strange things are happening with OPC 2.0.286.100415. When I apply an Awocoupon gift certificate, it doesn't deduct the shipping costs. I have noticed the same problem with OPC 2.0.284.260215. When I disable OPC and work with the default VM cart, the shipping costs are deducted correctly. Any thoughts?

Thanks,
Peter
peter@.....com
 
Posts: 38
Joined: Sat Aug 20, 2011 12:48 pm

Re: Strange behaviour with Awocoupon

Postby admin » Fri May 15, 2015 11:28 am

hello peter, i cannot test vm3 and awo on my own setup now as my license for awo on vm3 is not yet ready - so if you'd like, i can check it on your site.

what is your config for the shipping within the gift coupon ? or are you using gift certificate products?

i tested on vm2.6.x on j2.5.x and latest opc and latest awo pro, but i cannot replicate this, so it may be related to vm3 itself. let me know if i could check this on your site directly.

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

Re: Strange behaviour with Awocoupon

Postby peter@.....com » Mon May 18, 2015 9:01 pm

Hi, I have sent the details to info@rupostel.sk.

Thanks for helping out!
peter@.....com
 
Posts: 38
Joined: Sat Aug 20, 2011 12:48 pm

Re: Strange behaviour with Awocoupon

Postby admin » Tue May 19, 2015 12:38 pm

hello peter, i just got another license from awo to use it on my vm3/j3 demo, so i am going to first try it there.
best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Strange behaviour with Awocoupon

Postby peter@.....com » Tue May 19, 2015 10:55 pm

Ok, looking forward to that.
peter@.....com
 
Posts: 38
Joined: Sat Aug 20, 2011 12:48 pm

Re: Strange behaviour with Awocoupon

Postby admin » Thu May 21, 2015 3:00 pm

hello peter, i've sent you an email with the update in this case.

the quickest fix is to make sure that vm3 calculates shipping before coupon by commenting this line in (in vm2 coupon was calculated after shipping calculation):
Code: Select all
if(!empty($this->_cart->cartData['taxRulesBill']['calc_value_mathop']) and $this->_cart->cartData['taxRulesBill']['calc_value_mathop'] == 'avalara')

so it looks like:
Code: Select all
// if(!empty($this->_cart->cartData['taxRulesBill']['calc_value_mathop']) and $this->_cart->cartData['taxRulesBill']['calc_value_mathop'] == 'avalara')


i fixed this within the future opc version by calculating the shiping twice - once before the calculation and secondly during the calculation.

in vm3 checout without opc this does not work as well, BUT since the calculation is called multiple times per the cart and thus the shipping calculation is also done multiple times per a single request, the gift certificate is calculated properly.

due to the same problem - order of calculation (totals / coupon /shipping /payment)

the payment fees if used will also not be included within the gift certificates.

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

Re: Strange behaviour with Awocoupon

Postby peter@.....com » Sat May 23, 2015 3:40 pm

Thanks Stan! Traveling now, I will install & let you know in a couple of days.
peter@.....com
 
Posts: 38
Joined: Sat Aug 20, 2011 12:48 pm

Re: Strange behaviour with Awocoupon

Postby peter@.....com » Tue May 26, 2015 8:40 pm

Hi Stan, I installed the version that you emailed to me (2.0.286.664.210515) and it works perfectly. Thanks for fixing this:
- shipping costs not deducted with AWO Gift Certificate >> fixed
- back-end crashed on clicking the 'tracking' link >> fixed

The only thing that was still the same was the blank page with VM3.0.8 | VM3.0.9:
viewtopic.php?f=7&t=1164

I could not find any reference to '$userOption' in my custom template, as mentioned in the thread. So I duplicated the system template that is was based on and re-applied my custom css (+ some minor tweaks), it works fine now. So ... all set!

Thanks again for your great support.
peter@.....com
 
Posts: 38
Joined: Sat Aug 20, 2011 12:48 pm

Re: Strange behaviour with Awocoupon

Postby admin » Fri May 29, 2015 5:53 pm

hello peter, let me know at email fi this is fixed. i did lot's of tests on both of mine opc on vm26+j25 and vm3+j3
order of calculation had changed in vm3 which caused this issue.
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