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://rawgit.com/ryanmorr/ready/master/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}/, '');
    }
    ready('.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 -->