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/dist/ready.min.js"></script>
<script>
(function() {
  function reformat(price) {
    var target = price.children[0] || price;
    target.textContent = target.textContent.replace(',', '').replace(/\.[0-9]{2}/, '');
  }
  function watch(target) {
    var observer = new MutationObserver(function(mutations) {
      setTimeout(function() { reformat(target) }, 10);
    });
    observer.observe(target, { childList: true });
  }
  ready('.product-price', function(price) {
    reformat(price);
    watch(price);
  });
})();
</script>
<!-- end Reformat Product Price -->