Created
September 29, 2016 13:45
-
-
Save kylewest/dc7a86c679881691425704614c91a425 to your computer and use it in GitHub Desktop.
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
<!-- 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