<!-- FOR PAYTM COUPON OFFER MESSAGE -->
<script type="text/javascript">
$(document).on(`page:load page:change`, function (event) {
setTimeout(function(){
if ($(".tags-list .tag:last-child").length > 0) {
var coupon_text = $(".tags-list .tag:first").find(".tag__wrapper .reduction-code span:first").text()
if (coupon_text == "WPTJAN01BB897HG") {
var paytm_text = `<div class="paytm_offer_text" style="padding: 5px 2px; text-align:center; font-size:11px; color: rgb(255, 255, 255);background-color: #c5a65b; ">Offer applied - Rs.400 Off + Rs.25 Cashback will be credited within the next 48 hours in your Paytm wallet.</div>`
$(".order-summary__sections").append(paytm_text)
}
else{
$(".paytm_offer_text").remove()
}
}
else{
$(".paytm_offer_text").remove()
}
}, 500);
})
</script>
<!-- FOR PAYTM COUPON OFFER MESSAGE ENDS --> Search Knowledge Base Articles
Shopify Offer Massage based on Coupon code Prefix
copy & paste this code on checkout.liquid file at the end of file
Did you find this article useful?
Related Articles
-
Expand order summary by default on checkout page
<!-- Expand order summary by default on checkout starts Here --> <script> if (Sho...