This file contains hidden or 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
[user] | |
name = FILL THIS IN | |
email = FILL THIS IN | |
[text] | |
autocrlf = input | |
eol = lf | |
text = auto | |
[color] | |
ui = auto | |
[filter "lfs"] |
This file contains hidden or 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
<script> | |
// this code tweaks BigCommerce's checkout page a little bit to make up for their ridiculous shortcomings | |
document.addEventListener('DOMContentLoaded', function(event) { | |
// add note about purchase order numbers to the checkout form | |
var checkoutAppDiv = document.getElementById('checkout-app'); | |
var checkoutObserver = new MutationObserver(function(mutationsList, observer) { | |
var orderCommentsField = document.querySelector('.form-input[name="orderComment"]'); | |
if(orderCommentsField !== null) { |