Sorry if this is in the wrong place, I'm new to a lot this. We have a very old store, and I'm looking to tweak the product display layout in a way that I can show an image machine main image if it's there, but then fallback to the legacy images when it isn't there.
Here is the current code showing the image as far as I can tell:
If anyone who could point me in the right direction that'd be awesome
Can this be done with an if statement?
Here is the current code showing the image as far as I can tell:
Code:
<div class="product-details-1"> <mvt:if expr="NOT ISNULL l.settings:product:image"> <div class="product-image"><img id="main_image" src="&mvte:product:image;" alt="&mvte:product:name;" /></div> <mvt:else> <div class="image-not-available product-image"></div> </mvt:if>
Can this be done with an if statement?
Comment