Announcement

Collapse
No announcement yet.

Calling Image Thumbnails in BASK

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

    Calling Image Thumbnails in BASK

    I have an image type called THMB for product thumbnail images. I'm trying to display the thumbnail in the BASK page but they don't show. What would the correct code be? Here is what I currently have.

    <mvt:if expr="l.settings:item:imagetypes:THMB">
    <a href="&mvt:global:secure_sessionurl;Screen=PROD&am p;Store_Code=&mvta:global:Store_Code;&amp;Product_ Code=&mvta:item:master_code;"><img src="&mvte:item:imagetypes:THMB;" alt="&mvt:item:name;" title="&mvt:item:name"></a>
    </mvt:if>
    www.jcroffroad.com

    #2
    I'm not sure 100% how you're using the Thumb image type, but you don't need a custom image type for a thumbnail unless you want to display a completely different image.

    Typically you would just upload a single image as an image type of "main" and miva will automatically resize it to whatever sizes you need on each page.

    Assuming you do need the thumb image type to display on the basket page here is how to do it:

    1. Edit BASK, Scroll down to Basket Contents section
    2. There is a Setting for Product Images with a checkbox of which image you want load, make sure thumb is checked.
    3. Then in the Basket Contents template you would use this code to output the image:

    Code:
    &mvte:group:imagetypes:thumb;
    
    Or
    &mvte:item:imagetypes:thumb;
    Your code looks correct above, perhaps you're just missing step 2
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment

    Working...
    X