shanagann
-
Posts
3 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by shanagann
-
-
31 minutes ago, jaeveedee said:
@shanagann I think if you go into the plugin code and remove this part
replace(",","")
see if this edited version works
<!-- Reformat Product Price (15,000.00 -> 15000) --> <!-- Author: Dmitry Kiselyov @_dmitrykiselyov --> <script src="https://cdn.jsdelivr.net/npm/@ryanmorr/ready@1.4.0/dist/ready.umd.js"></script> <script>!function(){function reformatPrice(price){var priceClone=price.cloneNode(!0);function reformat(){priceClone.innerHTML=price.innerHTML;var target=priceClone.querySelector(".sqs-money-native")||priceClone,textNode=priceClone.querySelector(".sqs-money-native");target.textContent.length>1?target.textContent=format(target.textContent):textNode&&(textNode.textContent=format(textNode.textContent))}function format(text){return text.replace(/\.\d{2}/,"")}function watch(){var observer;new MutationObserver(reformat).observe(price,{childList:!0})}priceClone.classList.add("product-price-clone"),price.parentNode.insertBefore(priceClone,price.nextElementSibling),price.style.display="none",reformat(),watch()}ready(".product-price:not(.product-price-clone),.original-price:not(.product-price-clone)",reformatPrice)}();</script> <!-- end Reformat Product Price -->
Thank you! That did the trick!
-
Hi,
I like others, wanted to change the format of a products price from $250.00 to $250. I used the plugin from ghost plugins provided above, however I do not want to remove the thousands separator, ex $1,000 is now $1000 with the plugin.
Removing Price Limit on Products
in Commerce
Posted
Why set a price limit? Why not increase it. If I cannot figure out a work around, then I will have to abandon the website i have created and payed for, and intend to pay for for the years to come.