steveosoule
1/19/2017 - 12:44 AM

Miva - Runtime Product Discounts for 3rd-Party Data-Sets

Miva - Runtime Product Discounts for 3rd-Party Data-Sets

<mvt:comment><!-- g.Product_Codes is a comma separated list of product codes being sent --></mvt:comment>
<mvt:assign name="l.settings:product_codes" value="miva_array_deserialize(g.Product_Codes)" />
<mvt:foreach iterator="code" array="product_codes">
	<mvt:do name="l.result" file="g.Module_Library_DB" value="Product_Load_Code( l.settings:code, l.settings:product )" />
	<mvt:do file="g.Module_Feature_TUI_UT" name="l.result" value="CommonComponentFields_Initialize_Product_Runtime( l.settings:product )" />
	<mvt:assign name="l.index" value="miva_array_insert( l.settings:products, l.settings:product, -1 )" />
</mvt:foreach>
<mvt:do file="g.Module_Feature_TUI_UT" name="l.result"  value="CommonComponentFields_Initialize_Product_Discounts_Runtime(l.settings:products, miva_array_elements(l.settings:products) )" />