Page 1 of 1

Strange behaviour with Awocoupon

PostPosted: Thu May 14, 2015 10:32 am
by peter@.....com
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

Re: Strange behaviour with Awocoupon

PostPosted: Fri May 15, 2015 11:28 am
by admin
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

Re: Strange behaviour with Awocoupon

PostPosted: Mon May 18, 2015 9:01 pm
by peter@.....com
Hi, I have sent the details to info@rupostel.sk.

Thanks for helping out!

Re: Strange behaviour with Awocoupon

PostPosted: Tue May 19, 2015 12:38 pm
by admin
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

Re: Strange behaviour with Awocoupon

PostPosted: Tue May 19, 2015 10:55 pm
by peter@.....com
Ok, looking forward to that.

Re: Strange behaviour with Awocoupon

PostPosted: Thu May 21, 2015 3:00 pm
by admin
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

Re: Strange behaviour with Awocoupon

PostPosted: Sat May 23, 2015 3:40 pm
by peter@.....com
Thanks Stan! Traveling now, I will install & let you know in a couple of days.

Re: Strange behaviour with Awocoupon

PostPosted: Tue May 26, 2015 8:40 pm
by peter@.....com
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.

Re: Strange behaviour with Awocoupon

PostPosted: Fri May 29, 2015 5:53 pm
by admin
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