Currently I am using this code to test a product for an image:
<mvt:do file="g.Module_Library_DB" name="l.success" value="ImageType_Load_Code('main', l.settings:imagetype)"/>
<mvt:do name="l.success" file="g.Module_Library_DB" value="ProductImage_Load_Type(l.settings:product:i d, l.settings:imagetype:id, 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:if expr="NOT ISNULL l.settings:imagedata:image">
Is there a more streamlined code that can be used for this purpose?
<mvt:do file="g.Module_Library_DB" name="l.success" value="ImageType_Load_Code('main', l.settings:imagetype)"/>
<mvt:do name="l.success" file="g.Module_Library_DB" value="ProductImage_Load_Type(l.settings:product:i d, l.settings:imagetype:id, 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:if expr="NOT ISNULL l.settings:imagedata:image">
Is there a more streamlined code that can be used for this purpose?
Comment