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?

    #2
    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


      #3
      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


        #4
        Originally posted by RTHOMASDESIGN View Post
        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.
        RTHOMASDESIGN, with your help I think your solution might be the hack we've been so long searching for in achieving our never ending quest for true simplicity in showcasing store promotions.

        We've been needing a solution that would render the value in the Discount fields (e.g.: 50% or $10) within Discount Settings section for Price Groups. Unfortunately, Miva currently does not have a token for this field.

        Instead of displaying: <strike>$100.00</strike> $75.00 you saved $25.00!

        Can one display percentage saved?

        Example: <strike>$100.00</strike> $75.00 you saved 25%

        I would like the code to conditionally display "25% Off" or "$25.00 Off" when applicable for a product within Content (subcategory_listing) CTGY page. We use a random product from it's assigned category:

        Example:

        Subcategory Listing...

        - - -
        Subcat 1 [Random ProdName] [IF applicable 50% Off!]

        [Random ProdThumb Image]
        - - -

        - - -
        Subcat 2 [Random ProName] [IF applicable 10% Off!]

        [Random ProdThumb Image]
        - - -

        - - -
        Subcat 3 [Random ProdName] [IF applicable $25 Off!]

        [Random ProdThumb Image]
        - - -

        This way, whenever a category is assigned a discount in Price Groups, it is instantly displayed throughout the store category pages no different than when a product is discounted on a product page.

        We have a sale category page and often assigned subcategories that are on sale to it. Eventually, we would love a conditional that would automatically display applicable discounted categories as subcategories to our sale category page along with specified discounted products. This would greatly simplify the showcasing of store promotions and would improve conversions. Someday, I would like to see similar functionality make its way to SFNT page.
        Thank you, Bill Davis

        Comment

        Working...
        X