Hi, I'll show you a simple way to make this appear:
Note: I used a "do-it-yourself" method to make it as simple as possible without touching the database. Normally you should create a new table in your database and integrate it to your site to indicate the phone number of the restaurant.
I am on 2.8.0 maybe the file will be different with another version. Go to /static/js/23.24669898.chunk.js
Go down to about line 730
Replace this part
s.a.createElement("li", null, s.a.createElement("i", {
className: "list-timeline-icon si si-basket-loaded bg-del-timeline-icon"
}), s.a.createElement(D.a, {
bottom: !0,
duration: 500
}, s.a.createElement("div", {
className: "list-timeline-content"
}, s.a.createElement("p", {
className: "m-0 font-w700"
}, t.restaurant.name), s.a.createElement("p", {
className: "m-0 single-order-restaurant-description"
}, t.restaurant.description), s.a.createElement("p", {
className: "m-0"
}, t.restaurant.address), s.a.createElement("p", {
className: "mb-2"
}, t.restaurant.landmark), s.a.createElement("div", {
className: "mb-2"
}, t.restaurant.pincode), s.a.createElement("div", {
onClick: function() {
return e.__getDirectionToRestaurant(t.restaurant.latitude, t.restaurant.longitude)
}
}, s.a.createElement("button", {
className: "btn btn-get-direction"
}, s.a.createElement("i", {
className: "si si-action-redo mr-5"
}), localStorage.getItem("deliveryGetDirectionButton")))))),
with this part
s.a.createElement("li", {
className: ""
}, s.a.createElement("i", {
className: "list-timeline-icon si si-basket-loaded bg-del-timeline-icon"
}), s.a.createElement(D.a, {
bottom: !0,
duration: 500
}, s.a.createElement("div", {
className: "list-timeline-content"
}, s.a.createElement("p", {
className: "m-0 font-w700"
}, t.restaurant.name), s.a.createElement("p", {
className: "m-0 single-order-restaurant-description"
}, t.restaurant.description), s.a.createElement("p", {
className: "m-0"
}, t.restaurant.address), s.a.createElement("p", {
className: "mb-2"
}, t.restaurant.pincode), s.a.createElement("div", null, s.a.createElement("button", {
className: "btn btn-get-direction mr-2",
onClick: function() {
return e.__getDirectionToRestaurant(t.restaurant.latitude, t.restaurant.longitude)
}
}, s.a.createElement("i", {
className: "si si-action-redo mr-5"
}), localStorage.getItem("deliveryGetDirectionButton")), s.a.createElement("a", {
className: "btn btn-get-direction",
href: "tel:" + t.restaurant.landmark
}, s.a.createElement("i", {
className: "si si-call-out mr-5"
}), localStorage.getItem("callNowButton"), " "))))),
Save. Now go to your Dashboard -> Stores -> Edit -> Meta Data.
Enter the restaurant number in "Land Mark" and save.
Now log back into your delivery application. You should be able to call the restaurant.
Maybe the Foodomaa team can add this option later in a "cleaner" version 🙂