Hello friends, could you please help me? by any chance you know how to add a button with custom link in delivery app so that it shows in every order? @danoki @Saurabh

  • danoki and alabtechnosoft replied to this.
  • 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 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 😉

      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"))))),

          danoki

          OKAY. tHANK YOU

          BUT IM USING 2.8 VERSION, IS THAT OKAY TO PASTE THIS CODE ?

          Write a Reply...