Last active
August 29, 2015 14:21
-
-
Save mghdotdev/1b539c2c665355f7cd9d to your computer and use it in GitHub Desktop.
MVT: Get Variant Info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mvt:item name="toolkit" param="variantarray|vcount|l.all_settings:product:code" /> | |
<mvt:if expr="vcount GT 0"> | |
<mvt:assign name="l.variantCode" value="l.settings:variants[1]:variant_code" /> | |
<mvt:foreach iterator="variant" array="variants"> | |
<mvt:item name="customfields" param="Read_Product_Code( l.settings:variant:variant_code, 'package-type', l.settings:package_type )" /> | |
<mvt:if expr="l.settings:package_type EQ g.Package_Type"> | |
<mvt:assign name="l.variantCode" value="l.settings:variant:variant_code" /> | |
</mvt:if> | |
</mvt:foreach> | |
<mvt:do file="g.Module_Library_DB" name="l.success" value="Product_Load_Code(l.variantCode, l.settings:product)" /> | |
<mvt:do file="g.Module_Feature_TUI_UT" name="l.success" value="CommonComponentFields_Initialize_Product_Runtime( l.settings:product )" /> | |
<mvt:item name="toolkit" param="customimage|main|l.all_settings:product:id|main|||1" /> | |
<mvt:assign name="l.height" value="255" /> | |
<mvt:assign name="l.width" value="333" /> | |
<mvt:do file="g.Module_Library_DB" name="l.image_loaded" value="Image_Load_File( g.main, l.image )" /> | |
<mvt:if expr="l.image_loaded"> | |
<mvt:do file="g.Module_Library_DB" name="l.generated_image_loaded" value="GeneratedImage_FindOrInsert_Image_Dimensions( l.image, l.height, l.width, l.generated_image )" /> | |
</mvt:if> | |
<mvt:item name="toolkit" param="customimage|main|l.all_settings:product:id|main|255|333|1" /> | |
<mvt:assign name="l.settings:product:imagetypes:main" value="g.main" /> | |
</mvt:if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment