html Miva - mvt:do load Variants

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html Miva - mvt:do load Variants相关的知识,希望对你有一定的参考价值。

<!-- This is not 100% complete & correct -->
<mvt:foreach iterator="attribute" array="attributes">
	<mvt:foreach iterator="option" array="attribute:options">
		<mvt:do file="g.Module_Library_DB" name="l.null" value="ProductVariantList_Load_Product_Option(l.settings:product:id, l.settings:attribute:id, l.settings:option:id, l.settings:variantlist)" />
		<mvt:foreach iterator="variant" array="variantlist">
			<mvt:do file="g.Module_Library_DB" name="l.null" value="ProductList_Load_Variant(l.settings:product:id, l.settings:variant:variant_id, l.variant)" />
			<mvt:assign name="l.variant[1]:attribute" value="l.settings:attribute" />
			<mvt:assign name="l.variant[1]:attribute:options" value="''" />
			<mvt:assign name="l.variant[1]:option" value="l.settings:option" />
			<mvt:assign name="l.index" value="miva_array_insert( l.settings:product:variants, l.variant[1], -1 )" />
		</mvt:foreach>
	</mvt:foreach>
</mvt:foreach>

<mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:product), ',', '<br>'))" />

以上是关于html Miva - mvt:do load Variants的主要内容,如果未能解决你的问题,请参考以下文章

html Miva - mvt:do - 检查客户是否在可用性组中

xml Miva - 使用mvt:do生成RMA

xml Miva - 用mvt:do加载ReadyTheme导航设置

html Miva mvt:做自定义充值模板

html MVT Miva输出压缩白色空间标签

html Miva - mvt:调用搜索Spring API