我需要一个输入范围来显示巴西货币格式的值。从逻辑上讲,在一个函数中接收这个数字就足够了,该函数将对其进行格式化,然后返回格式化的值。但这是Javascript,我找不到让它工作的方法。
function converter(valor){
var numero = (valor).toLocaleString('pt-BR');
document.getElementById('valor').value = 'R$ '+numero;
}Run Code Online (Sandbox Code Playgroud)
<input type="range" min="0" max="4000.00" value="2000.00" step="0.01" style="width:100%" oninput="converter(this.value)">
<p>
<input type="text" name="valor" value="R$ 0,00" id="valor">Run Code Online (Sandbox Code Playgroud)
I know it sounds simple, but I've researched this in many ways and only found functions to change the status of the order. I have also reviewed the whole database of wordpress I did not find the term "status" nor "processing", "completed", etc. Could anyone tell me how Woocommerce stores order status?