Announcement

Collapse
No announcement yet.

Display the savings from the regular price to the sale price as a "you save" amount?

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

  • Display the savings from the regular price to the sale price as a "you save" amount?

    How to display the savings from the regular price to the sale price as a dollar amount or as a "you save" amount?

  • Not sure where you want this to show up. If on the product page you can use:
    <mvt:foreach iterator="discount" array="product:discounts">
    You Save &mvt:discount:formatted_discount;!
    </mvt:foreach>

    Otherwise pretty easy to use an operator and just subtract the product price (final price after discounts etc.) from the base price.
    <mvt:assign name="g.save_amount" value="((l.settings:product:base_price - l.settings:product:price) ROUND 2)" />
    You Save &mvt:global:save_amount;!

    Recommend the first option though.

    Comment


    • ReadyThemes such as Shadows use this:
      <mvt:foreach iterator="discount" array="product:discounts">
      &mvt:discount:descrip;: You save &mvt:discount:formatted_discount;!
      </mvt:foreach>

      Which displays both the discount description, as well as the amount.

      Comment

      Working...
      X

      This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

      This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

      Accept