Skip to content

Instantly share code, notes, and snippets.

@bogdanrn
Last active March 20, 2020 14:51
Show Gist options
  • Save bogdanrn/e750c6512d1504479130c4eb21501658 to your computer and use it in GitHub Desktop.
Save bogdanrn/e750c6512d1504479130c4eb21501658 to your computer and use it in GitHub Desktop.
Automatic Discount - Active Display of Discounts (Brooklyn Theme Example #1)
<div class="grid--full" data-tbnadhide='NO_DISCOUNT' style='display:none;'>
<div class="grid__item two-thirds">
<p class="ajaxcart__subtotal">Discount</p>
</div>
<div class="grid__item one-third text-right">
<p class="ajaxcart__subtotal">-<span data-tbnadfield='CART_DISCOUNT'></span></p>
</div>
</div>
<div class="grid--full">
<div class="grid__item two-thirds">
<p class="ajaxcart__subtotal">Total</p>
</div>
<div class="grid__item one-third text-right">
<p class="ajaxcart__subtotal"><span data-tbnadfield='CART_TOTAL'></span></p>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment