Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Subscriptions
English French
English French

How to show a different copy for Gift terms in checkout

In order to show a different copy in the Checkout template in case the user selects a gift term, you can either use the isGiftTerm()​ method or the selectedTerm.type model with the value gift.

For example:

HTML
<span ng-if="selectedTerm.type == 'gift'">
    <div class="gift-copy">
        <i>Special gift subscription!</i>
    </div>
</span>

Last updated: