Feature Requests
Share ideas, discuss and vote on requests from other users in community
 
This object is in archive! 

Invoice RAW number and add currency symbol tag {suffix or prefix}

Denver Prophit Jr. shared this idea 3 years ago
Under Consideration

I'm trying to develop a responsive email theme with schema microdata at https://github.com/StrikeHawk-ecommerce/whmcs-responsive-email-templates

I'm now working on that feature to embed schema. It requires raw number and a currency specification. The current invoice email tags includes the currency symbol. Please break those up into seperate artifacts?

Comments (3)

photo
2

That would be great. In the meantime you can do something like

{assign var=itemamount value=$invoiceitem.amount|replace:'€':''|replace:'EUR':''}

to get the number without currency symbol.

We do that in the viewinvoice.tpl for example to get the raw number for calculation of taxes..

photo
1

Michael wrote:

That would be great. In the meantime you can do something like

{assign var=itemamount value=$invoiceitem.amount|replace:'€':''|replace:'EUR':''}

to get the number without currency symbol.

We do that in the viewinvoice.tpl for example to get the raw number for calculation of taxes..

That would be a great static solution. But, at the github project, I'd have to or maybe you would like to think up how to use just whmcs variables so that anyone could use it. No matter what currency configured? https://github.com/StrikeHawk-ecommerce/whmcs-responsive-email-templates The issue is https://github.com/StrikeHawk-ecommerce/whmcs-responsive-email-templates/issues/4