Giter VIP home page Giter VIP logo

talktousonwhatsapp-php's Introduction

About TalkToUsOnWhatsApp (modal window)

Modal window

It is a script very focused on the methodologies of information capture practiced in marketing agencies, so it is recommended to watch users about privacy of your personal info.

Through a modal window with a very simple form, you can request basic and detailed information from the users client. The information collected by the form will be sent to your email, then the user will be redirected to the WhatsApp App or Web App, where he will already have a personalized communication according to the data previously captured.

Settings

It is necessary basic knowledge of programming language like JS and PHP, server file management and MySQL database.

To start using, you need to create a database, use the clients__TalkToUsOnWhatsApp_JDeS.sql file to create default structure of table in your database, add connection informations to your database in conn.php file, and then in the file assets/js/TalkToUsOnWhatsApp_JDeS.js change:

var TalkToUsOnWhatsApp_url = "//yourdomain/TalkToUsOnWhatsApp";

replace //yourdomain according to the directory you put this script.

Do not forget to set up directory permissions correctly. 755 directories and 644 files

About email configuration, I used SendGrid, so in config/processWhatsApp_0(and 1).php have script ready to communicate via API, just include your SendGrid API Key. If you want, can chose any other way.

How it works

TalkToUsOnWhatsApp has a generator (//yourdomain/TalkToUsOnWhatsApp/generator.html) for you register clients and generates a unique code to be used on the client website. Modal window generator process serves to record in the database who will be directed the information collected by the modal window form that will be on the client site.

Generator

In the generator fill in your client's information, get your script code, add it somewhere on your client's website and you're done, your modal will be displayed, that's all. :)

Something like that will be generated:

<script> var TalkToUsOnWhatsAppClientToken_JDeS = "69a42835177d308ff1e42a84861cf9eb"; (function() { var js, el; js = document.createElement("script"); el = document.querySelector("html"); js.src="//yourdomain/TalkToUsOnWhatsApp/TalkToUsOnWhatsApp_JDeS.js"; el.insertBefore(js, el.childNodes[0]); })(); </script>

The script has two different settings:

  • Basic - The form will request Name;
  • Advanced - The form will request Name, Phone and Message.

Your have some other stuffs to play, just custom this script like you want and need. Do not forget to share!

Any questions, we can talk about. ;)

talktousonwhatsapp-php's People

Contributors

jandeilson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mhwh-dev

talktousonwhatsapp-php's Issues

Got no token / no script

Hello, writing to DB is working but there is no token in DB -> so?? ... no script is displayed after pressing "generate" Button on generator.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.