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) -->
<script src="https://rawgit.com/ryanmorr/ready/master/dist/ready.min.js"></script>
<script>
  (function() {
    function reformat(price) {
      price.textContent = price.textContent.replace(',', '').replace(/\.[0-9]{2}/, '');
    }
    ready('.view-list .sqs-money-native, .view-item .product-price', function(price) {
      reformat(price);
      var observer = new MutationObserver(function(mutations) {
        reformat(mutations[0].target);
      });
      observer.observe(price, { childList: true });
    });
  })()
</script>
<!-- end Reformat Product Price -->