shopp('product.savings')

Normally used in the first part of a ‘has-savings’ test block to show the amount of savings between the sale price and regular price.

Options

  • taxes: Default behavior depends on the base of operations. This setting can override the default. When set to true, includes the tax in the price(s) when calculating savings. When set to false, excludes tax from the price(s) used in calculating the savings. {{AI1.1}}
  • show: Default is money. Allows you to specify whether to show the amount of savings as a currency amount or percentage. To show as a percent, use show=% or show=percent

Examples

<?php shopp('product','savings'); ?>

See Also

  1. Avatar of Kelvin Alfonso

    Example for the percentage:

    <?php shopp('product','savings','show=%'); ?>
    
    May 5th   #

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar