LS136 Posted March 15, 2024 Share Posted March 15, 2024 Hello guys, I need some help to solve this issue. I have created a tracking page for my website i want to add a table at the start of the page where the customers can find their order number alongside the tracking number which they can use to track the parcel. another table just to show the prefix of which tracking number belongs to which carries for example royal mail starting with TQ etc. here is the code: <div class="container"> <h1>Package Tracking</h1> <p>Track your packages easily with our convenient tracking service. Simply select the carrier below and click the corresponding button to track your package journey.</p> </div> <div class="container"> <div class="carrier" style="padding-right: 20px; padding-bottom: 30px;"><img src="http://logo-logos.com/2016/10/Royal_Mail_logo.png" alt="Royal_Mail_logo.png" style="width: 80px; height: 50px;" /> <a href="https://www.royalmail.com/track-your-item" target="_blank" rel="noreferrer noopener">Track with Royal Mail</a></div> <div class="carrier" style="padding-right: 20px; padding-bottom: 30px;"><img src="https://1000logos.net/wp-content/uploads/2023/11/Evri-Logo-768x432.png" alt="Evri" style="width: 80px; height: 50px;" /> <a href="https://www.evri.com/track-a-parcel" target="_blank" rel="noreferrer noopener">Track with Evri</a></div> <div class="carrier" style="padding-right: 20px; padding-bottom: 30px;"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/DPD_logo%28red%292015.png/1600px-DPD_logo%28red%292015.png" alt="DPD" style="width: 100px; height: 45px;" /> <a href="https://track.dpd.co.uk/" target="_blank" rel="noreferrer noopener">Track with DPD</a></div> <div class="carrier" style="padding-right: 20px; padding-bottom: 30px;"><img src="https://logodownload.org/wp-content/uploads/2015/12/dhl-logo-0-1.png" alt="DHL" style="width: 80px; height: 50px;" /> <a href="https://www.dhl.com/gb-en/home/tracking.html" target="_blank" rel="noreferrer noopener">Track with DHL</a></div> </div> Link: https://shoplex.co.uk/content/11-tracking Link to comment Share on other sites More sharing options...
NedraG Posted March 18, 2024 Share Posted March 18, 2024 Hello. It appears that the addition of a table displaying order numbers alongside tracking numbers, as well as another table indicating the prefixes of tracking numbers corresponding to carriers, requires specific development work. Given the complexity of this task and the need for precise implementation within your PrestaShop platform, I recommend seeking assistance from one of PrestaShop partners who specialize in custom development and integration solutions. You can find a list of PrestaShop partners via the following link: https://www.prestashop.com/en/experts. These partners are experienced professionals with in-depth knowledge of PrestaShop and can provide tailored solutions to meet your requirements effectively. By engaging with one of PrestaShop partners, you'll benefit from their expertise and ensure that the tracking page is developed to the highest standard, meeting both your functional and aesthetic preferences. Wishing you an excellent day. Link to comment Share on other sites More sharing options...
Andrei H Posted March 18, 2024 Share Posted March 18, 2024 Hello, How are the customers accessing this page? Do you have a tracking button for each order displayed in the customer's account and when they click that, they are redirected to this page? In order to display the order number alongside the tracking number, you will need to fetch this data from somewhere. Link to comment Share on other sites More sharing options...
LS136 Posted March 19, 2024 Author Share Posted March 19, 2024 On 3/18/2024 at 6:03 PM, Andrei H said: Hello, How are the customers accessing this page? Do you have a tracking button for each order displayed in the customer's account and when they click that, they are redirected to this page? In order to display the order number alongside the tracking number, you will need to fetch this data from somewhere. Expand Hi Andrei, I have just designed a basic tracking page where the carriers are listed and when you click them it will take you to their tracking page. Yes, I know I need to fetch the data but I am not sure how to do that. Link to comment Share on other sites More sharing options...
Andrei H Posted March 19, 2024 Share Posted March 19, 2024 Hello, The actual question is how are the customers arriving to this page? If they are directly accessing the link, it is pretty much impossible to fetch that data (one option would be to load their last order, but what if they have multiple orders they want to track?). One option would be to add a Tracking link in the Order History page, for each order (or/and display this this link in the order confirmation page as well). Each link will have the order id and the tracking number in the query parameters (eg. https://shoplex.co.uk/content/11-tracking?order_id=10&tracking_number=10). At this point, you could fetch the data from these query parameters and display it in that table. This does require some development work. Are you familiar with PrestaShop module development? Link to comment Share on other sites More sharing options...
ps8modules Posted March 20, 2024 Share Posted March 20, 2024 Hi. If I see correctly, you created a CMS page and inserted your code into the CMS page editor. You need to enter some information and these can only be displayed on your CMS page by using a hook in the module (which you don't have). Cannot be used by pasting in the page editor. Another option is a module that creates a new page for tracking the shipment that guests could use, not just logged-in customers. It won't work without coding. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now