Discount Info
This tag pair outputs information about the currently active applied discounts currently being used in the cart.
Table of Contents
Variables
In addition to the variables listed here, this tag also gives you tag variables from the discount entry itself, like {title}, {url_title} and any other custom fields you may have in your discounts channel.
discount_type
The classname of the discount plugin in use for this discount.
{discount_type}
Cartthrob_discount_amount_off
discount_amount
The amount taken off by this discount
{discount_amount}
$5.00
Conditionals
{if no_results}
If there are no currently active applied discounts, the content in this conditional will be shown.
{if no_results}
No discounts
{/if}
Examples
{exp:cartthrob:discount_info}
{if no_results}No discounts are currently active{/if}
Discount Entry Title: {title}
Discount Type: {discount_type}
{/exp:cartthrob:discount_info}