I would like to change the ON SALE tag currently displayed on product cards to display the percentage saved. I know other tutorials exist and I have already successfully implemented this before but that was with a different currency format. My new format does not include decimals because Colombian COP doesn’t really use that and the codes I implemented do not calculate the discount percentage, they all just display 0% OFF. Any suggestions? Thanks for the attention.
As an example, the code worked when my currency was formated as: $149.000,00 COP
But that code no longer works because the current currency format is: $149.000 COP