VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: ZeroKewl on September 12, 2013, 15:43:44 PM

Title: redirect to paypal - Uncaught TypeError: Cannot call method 'submit' of undefine
Post by: ZeroKewl on September 12, 2013, 15:43:44 PM
hi there,
I have an error with the redirect to paypal after confirmation the order by clicking the buy button. The page, that appears has a damage layout and shows the standard-button ,,please wait for redirect".
but nothing happens. (By clicking on that button, the procedure works.)

After checking the sourcecode I have found:
- the html-code ist damage
- the code exists two times
- the following error-message:
Uncaught TypeError: Cannot call method 'submit' of undefined mein-warenkorb:115
Uncaught TypeError: Cannot call method 'submit' of undefined mein-warenkorb: 597

Any Ideas?

Thanks in advance

(system: j2.5.14 / vm 2.0.22b)
Title: Re: redirect to paypal - Uncaught TypeError: Cannot call method 'submit' of undefine
Post by: Maxim Pishnyak on September 12, 2013, 17:23:22 PM
Link? Is it standard VM paypal method?
Title: Re: redirect to paypal - Uncaught TypeError: Cannot call method 'submit' of undefine
Post by: ZeroKewl on September 13, 2013, 09:30:08 AM
hi maxim

an url does'nt exists. for that your have to make an order. the site url is: innerwise.com.
please type in the cards customfield "admin test order"

I have attached an textfile with the source of the redirecting-page.

standard vm payment method? I believe so, but I am not sure.

[attachment cleanup by admin]
Title: Re: redirect to paypal - Uncaught TypeError: Cannot call method 'submit' of undefine
Post by: alatak on September 15, 2013, 12:55:28 PM
Hello
I think your problem comes from your template.
When i open the console i see the error Uncaught TypeError: Cannot call method 'submit' of undefined mein-warenkorb:115
comes from that code:
                 
                 _kwicks_proto_init('#kwicks-menu');
                 
                 
          });</script>


and as you said that code is loaded twice.

And it looks like that the code to autosubmit the form has been removed

Check your template.