ThePolovsky Posted October 15, 2020 Share Posted October 15, 2020 Hi guys, I am using an ATM reference service that exists in Portugal but I would like to know if it is possible to remove the currency symbol and just keep the total number. Example: https://ifthenpay.com/api/multibanco/referencia.ashx?entidade=11111&subentidade=222&id={$invoice_num}&valor={$invoice_total}&type=img {$invoice_total} = total price with the symbol € but the code is incorrect, because looks like https://ifthenpay.com/api/multibanco/referencia.ashx?entidade=11111&subentidade=222&id=222&valor=€11,00+EUR&type=img but I want it to be like this: https://ifthenpay.com/api/multibanco/referencia.ashx?entidade=11111&subentidade=222&id=222&valor=11.00&type=img Can anyone help me please? 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted October 15, 2020 Share Posted October 15, 2020 (edited) {$invoice_total|replace:'€':''|replace:',':'.'|replace:'EUR':''} Edited October 15, 2020 by pRieStaKos 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.