There are lines in PHP:

<?php if ($this->config_fields['d_mobil_phone']['display']){?> <tr> <td width="160"><?php print _JSHOP_MOBIL_PHONE?>:</td> <td><?php print $this->order->d_mobil_phone?></td> </tr> <?php } ?> 

They display the phone number entered by the user. Where to insert the code "tel:" so that the displayed phone becomes clickable?

    1 answer 1

    Instead

    <td><?php print $this->order->d_mobil_phone?></td>

    insert link

     <?php printf('<td><a href="tel:%s">%1$s</a></td>', $this->order->d_mobil_phone); ?> 
    • Instead of the indicated line, I insert, but not a clickable phone - sander
    • @sander show a fragment of the generated * html page with this code - Anton Shchyrov
    • <tr> <td width = "160"> Mobile phone: </ td> <td> <a target="_blank" rel="noopener"> <span class = "js-phone-number highlight-phone" data- title = "Call via Web Agent"> + 7 000 000 00 00 </ span> </a> </ td> </ tr> - sander
    • This I look through the mail mail. And if you enter your mail client, the phone is visible as text - sander
    • one
      @sander my code could not generate such strings. Let's discuss the real code - Anton Shchyrov