I was hoping to get some help adding a little functionality to my PROD page. Right now we have a few products that have volume pricing. What I'd like to do is add the phrase "As Low As:" right above or before the product's price on those with volume pricing. I don't want it to appear on any other products. I have tried a couple things:
A conditional statement placed before the price in the Product Display section (didn't work):
<mvt:if expr="l.settings:volprice:table">
<p>As Low As:</p>
</mvt:if>
Also, with the help of Miva support, tried a foreach loop added to the Volume Pricing Table (worked but placed "As Low As" right above the volume pricing table because it was in the Volume Pricing Display section I want it above the actual price):
<mvt:assign name="l.settings:asLowAs" value=" " />
<mvt:foreach iterator="entry" array="volume:table">
<mvt:assign name="l.settings:asLowAs" value="l.settings:entry:formatted_price" />
</mvt:foreach>
<div id="js-mobile-price-value" class="h3 charcoal nm" data-base-price="&mvt:product:price;">As Low As: &mvt:asLowAs;</div>
Any suggestions?
A conditional statement placed before the price in the Product Display section (didn't work):
<mvt:if expr="l.settings:volprice:table">
<p>As Low As:</p>
</mvt:if>
Also, with the help of Miva support, tried a foreach loop added to the Volume Pricing Table (worked but placed "As Low As" right above the volume pricing table because it was in the Volume Pricing Display section I want it above the actual price):
<mvt:assign name="l.settings:asLowAs" value=" " />
<mvt:foreach iterator="entry" array="volume:table">
<mvt:assign name="l.settings:asLowAs" value="l.settings:entry:formatted_price" />
</mvt:foreach>
<div id="js-mobile-price-value" class="h3 charcoal nm" data-base-price="&mvt:product:price;">As Low As: &mvt:asLowAs;</div>
Any suggestions?
Comment