Cart    Account    Contact    Newsletter Signup    Showcase    Login    Signup

Developers Docs

Cart Discount

Cart discount is a tag pair that will return the contents if there is a valid discount applied to the order.

Internal Tags

  • discount (single) - Returns the value of the discount.
  • subtotal (single) - Returns the value of the subtotal in the cart.


Example from Blank template: (file: cart/index)

{exp:brilliant_retail:cart_discount}
     <p>SubTotal: {subtotal}</p>
     {exp:brilliant_retail:promo_form}
         <div class="remove">
             <p class="discount">Discount: ({discount})</p>
             <input type="hidden" name="code" value="remove" />
             <div class="btn">
                  <input name="" type="image" src="{theme}/images/remove.jpg" alt="Remove" />
             </div>
         </div>
         <div class="clearboth"><!-- --></div>
     {/exp:brilliant_retail:promo_form}
{/exp:brilliant_retail:cart_discount}

Comments

Add Your Comments


You must be logged in to comment.