Skip to content

Instantly share code, notes, and snippets.

@kylewest
Created September 29, 2016 13:45
Show Gist options
  • Save kylewest/dc7a86c679881691425704614c91a425 to your computer and use it in GitHub Desktop.
Save kylewest/dc7a86c679881691425704614c91a425 to your computer and use it in GitHub Desktop.
<!-- put this code in custom html <head> section (Website Configuration) -->
<script type="text/javascript">
$(document).ready(function(){
if ( /magnaflow/i.test($("h1").text()) ) {
$("#ctl00_MainContentPlaceHolder_YourPriceLabel").after("<br/>Use Coupon: MAGNAFLOW for an extra 5% off");
}
if ( /aeromotive/i.test($("h1").text()) ) {
$("#ctl00_MainContentPlaceHolder_YourPriceLabel").after("<br/>Use Coupon: AEROMOTIVE for an extra 5% off");
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment