WhatsApp link with photo

janyduchemin Posted messages 37 Status Member -  
 Anonymous user -

Hello everyone

I'm creating a showcase website for selling shoes and I would like customers to place orders via WhatsApp: once they choose an item, I want their click to send the selected image to WhatsApp.

If this is possible, what should I do?

I'm a beginner in coding, I'm currently using PHP and HTML.

Thank you

2 answers

  1. [Dal] Posted messages 6122 Registration date   Status Contributor Last intervention   1 108
     

    Hello janyduchemin,

    Your request is strange because, to my knowledge, WhatsApp is a messaging software and does not have order placement features.

    However, if what you want is just to start a conversation, this might be what you're looking for:

    https://faq.whatsapp.com/5913398998672934

    Click-to-WhatsApp links allow you to start a chat with someone without having their phone number saved in your phone's address book. As long as you know that person's phone number and they have an active WhatsApp account, you can create a link that will allow you to start a chat with them. By clicking on the link, a chat with that person will open automatically. Click-to-WhatsApp links work on both phone and WhatsApp Web.

     excerpt from the instructions:

    Create your own link with a predefined message
    The predefined message will automatically appear in the text field of a chat. Use https://wa.me/whatsappphonenumber?text=urlencodedtext where whatsappphonenumber is a full phone number in international format and urlencodedtext is the predefined message encoded in URL format.
    Example: https://wa.me/1XXXXXXXXXX?text=I'm%20interested%20in%20your%20car%20for%20sale

    For a French number, it would be 33XXXXXXXXX (replace the 9 X's with the number without the leading 0).

    This will only work on a computer if the person has linked their mobile device with what they call "WhatsApp Web".

    You can use the Php function https://www.php.net/manual/fr/function.urlencode.php to prepare the text on the fly if it is determined by your Php program, or use an online service like https://www.urlencoder.org/fr/ to encode your text if you know the text in advance.

    0
    1. Anonymous user
       

      Hello [Dal], WhatsApp shopping is a feature available in some countries for the past 2 or 3 years.

      It was for this feature that Facebook justified that from now on identity and payment information would be forwarded to the parent company, triggering an unprecedented wave of unsubscriptions from the app and the rise of Signal and Telegram.

      0
      1. [Dal] Posted messages 6122 Registration date   Status Contributor Last intervention   1 108 > Anonymous user
         

        Thank you, Whismeril.

        So, I'm not sure if my answer addresses the question :-)

        0
      2. Anonymous user > [Dal] Posted messages 6122 Registration date   Status Contributor Last intervention  
         

        You're welcome, and we do what we can....

        0
  2. bMezzane Posted messages 2 Status Member
     

    Hello.
    Creating a link that leads to WhatsApp is very simple with:

    the protocol: whatsapp://

    followed by the command: send

    then the parameter: phone (where you will put your WhatsApp number)

    then the parameter: text (where you must enter the link to the image or the article or any other link you want)

    whatsapp://send?phone=xxxxxxxxxx&text={{{{{{{ here your link that should be normally encoded }}}}}}}

    That way, when you click on the image or the associated button, the WhatsApp application, if installed, will automatically launch; otherwise, nothing will happen..

    0