Announcement

Collapse
No announcement yet.

Show product images on a custom page

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

    Show product images on a custom page

    It seems like there is an obvious answer, but i am not finding it. For every product, we have used additional images and added an image type BasketImage

    On our custom pages, I would like add a link to some of these images by referring to the sku or some other reference.

    For example, in our basket page, I have this line of code:
    <img src="&mvte:item:imagetypes:basket;" alt="&mvt:item:name;" title="&mvt:item:name" />

    It works perfectly because I am going through a loop of the basket contents.

    How can I do something like this with using the sku or product code?

    Thanks

    #2
    Re: Show product images on a custom page

    The image types / product images are only available to display within a product list loop. This includes the category page, search, basket, product page.

    How are you calling in these products on your custom pages? Depending on how you are displaying these products there are a couple ways to do what you need:

    1. Use A Product Listing, built into ReadyThemes (in Version 9) This would allow you to create a custom list of products tied to a category and this has all the image functionality built in

    2. Use toolkit. Toolkit has a function called customimage which can pull an image type of any product.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment

    Working...
    X