Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Uncaught TypeError: Cannot read property 'toggleNewForm' of undefined #443

Closed
alrick opened this issue Jun 25, 2015 · 2 comments
Closed

Comments

@alrick
Copy link

alrick commented Jun 25, 2015

Hey!

I've a problem with the address page of the customer, I got Uncaught TypeError: Cannot read property 'toggleNewForm' of undefined when I try to add an address. I've similar issues when trying to edit or delete an address.

I've found this #386 but it didn't fix my problem and I have error even when there is no pagination.

You can try it yourself at :
http://tdmdev-2.myshopify.com/account/addresses#
username : testytester@example.com
pwd : testytester

Thanks in advance

@cshold
Copy link
Contributor

cshold commented Jun 25, 2015

Add shopify_common.js to the head, rather than near the bottom of the page. There are some inline JS scripts in the address template that need access to that file before being called. It's not perfect and we're looking at ways to allow all JS to be at the bottom of the page, but for now that's your best fix.

@cshold cshold closed this as completed Jun 25, 2015
@alrick
Copy link
Author

alrick commented Jun 25, 2015

Thank you for the fix, that was fast 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants