Skip to content

Instantly share code, notes, and snippets.

@bogdanrn
bogdanrn / brooklyn_active_display_example_2.html
Created March 20, 2020 14:53
Automatic Discount - Active Display of Discounts (Brooklyn Theme Example #2)
<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;
@bogdanrn
bogdanrn / brooklyn_active_display_example_1.html
Last active March 20, 2020 14:51
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">