Skip to content

Load Single Image From ImageType#


Description#

Load Single Image From ImageType - (here the second parameter is hard coded to 1. This will return the image type with an id of 1, which typically should be main)

Snippet#

<mvt:do name="l.success" file="g.Module_Library_DB" value="ProductImage_Load_Type(l.settings:product:id, 1, l.settings:imagetype)" />
<mvt:do name="l.success" file="g.Module_Library_DB" value="Image_Load_ID(l.settings:imagetype:image_id, l.settings:imagedata)" />
<mvt:assign name="g.socialImage" value="g.baseurl $ l.settings:imagedata:image" />

Functions Used#

  • ProductImage_Load_Type
  • Image_Load_ID