Generating Savings within a QuickList

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • allclear
    Mini Mivite

    • Jun 2009
    • 54

    #1

    Generating Savings within a QuickList

    Hello,
    I use the following code to generate product savings (difference between the product cost and product price) on my category pages:

    Code:
    <mvt:foreach iterator="product" array="category_listing:products">
      <mvt:item name="toolkit" param="math_subtract|difference|l.all_settings:product:cost|l.all_settings:product:price" />
      <mvt:item name="toolkit" param="currencyformat|formatted_savings|difference" />
      <li class="savings">You Save: -&mvt:global:formatted_savings;</li>
    </mvt:foreach>
    However, when I try to do the same thing, within the Toolkit QuickList Function, it returns a $0 for the savings.
    Can anyone point out the error within my code:

    Code:
    <mvt:item name="toolkit" param="quick|pcount|code1, code2, code3" />
    <mvt:foreach iterator="quicklist" array="quicklists">
      <mvt:item name="toolkit" param="math_subtract|difference|l.all_settings:quicklist:cost|l.all_settings:quicklist:price" />
      <mvt:item name="toolkit" param="currencyformat|formatted_saving|difference" />
      <li class="savings">You Save: -&mvt:global:formatted_saving;</li>
    </mvt:foreach>
    Thanks!
  • wcw
    Developer Partner

    • Mar 2006
    • 11329

    #2
    Re: Generating Savings within a QuickList

    Try adjusted_price instead of price.
    Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
    Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
    Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
    Facebook http://www.facebook.com/EmporiumPlus
    Twitter http://twitter.com/emporiumplus

    Comment

    • allclear
      Mini Mivite

      • Jun 2009
      • 54

      #3
      Re: Generating Savings within a QuickList

      We're getting there... "adjusted_price" changed the savings to the final price AFTER the savings have been applied (and also wrapped it in parentheses). What I'm hoping to display is the savings amount itself.

      Comment

      Working...
      X