Announcement

Collapse
No announcement yet.

Show Regular Price and Sale Price in toolkit Quicklists

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Show Regular Price and Sale Price in toolkit Quicklists

    Trying to display the regular price with a strikeout and the sale price within the quicklist on my storefront page. here is the current code that would pull the values from the cost and price fields from the products.

    Code:
    <div class="quick-gifts-header">
        <h2>Creative Christmas Gifts</h2>
    </div>
    <div class="quick-gifts producttext">
        <p>Here are 4 of our Best Selling and most Creative Christmas Gifts. These <a href="/christmas-roses.html">Christmas Roses</a> and other <a href="/christmas-gift-ideas.html">Christmas Gifts</a> are going to be remembered for a lifetime because they are truly one of a kind. </p>
    </div>
    <mvt:item name="toolkit" param="quick|pcount|CILYRFS8,TEFTG,CREH11,PPFCRV" />
    <div>
        <mvt:foreach iterator="quicklist" array="quicklists">
            <mvt:if expr="(pos1 MOD 4) EQ 1">
                <div class="product-wrapper first">
            <mvt:else>
                <div class="product-wrapper">
            </mvt:if>
                <mvt:item name="toolkit" param="customimage|big|l.all_settings:quicklist:id|main" />
                <mvt:if expr="g.big">
                    <a href="/&mvta:quicklist:code;.html" class="button" title="&mvt:quicklist:name;"><img src="&mvt:global:imageroot;&mvte:global:big;" alt="&mvt:quicklist:name;" title="&mvt:quicklist:name;" height="150" width="150">
                <mvt:else>
                    <a href="/&mvta:quicklist:code;.html" class="button" title="&mvt:quicklist:name;"><img src="../graphics/img_no_thumb.jpg" alt="&mvt:quicklist:name;" title="&mvt:quicklist:name;" height="150" width="150">
                </mvt:if>
                <br>
                See Product Details</a>
                <a href="/&mvta:quicklist:code;.html" title="&mvt:quicklist:name;">&mvt:quicklist:name;</a><br>
                <b>Code: &mvt:quicklist:code;</b><br>
                <mvt:if expr="l.settings:quicklist:cost GT l.settings:quicklist:price">
                Reg. Price: <strike>&mvt:quicklist:formatted_cost;</strike> <br>
                <font color="ff0000"><b>Sale Price: &mvt:quicklist:formatted_price;</b></font>
                <mvt:else>
                <b>Price: &mvt:quicklist:formatted_price;</b>
                </mvt:if>
            </div>
        </mvt:foreach>
    </div>
    Last edited by SidFeyDesigns; 11-17-14, 12:46 PM.
    Nick Harkins
    www.loveisarose.com
    *Web Developer
    *Miva
    *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads
Working...
X