On a fresh install of ThirtyBees 1.1.0, using any "built-in" theme: Naira, Community:
Enabling JqZoom for product image is throwing an "Uncaught TypeError: $(...).zoom is not a function" error.
Notes:
The option to enable JqZoom has been available since the earliest version of 30Bz.
This was working for me on 1.08 previously using Community
The toggle to enable JqZoom is still in 1.1.0
The JqZoom code is still in product.js of the Community theme
Also, it seems that both the jqzoom.js and .css files for JqZoom are being loaded (if I do view source)
Please help with a fix if possible. Also, it would be great if we could continue to have this feature available in future versions of ThirtyBees.
Error detail:
product.js:194 Uncaught TypeError: $(...).zoom is not a function
at initZoom (product.js:194)
at displayImage (product.js:251)
at HTMLAnchorElement.<anonymous> (product.js:290)
at HTMLDocument.dispatch (jquery-1.11.0.min.js:3)
at HTMLDocument.r.handle (jquery-1.11.0.min.js:3)
Thanks in advance
Update below
* Update:
So I've managed to get this "working" by replacing the contents of the 1.1.0 zoom file: "js\jquery\plugins\jqzoom\jquery.jqzoom.js" with the contents of a file that was loaded previously:
"modules\ctconfiguration\views\js\vendor\jquery.zoom.min.js". And as if by magic, the error disappears and the zoom functionality works again. However, I suspect that this "fix" is grossly incorrect...
It seems that "plugins\jqzoom\jquery.jqzoom.js" was also included in 1.08 previously and that "vendor\jquery.zoom.min.js" was loaded in 1.08 but not in 1.1.0 anymore.
Somehow by calling "vendor\jquery.zoom.min.js", the zoom functionally works... but if it's left out, it doesn't work - even if "plugins\jqzoom\jquery.jqzoom.js" is loaded...
An explanation and fix for this would be greatly appreciated...
Question
Acer
Hi
On a fresh install of ThirtyBees 1.1.0, using any "built-in" theme: Naira, Community:
Enabling JqZoom for product image is throwing an "Uncaught TypeError: $(...).zoom is not a function" error.
Notes:
Please help with a fix if possible. Also, it would be great if we could continue to have this feature available in future versions of ThirtyBees.
Error detail:
product.js:194 Uncaught TypeError: $(...).zoom is not a function
at initZoom (product.js:194)
at displayImage (product.js:251)
at HTMLAnchorElement.<anonymous> (product.js:290)
at HTMLDocument.dispatch (jquery-1.11.0.min.js:3)
at HTMLDocument.r.handle (jquery-1.11.0.min.js:3)
Thanks in advance
Update below
* Update:
So I've managed to get this "working" by replacing the contents of the 1.1.0 zoom file: "js\jquery\plugins\jqzoom\jquery.jqzoom.js" with the contents of a file that was loaded previously:
"modules\ctconfiguration\views\js\vendor\jquery.zoom.min.js". And as if by magic, the error disappears and the zoom functionality works again. However, I suspect that this "fix" is grossly incorrect...
It seems that "plugins\jqzoom\jquery.jqzoom.js" was also included in 1.08 previously and that "vendor\jquery.zoom.min.js" was loaded in 1.08 but not in 1.1.0 anymore.
Somehow by calling "vendor\jquery.zoom.min.js", the zoom functionally works... but if it's left out, it doesn't work - even if "plugins\jqzoom\jquery.jqzoom.js" is loaded...
An explanation and fix for this would be greatly appreciated...
13 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now