Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Mubeenali's avatar

How to implement realtime order tracking in ecommerce?

Hello Artisans!I need to implement realtime tracking of order when customer will give an order an unique id will generate by the system So i want to implement the realTime tracking.get the location of order and show on map in very realtime.please give me any soultion or idea to implement this .?I searched a lot but nothing found that fulfills my requirement.please help me thanks!!!

0 likes
10 replies
Snapey's avatar

such a solution is going to require many components that are unique to your situation, so you will be unlikely to find a single solution.

What will you use to GPS track the order?

Mubeenali's avatar

@SNAPEY - Thanks for you reply!I don't want to use the gps physical tracker.Give me solution that reduces the cost and works fine.Basically,i want to make an app that will find the location of delivery agent and give the firebase after it i want to catch the firebase values and show in the form of google map Via tracking id....

martinbean's avatar

@mubeenali You’re not going to find a package or anything off-the-shelf for this. It’s going to depend on which courier you use to ship packages, and what tracking capabilities they offer. Then, you’re going to need to custom-write the integration with their systems to show delivery updates to your customers, add authorisation to make sure customers can only see their shipments, etc.

1 like
Mubeenali's avatar

@MARTINBEAN - Hi thanks for your reply.can you please tell me the general solution for implementing this...Later i will customize it.

martinbean's avatar

@MUBEENALI - There is no “general” solution. Each courier will offer different systems for tracking deliveries. You’d follow the steps I loosely described in my previous post.

martinbean's avatar

@mubeenali Again, there is no “solution” that you can just “drop” into your application.

You need to pick a courier who’s going to be shipping your packages; and then integrate with their systems, which will be different to any other couriers’ systems, which is why there isn’t “one” way to add tracking to your application.

1 like
jlrdw's avatar

Do a practice project and practice working with apis and how to implement them.

In your case Logistics tracking.

Each carrier apis maybe a little different.

can you please tell me any solution ?

An example solution:

https://docs.aftership.com/fedex-tracking-api may be just what you are looking for. Just integrate it as per their documentation.

There are probably other tutorials on the web about setting up FedEx or UPS apis.

1 like
Mubeenali's avatar

@JLRDW - Hii thanks for your reply.Your answer might be help me for what i want to implement this.

Please or to participate in this conversation.