How to reformat product price in Squarespace

This will reformat your product price from 15,000.00 to 1500. 

Paste the code below in your code injection footer.

<!-- Reformat Product Price (15,000.00 -> 1500) -->
<!-- Author: Dmitry Kiselyov @_dmitrykiselyov -->
<script src="https://cdn.jsdelivr.net/gh/ryanmorr/ready@1.2/dist/ready.min.js"></script>
<script>
(function() {
  ready('.product-price:not(.product-price-clone)', reformatPrice);
  function reformatPrice(price) {
    var priceClone = price.cloneNode(true);
    priceClone.classList.add('product-price-clone');
    price.parentNode.insertBefore(priceClone, price.nextElementSibling);
    price.style.display = 'none';
    function reformat() {
      priceClone.innerHTML = price.innerHTML;
      var target = priceClone.children[0] || priceClone;
      target.textContent = target.textContent.replace(',', '').replace(/\.\d{2}/, '');
    }
    function watch() {
      var observer = new MutationObserver(reformat);
      observer.observe(price, { childList: true });
    }
    reformat();
    watch();
  }
})();
</script>
<!-- end Reformat Product Price -->