Skip to content

Instantly share code, notes, and snippets.

View LordPachelbel's full-sized avatar

Jordan Bradford LordPachelbel

View GitHub Profile
@LordPachelbel
LordPachelbel / bigcommerce-purchase-orders.html
Created March 9, 2021 21:30
BigCommerce checkout tweak to accommodate purchase orders
<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) {
@LordPachelbel
LordPachelbel / .gitconfig
Last active March 24, 2023 13:53
My .gitconfig
[user]
name = FILL THIS IN
email = FILL THIS IN
[text]
autocrlf = input
eol = lf
text = auto
[color]
ui = auto
[filter "lfs"]