Created
March 20, 2020 14:53
-
-
Save bogdanrn/5a499e3f83a503c0506491d97dcf23f4 to your computer and use it in GitHub Desktop.
Automatic Discount - Active Display of Discounts (Brooklyn Theme Example #2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type='text/css'> | |
.nice_discount_style { | |
font-size: 11px; | |
line-height: 22px; | |
vertical-align: middle; | |
border: 1px dashed white; | |
display: inline-block; | |
padding: 1px 5px; | |
margin-top: 5px; | |
margin-bottom: 5px; | |
border-radius: 5px; | |
} | |
</style> | |
<div class="grid--full" data-tbnadhide='NO_DISCOUNT' style='display:none;'> | |
<div class="grid__item two-thirds"> | |
<p class="ajaxcart__subtotal nice_discount_style" data-tbnadfield='DISCOUNT_CODE'></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