Foodomaa - Multi-restaurant Food Ordering, Restaurant & Delivery Application - (NULLED BY @LALBILLA)

Foodomaa - Multi-restaurant Food Ordering, Restaurant & Delivery Application - (NULLED BY @LALBILLA) 3.5

No permission to download

rwassa

Member
Nov 25, 2019
44
14
8
notification Orders on Whatsapp admin

etape 1 :
You need to get the apikey form the bot before using the API:

Add the phone number +34 644 52 74 88 into your Phone Contacts. (Name it it as you wish)
Send this message "I allow callmebot to send me messages" to the new Contact created (using WhatsApp of course)
Wait until you receive the message "API Activated for your phone number. Your APIKEY is 123123" from the bot. As this is still in beta testing, the activation can take up to 2 minutes.
The WhatsApp message from the bot will contain the apikey needed to send messages using the API.
You can send text messages using the API after receiving the confirmation.

etape 2:
/app/Http/Controllers/OrderController.php

simple add this code on OrderController.php

after this line
$this->sendPushNotificationStoreOwner($restaurant_id, $unique_order_id); line 350

replace XXXX to your WhatsApp number & apikey

CODE
/* START SEND WHATSAPP WITH API TO OWNER AFTER ORDER PLACED*/

$msgMessage = "*New Order Arrived!*
*Restaurant Name* -". $restaurant->name."
*Customer No* - ". $user->phone."
*Order ID* - #". $newOrder->unique_order_id."
*Order Price* -". config('appSettings.currencyFormat') .$newOrder->total;

$message= urlencode($msgMessage);
//The URL with parameters / query string.
$url = 'https://api.callmebot.com/whatsapp.php?phone=XXXXXXXX&text='.$message.'&apikey=XXXXXX';
//Once again, we use file_get_contents to GET the URL in question.
$contents = file_get_contents($url);
/* END SEND WHATSAPP WITH API TO OWNER AFTER ORDER PLACED*/
 

arrocy

Active member
Null Master
Trusted Uploader
Jun 16, 2020
185
213
43
notification Orders on Whatsapp admin

etape 1 :
You need to get the apikey form the bot before using the API:

Add the phone number +34 644 52 74 88 into your Phone Contacts. (Name it it as you wish)
Send this message "I allow callmebot to send me messages" to the new Contact created (using WhatsApp of course)
Wait until you receive the message "API Activated for your phone number. Your APIKEY is 123123" from the bot. As this is still in beta testing, the activation can take up to 2 minutes.
The WhatsApp message from the bot will contain the apikey needed to send messages using the API.
You can send text messages using the API after receiving the confirmation.

etape 2:
/app/Http/Controllers/OrderController.php

simple add this code on OrderController.php

after this line
$this->sendPushNotificationStoreOwner($restaurant_id, $unique_order_id); line 350

replace XXXX to your WhatsApp number & apikey

CODE
/* START SEND WHATSAPP WITH API TO OWNER AFTER ORDER PLACED*/

$msgMessage = "*New Order Arrived!*
*Restaurant Name* -". $restaurant->name."
*Customer No* - ". $user->phone."
*Order ID* - #". $newOrder->unique_order_id."
*Order Price* -". config('appSettings.currencyFormat') .$newOrder->total;

$message= urlencode($msgMessage);
//The URL with parameters / query string.
$url = 'https://api.callmebot.com/whatsapp.php?phone=XXXXXXXX&text='.$message.'&apikey=XXXXXX';
//Once again, we use file_get_contents to GET the URL in question.
$contents = file_get_contents($url);
/* END SEND WHATSAPP WITH API TO OWNER AFTER ORDER PLACED*/
Wow... Very good.
Good job!
I was going to use a traditional route, but this way is much better.
Thanks @rwassa
 

arrocy

Active member
Null Master
Trusted Uploader
Jun 16, 2020
185
213
43
notification Orders on Whatsapp admin

etape 1 :
You need to get the apikey form the bot before using the API:

Add the phone number +34 644 52 74 88 into your Phone Contacts. (Name it it as you wish)
Send this message "I allow callmebot to send me messages" to the new Contact created (using WhatsApp of course)
Wait until you receive the message "API Activated for your phone number. Your APIKEY is 123123" from the bot. As this is still in beta testing, the activation can take up to 2 minutes.
The WhatsApp message from the bot will contain the apikey needed to send messages using the API.
You can send text messages using the API after receiving the confirmation.

etape 2:
/app/Http/Controllers/OrderController.php

simple add this code on OrderController.php

after this line
$this->sendPushNotificationStoreOwner($restaurant_id, $unique_order_id); line 350

replace XXXX to your WhatsApp number & apikey

CODE
/* START SEND WHATSAPP WITH API TO OWNER AFTER ORDER PLACED*/

$msgMessage = "*New Order Arrived!*
*Restaurant Name* -". $restaurant->name."
*Customer No* - ". $user->phone."
*Order ID* - #". $newOrder->unique_order_id."
*Order Price* -". config('appSettings.currencyFormat') .$newOrder->total;

$message= urlencode($msgMessage);
//The URL with parameters / query string.
$url = 'https://api.callmebot.com/whatsapp.php?phone=XXXXXXXX&text='.$message.'&apikey=XXXXXX';
//Once again, we use file_get_contents to GET the URL in question.
$contents = file_get_contents($url);
/* END SEND WHATSAPP WITH API TO OWNER AFTER ORDER PLACED*/
Is this mean that each resto-owner must register with callmebot?
then the XXXXXXX phone number should be $restaurant->phone, instead of hardcoded number
and the XXXXXXX api key should be $restaurant->callmebot_api, we must add a field (callmebot_api) in the database (in restaurant table), then add inputText in admin and restaurant blades so we can input the callmebot api key

Traditional way (no need to register callmebot and modify database & blade files):
/* START SEND WHATSAPP WITH API TO OWNER AFTER ORDER PLACED*/

$msgMessage = "*New Order Arrived!*
*Restaurant Name* -". $restaurant->name."
*Customer No* - ". $user->phone."
*Order ID* - #". $newOrder->unique_order_id."
*Order Price* -". config('appSettings.currencyFormat') .$newOrder->total;

$message= urlencode($msgMessage);
//The URL with parameters / query string.
// TRADITIONAL WAY
$url="https://api.whatsapp.com/send?phone=" . $restaurant->phone . "&text=" . $message;
//Once again, we use file_get_contents to GET the URL in question.
$contents = file_get_contents($url);
/* END SEND WHATSAPP WITH API TO OWNER AFTER ORDER PLACED*/
 
Last edited:

winner73

Member
Jan 5, 2021
36
6
8
52
naahh.. just add a button after order sent, when click gonna open whatsapp app with complete order list in text. Nothing fancy, just like 'whatsapp food'.

Oh yeah... In case the author read this and want to implement this feature, you can put the button on order detail page next to 'track order' button.
And after order is made, redirect to 'order detail' page instead of 'tracking order' page, so customer can decide to send whatsapp message to store-owner or to track order.
congratulations, can you share? please, I have it but not how you implemented it. Thank you
 

arrocy

Active member
Null Master
Trusted Uploader
Jun 16, 2020
185
213
43
congratulations, can you share? please, I have it but not how you implemented it. Thank you
postings before this has 'AUTOMATIC' send Whatsapp msg after order placed.
@rwassa using callmebot API
I use traditional whatsapp API

NO NEED customer app source code!
YOU MUST enable OneSignal, if you don't us OneSignal, put the code somewhere else.
You can modify the $message by editing $msgMessage. You can send detailed order instead of summary (like the example above).
 

rwassa

Member
Nov 25, 2019
44
14
8
Is this mean that each resto-owner must register with callmebot?
then the XXXXXXX phone number should be $restaurant->phone, instead of hardcoded number
and the XXXXXXX api key should be $restaurant->callmebot_api, we must add a field (callmebot_api) in the database (in restaurant table), then add inputText in admin and restaurant blades so we can input the callmebot api key

Traditional way (no need to register callmebot and modify database & blade files):
/* START SEND WHATSAPP WITH API TO OWNER AFTER ORDER PLACED*/

$msgMessage = "*New Order Arrived!*
*Restaurant Name* -". $restaurant->name."
*Customer No* - ". $user->phone."
*Order ID* - #". $newOrder->unique_order_id."
*Order Price* -". config('appSettings.currencyFormat') .$newOrder->total;

$message= urlencode($msgMessage);
//The URL with parameters / query string.
// TRADITIONAL WAY
$url="https://api.whatsapp.com/send?phone=" . $restaurant->phone . "&text=" . $message;
//Once again, we use file_get_contents to GET the URL in question.
$contents = file_get_contents($url);
/* END SEND WHATSAPP WITH API TO OWNER AFTER ORDER PLACED*/
I am not a professional, but after collecting the information I did many experiments until I was able to access this code and share it with this forum and another forum
The idea that was presented is very good. I hope you will develop it and share it with us
 

arrocy

Active member
Null Master
Trusted Uploader
Jun 16, 2020
185
213
43
I am not a professional, but after collecting the information I did many experiments until I was able to access this code and share it with this forum and another forum
The idea that was presented is very good. I hope you will develop it and share it with us
OK. I will do it.
Give me a couple of days, cause I want to test and make the whatsapp message display on the Mobile phone screen beautiful.

I already promise @SaurabhShah (author) not to null FUTURE VERSIONS of Foodomaa anymore.
He is a nice guy, if you guys using nulled Foodomaa and making money out of it, please.. please.. buy a license to support him.

On the side note, QuickQR is a good script for touchless menu and whatsapp food ordering, and the best thing is, I just nulled it. So go ahead check it out https://babiato.tech/threads/quickqr-saas-contactless-restaurant-qr-menu-makers.31116/post-493481

Arrocy.
 

member321

New member
Apr 11, 2021
16
5
3
OK. I will do it.
Give me a couple of days, cause I want to test and make the whatsapp message display on the Mobile phone screen beautiful.

I already promise @SaurabhShah (author) not to null FUTURE VERSIONS of Foodomaa anymore.
He is a nice guy, if you guys using nulled Foodomaa and making money out of it, please.. please.. buy a license to support him.

On the side note, QuickQR is a good script for touchless menu and whatsapp food ordering, and the best thing is, I just nulled it. So go ahead check it out https://babiato.tech/threads/quickqr-saas-contactless-restaurant-qr-menu-makers.31116/post-493481

Arrocy.
has how to put pushnotfication for delivery
 

member321

New member
Apr 11, 2021
16
5
3
Is this mean that each resto-owner must register with callmebot?
then the XXXXXXX phone number should be $restaurant->phone, instead of hardcoded number
and the XXXXXXX api key should be $restaurant->callmebot_api, we must add a field (callmebot_api) in the database (in restaurant table), then add inputText in admin and restaurant blades so we can input the callmebot api key

Traditional way (no need to register callmebot and modify database & blade files):
/* START SEND WHATSAPP WITH API TO OWNER AFTER ORDER PLACED*/

$msgMessage = "*New Order Arrived!*
*Restaurant Name* -". $restaurant->name."
*Customer No* - ". $user->phone."
*Order ID* - #". $newOrder->unique_order_id."
*Order Price* -". config('appSettings.currencyFormat') .$newOrder->total;

$message= urlencode($msgMessage);
//The URL with parameters / query string.
// TRADITIONAL WAY
$url="https://api.whatsapp.com/send?phone=" . $restaurant->phone . "&text=" . $message;
//Once again, we use file_get_contents to GET the URL in question.
$contents = file_get_contents($url);
/* END SEND WHATSAPP WITH API TO OWNER AFTER ORDER PLACED*/
use this method, but for delivery
 

arrocy

Active member
Null Master
Trusted Uploader
Jun 16, 2020
185
213
43
Good news everyone....
Whatsapp communication between user and delivery guy (opening whatsapp instead of opening phone app)

Edit these 2 files:
1. /static/js -> 18.xxx.chunk.js
find: href:"tel:"+t.delivery_details.phone
replace it with: href:"https://api.whatsapp.com/send?phone="+t.delivery_details.phone

2. /static/js -> 23.xxx.chunk.js
find: href:"tel:"+t.user.phone
replace it with: href:"https://api.whatsapp.com/send?phone="+t.user.phone

Edit translations Settings->Translations ->Edit language:
find: Call Now
Replace it with: Whatsapp

Clear caches from the admin panel is necessary for the changes take effect.
 

Attachments

  • whatsapp-customer.png
    whatsapp-customer.png
    143.3 KB · Views: 65
  • whatsapp-driver.png
    whatsapp-driver.png
    98.9 KB · Views: 65
  • Love
Reactions: roger17

Randall

Active member
May 10, 2021
107
40
28
Good news everyone....
Whatsapp communication between user and delivery guy (opening whatsapp instead of opening phone app)

Edit these 2 files:
1. /static/js -> 18.xxx.chunk.js
find: href:"tel:"+t.delivery_details.phone
replace it with: href:"https://api.whatsapp.com/send?phone="+t.delivery_details.phone

2. /static/js -> 23.xxx.chunk.js
find: href:"tel:"+t.user.phone
replace it with: href:"https://api.whatsapp.com/send?phone="+t.user.phone

Edit translations Settings->Translations ->Edit language:
find: Call Now
Replace it with: Whatsapp

Clear caches from the admin panel is necessary for the changes take effect.


When you are redirected, you are not leaving the Country code, how should I add my Country code +55?
 

Latest posts

Forum statistics

Threads
69,498
Messages
910,046
Members
239,985
Latest member
snapkits

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu