Post by sedra » Fri Apr 17, 2020 5:37 pm

i added a simple line of code in header.twig at line 59 and now on both PC and Android devices customers can contact me
via my WhatsApp number.
i hope it helps someone else!

Code: Select all

<li> <a href="https://api.whatsapp.com/send?phone=1234567890&text=hi! I have a question?">WhatsApp Chat?</a> </li>
its so slick and shiny on a android browser. i absolutely love it!
here is a complete guide for creating appropriate URL link:
https://tribulant.com/blog/marketing-so ... tart-chat/
i tried to use an image or icon instead of "WhatsApp Chat?" but due to my lack of TWIG Editing knowledge it didn't work and broke many things.
so do not try to add an <img> tag inside <a> tag unless YOU KNOW WHAT ARE YOU DOING. check it first on a test environment .

New member

Posts

Joined
Thu Jan 04, 2018 8:14 pm

Post by patjuh » Fri Apr 17, 2020 5:56 pm

wouldnt it be smarter to run a fake number true the api so you can turn it off on vacation or whatever and hide the number in a db-table.
now the number is open for all to use with the api call

so in plain language
for instance create a dubline account with number and use that number in the api request

and to hide the number make a simple model and controller to request it to your twig

at that point you can always remove the phonenumber or change it so no one can use it for illegal activities or just to share with whole world ;)

New member

Posts

Joined
Sat Feb 11, 2017 7:22 pm

Post by sedra » Thu Apr 30, 2020 4:17 pm

patjuh wrote:
Fri Apr 17, 2020 5:56 pm
wouldnt it be smarter to run a fake number true the api so you can turn it off on vacation or whatever and hide the number in a db-table.
now the number is open for all to use with the api call

so in plain language
for instance create a dubline account with number and use that number in the api request

and to hide the number make a simple model and controller to request it to your twig

at that point you can always remove the phonenumber or change it so no one can use it for illegal activities or just to share with whole world ;)
of course it would and maybe should!
i agree completely :P
but
here in "this Country"
nothing is of that "seriousness"!
being alive is already something illegal here and honestly i don't care about the other "illegal activities"!

New member

Posts

Joined
Thu Jan 04, 2018 8:14 pm
Who is online

Users browsing this forum: sdd and 27 guests