Jump to content

PHP String in Mail Template


nmaria

Recommended Posts

Hi to all,

 

I have modifield the module pay by cheque to have a link to a external payment gateway instead of the usual information of cheque payment.

 

Now in the mail template cheque.html i need to create that link to the mail gateway with a specific value of the order in the string like that:

 

a href="https://link/link/&val=00.00

 

the problem is that 00.00 have to be 00.00 and not 00,00 (like is configured in decimal settings in the store) and no currency only the digits ....

 

In the website i have created this

{$total_to_pay_1 = str_replace(array(' €', ','), array('', '.'), $total_to_pay)}

that changes 00,00 € to 00.00 and works fine, but in mail templates how to do that ?

 

Thanks in advance for all the help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...