debora_rojas Posted May 4, 2021 Share Posted May 4, 2021 hola he agregado un icono de whatsapp en el header y relamente necesito que capture el numero de telefono en el url pero me envia la variable, me temo que hay algo que no estoy viendo o colocando. {l s='<span class="icono-what"><i class="fab fa-whatsapp fa-2x"></i>[1]%fax%[/1]</span>' sprintf=[ '[1]' => '<a href="https://api.whatsapp.com/send?phone/{$contact_infos.fax}">', '[/1]' => '</a>', '%fax%' => $contact_infos.fax ] d='Shop.Theme.Global' } realmente puedo colocando el numero telefonico directamente, pero cada vez que necesiten cambiar el numero no se puede si no es atravez del tpl. '[1]' => '<a href="https://api.whatsapp.com/send?phone=+34660389219">' Link to comment Share on other sites More sharing options...
Nickz Posted May 4, 2021 Share Posted May 4, 2021 You'll have more luck with: https://wa.me/yournumber Link to comment Share on other sites More sharing options...
debora_rojas Posted May 5, 2021 Author Share Posted May 5, 2021 if i placed it like this, but i don't want put the numbrer in the nav.tpl. i want it to to take the number from the variable {$contact_infos.phone} or {$contact_infos.fax} Link to comment Share on other sites More sharing options...
JuanjoG Posted May 5, 2021 Share Posted May 5, 2021 Y porque no lo pones con el módulo y te quitas de lío, te dejo un módulo gratis. 17-whatsapp-live-chat.zip Link to comment Share on other sites More sharing options...
debora_rojas Posted May 5, 2021 Author Share Posted May 5, 2021 porque es un flotante y lo quiero colocar especificamente en la cabecera Link to comment Share on other sites More sharing options...
debora_rojas Posted May 5, 2021 Author Share Posted May 5, 2021 (edited) logre resolverlo, si alguien se encuentra en lo mismo y no quiere usar modulos esto fue lo que hice yo, usando el campo de fax para whatsapp ya que no se usa el envio de fax. {if $contact_infos.fax} <a href="https://api.whatsapp.com/send?phone=+34{$contact_infos.fax}"> <span class="icono-what"><i class="fab fa-whatsapp fa-2x"> </i>Whatsapp: {$contact_infos.fax} </span> </a> {/if} </div> Edited May 5, 2021 by debora_rojas (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now