Load Product Meta Fields#
Description#
Load in Product Meta Fields
Snippet#
<mvt:do file="g.Module_Library_DB" name="l.success" value="Product_Load_Code( 'miva-test_master-product', l.settings:product )" />
<mvt:do file="g.Module_Root $ '/modules/component/cmp-mv-prodctgy-meta.mvc'" name="l.success" value="METAValueList_Load_Product(l.settings:product:id, l.settings:product:meta_items)" />
<mvt:foreach iterator="meta_item" array="product:meta_items">
<mvt:if expr="l.settings:meta_item:name EQ 'keywords'">
<mvt:assign name="l.settings:product:meta_keywords" value="l.settings:meta_item:value" />
<mvt:elseif expr="l.settings:meta_item:name EQ 'description'">
<mvt:assign name="l.settings:product:meta_description" value="l.settings:meta_item:value" />
</mvt:if>
</mvt:foreach>
<mvt:assign name="g.mvt_debug" value="glosub( miva_array_serialize( l.settings:product ), ',', asciichar( 10 ) )" />
<pre>
@@product
=====================
&mvt:global:mvt_debug;
</pre>
Functions Used#
METAValueList_Load_Product