Not sure what wrong here, it's a fresh install of Iron & Wool and the popup / zoom is not working:
Pop Up / Zoom images not working
Collapse
X
-
Pop Up / Zoom images not working
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: X | Facebook | Pinterest
Tags: None
-
Re: Pop Up / Zoom images not working
span tag wrapping around img tag is missing ID attribute based upon which these functions work, check if something is edited there after installation.
Your span tag
Default span tagHTML Code:<span class="main-image" data-index="0">
HTML Code:<span data-icon="T" id="js-main-image-zoom" class="main-image" data-index="0">
-
Re: Pop Up / Zoom images not working
Hmmmm, that leads to an interesting question since the code is there but it's wrapped in this conditional
why would the zoom be wrapped in a conditional?Code:<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:productimagecustomfields:main"> <span data-icon="T" id="js-main-image-zoom" class="main-image" data-index="0"><img src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;" title="&mvte:product:name;" id="js-main-image" data-image="&mvt:product:customfield_values:productimagecustomfields:main;" /></span> <mvt:else> <span class="main-image" data-index="0"><img src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;" title="&mvte:product:name;" id="js-main-image" data-image="&mvt:product:customfield_values:productimagecustomfields:main;" /></span> </mvt:if>
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: X | Facebook | Pinterest
Comment
-
Re: Pop Up / Zoom images not working
Zoom and Gallery features are basically there to work with the Image Machine, that's why there is that IF conditional to check whether images are from Image Management or Legacy Images.
Comment
-
Re: Pop Up / Zoom images not working
Okay, the images are in the Image Management, so why it's the conditional triggering? The Image Type "main" is assigned to the image.Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: X | Facebook | Pinterest
Comment
-
Re: Pop Up / Zoom images not working
I'm afraid I have to say "No Idea". In my stock install, it's working even for products where there is no image type is assigned.
Comment
-
jfazar if possible, please share the link of your site, I can take a look into it from HTML perspective.
Comment
-
Rajnishsi has a good point. You'd be amazed how often simple coding errors can screw up other things. It's always a good place to start when you have any issues. Here's a link to check your html: https://validator.w3.org/nu/
For posterity, here's one for the CSS too, but yours looks like it has no real issues that could affect the function you are trying to fix: http://jigsaw.w3.org/css-validator/
JamieJamie Donaldson
JSDVS Web Design / Development
Web Design | Web Development | E-commerce Design & Integration
Comment
Comment