Announcement

Collapse
No announcement yet.

Diable Fallback image popup

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Diable Fallback image popup

    We have some images we use the full image, and some we use image machine. It seems the template always does the popup. How can we disable the popup for the full image but leave it for the image machine? We have another store with the base bootstrap theme, and it works this way.

    Thank you for any insight.

    Regards,

    Eldon

    #2
    Re: Diable Fallback image popup

    Hi Eldon,

    Although I would recommend using the built-in image management tools in Miva, you can modify the product page to accommodate both legacy and standard images by replacing:

    Code:
    <span data-icon="&#x54;" 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>
    with:

    Code:
    <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:productimagecustomfields:main">
        <span data-icon="&#x54;" 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>
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment

    Working...
    X