VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: optmax on October 13, 2015, 01:54:49 AM

Title: SOLVED Dynamic OPC cart js error
Post by: optmax on October 13, 2015, 01:54:49 AM
VM 3.0.10
J! 3.4.4

Clean install with Sample Data
beez3 template


3 Standard payment methods configured
One Page Checkout enabled  - yes
Ajax for OPC - yes

Test site http://vm310.cloudaccess.host/index.php/shop

In the cart with a shopper logged in, when a payment method is selected or changed and the dynamic update of the cart is fired the Google Chrome Console reports the following:

Virtuemart.updForm url undefined                                         dynupdate.js?vmver=8996:101
my form submit url /index.php/shop/cart?tmpl=component     dynupdate.js?vmver=8996:106

Same error on the VM 3.0.11 demo site http://demo.virtuemart.net/ when the shipment is changed

(On my live site changing the payment also causes the on screen shopper's email address to be set to 'nullnullnullnullnull', but is displayed properly again on a page refresh.  This does not happen on the test site.  With Ajax for OPC turned off there is no problem)

Can any one else confirm this behaviour?
Title: Re: Dynamic OPC cart js error
Post by: Milbo on October 13, 2015, 20:55:12 PM
It is just a debug, I remove it.
Title: Re: Dynamic OPC cart js error
Post by: optmax on October 13, 2015, 22:19:59 PM
Thanks Milbo.

I guess that means the 'nullnullnullnull' email address on my live site is a js conflict.

I'll have to investigate.  What a pain.....
Title: Re: Dynamic OPC cart js error
Post by: Milbo on October 13, 2015, 22:45:49 PM
no, this is something else. It has imho nothing todo with the message "Virtuemart.updForm url undefined"
Title: Re: Dynamic OPC cart js error
Post by: optmax on October 13, 2015, 22:52:46 PM
OK so not a js problem you think?
It goes away when Ajax OPC  is turned off.
Any suggestions as to what I should try to tack down the cause?
Title: Re: Dynamic OPC cart js error
Post by: optmax on October 14, 2015, 00:37:16 AM
OK Found the culpit for my 'nullnullnullnull' email adress after Ajax OPC update

NoNumber Email Protector plugin v2.0.4

Disabling this plugin and the problem goes away :-)

I will mark this thread solved and report my findings to NoNumber
Title: Re: SOLVED Dynamic OPC cart js error
Post by: Milbo on October 14, 2015, 11:40:00 AM
Great, thank you.
Title: Re: SOLVED Dynamic OPC cart js error
Post by: optmax on October 15, 2015, 10:04:06 AM
Peter at NoNumber has now fixed this in Email Protector v2.0.5 (currently a development release).