Would anyone happen to know why this snippet would stop working after the latest update 10.01.01? I have confirmed it still works perfectly in the site before the update. It no longer shows the attribute price range after the update. Another oddity, if you refresh the page https://marigoldliving.com/sanya-riy...inkorange.html (at least in Firefox) you can catch a glimpse of the price range before it goes to $0.00.
This &mvt:priceLow; - &mvt:priceHigh; no longer displays - why?
This &mvt:priceLow; - &mvt:priceHigh; no longer displays - why?
Code:
<mvt:comment>
====Load Product Attributes====
</mvt:comment>
<mvt:do file="g.Module_Library_DB" name="l.success" value="AttributeList_Load_Product(l.settings:multi prod:id, l.settings:loaded_attributes)" />
<mvt:if expr="l.settings:loaded_attributes[1]:attemp_id GT 0">
<mvt:do file="g.Module_Feature_ATT_DB" name="l.success" value="AttributeTemplateAttrList_Load_Template(l.s ettings:loaded_attributes[1]:attemp_id, l.settings:loaded_attributes)" />
</mvt:if>
<mvt:comment>
====Load Product Attribute Options + Add Option Prices to Array====
</mvt:comment>
<mvt:assign name="l.settings:option_prices" value="''" />
<mvt:foreach iterator="attribute" array="loaded_attributes">
<mvt:assign name="l.settings:loaded_options" value="NULL" />
<mvt:do file="g.Module_Library_DB" name="l.success" value="OptionList_Load_Attribute(l.settings:attrib ute:id, l.settings:loaded_options)" />
<mvt:foreach iterator="option" array="loaded_options">
<mvt:if expr="l.settings:option:price NE 0">
<mvt:assign name="l.addToArray" value="miva_array_insert( l.settings:option_prices, l.settings:option:price, -1 )" />
</mvt:if>
<mvt:comment>
====Check if Product has Variants + Load the Variant Part====
</mvt:comment>
<mvt:assign name="l.settings:variantPart" value="NULL" />
<mvt:do file="g.Module_Library_DB" name="l.success" value="ProductVariantList_Load_Product_Option( l.settings:product:id, l.settings:attribute:id, l.settings:option:id, l.settings:variantPart )" />
<mvt:if expr="l.settings:variantPart[1]">
<mvt:comment>
====Load the Variant Information====
</mvt:comment>
<mvt:foreach iterator="part" array="variantPart">
<mvt:do file="g.Module_Library_DB" name="l.success" value="ProductList_Load_Variant( l.settings:product:id, l.settings:part:variant_id, l.settings:variant )" />
<mvt:do file="g.Module_Library_DB" name="l.success" value="ProductVariantPricing_Load_Variant(l.settin gs:product:id, l.settings:part:variant_id, l.settings:juan)" />
</mvt:foreach>
<mvt:comment>
====Add Variant Prices to Array====
</mvt:comment>
<mvt:foreach iterator="var" array="variant">
<mvt:if expr="l.settings:var:price GT 0">
<mvt:assign name="l.addToArray" value="miva_array_insert( l.settings:option_prices, l.settings:var:price, -1 )" />
</mvt:if>
</mvt:foreach>
</mvt:if>
</mvt:foreach>
</mvt:foreach>
<mvt:comment>
====Sort Prices Array + Push First and Last Numbers into Variables====
</mvt:comment>
<mvt:assign name="l.settings:priceLow" value="NULL" />
<mvt:assign name="l.settings:priceHigh" value="NULL" />
<mvt:do file="g.Module_Library_Utilities" name="l.success" value="QuickSortArray( l.settings:option_prices, NULL, 1 )" />
<mvt:do name="l.settings:priceLow" file="g.Module_Root $ g.Store:currncy_mod:module" value="CurrencyModule_AddFormatting( g.Store:currncy_mod, l.settings:option_prices[1] )" />
<mvt:do name="l.settings:priceHigh" file="g.Module_Root $ g.Store:currncy_mod:module" value="CurrencyModule_AddFormatting( g.Store:currncy_mod, l.settings:option_prices[miva_array_elements(l.settings:option_prices)] )" />
<div id="js-price-value-&mvt:multiprod:id;" data-base-price="&mvt:multiprod:price;" class="price-value nm bold inline-block">&mvt:priceLow; - &mvt:priceHigh;</div>
<div id="js-inventory-message-&mvt:multiprod:id;" class="raleway">
</div>
<mvt:assign name="l.settings:option_prices" value="miva_array_delete(l.settings:option_prices, 1, miva_array_elements(l.settings:option_prices))" />
Comment