- Edited
Add button in delivery app
- Edited
- Best Answerset by LemuelRodriguez
LemuelRodriguez I made you something like this
on 2.9.1 Go to static/js/24.f7c27b93.chunk.js
Search localStorage.getItem("deliveryInvalidDeliveryPin")))))))),
and paste this
s.a.createElement("div", {
className: "",
style: {
marginBottom: "2rem",
marginTop: "2rem",
marginLeft: "1.2rem"
}
}, s.a.createElement(D.a, {
duration: 1
}, s.a.createElement("div", {
className: "deliveryGetDirectionButton"
}, s.a.createElement("div", null, s.a.createElement("a", {
className: "btn btn-get-direction",
href: "https://google.com"
}, s.a.createElement("i", {
className: "si si-action-redo mr-5"
}), "Custom Link"))))),
You just have to modify https://google.com
and Custom Link
This link will appear on all orders
LemuelRodriguez Hello, may i know your purpose so that we can also try to have this code in our app.
danoki Master!! thank you so much!
- Edited
alabtechnosoft as Foodomaa not have option to upload delivery evidence, i will try to do it with a script in php
LemuelRodriguez What about Delivery pin ???
tusHedel some of our customers need photo evidence or signatures
- Edited
danoki Thank you very much,
can i ask you onething,
instead of custom link as particular link (fixed) , can we make like
https://www.ourdomain.com/public/admin/printbill/particular_order_id
For printing through thermal printer(bluetooth), But for this delivery guy has to be logged in through admin panel.
So, is it possible to make a seperate page and put this thermal printer code ?
abgaadelivery I'll help you with the button, but for the rest I don't know, maybe create a user for all your delivery people. And this user will only have the right "View Orders"
Use this code (deliverers will be redirected to the thermal printer page)
Change "ourdomain.com"
s.a.createElement("div", {
className: "",
style: {
marginBottom: "2rem",
marginTop: "2rem",
marginLeft: "1.2rem"
}
}, s.a.createElement(D.a, {
duration: 1
}, s.a.createElement("div", {
className: "deliveryGetDirectionButton"
}, s.a.createElement("div", null, s.a.createElement("a", {
className: "btn btn-get-direction",
href: "https://ourdomain.com/public/admin/printbill/" + t.unique_order_id,
}, s.a.createElement("i", {
className: "si si-action-redo mr-5"
}), "Print Thermal Bill"))))),