Jump to content

How to handle shipment tracking logs


cryostar
 Share

Recommended Posts

Hello everyone,


You know those enumerated list when checking your stuff?

1/21 10:45, parcel at sorting hub

1/22 07:50, parcel is out for delivery

What would be a good approach for this use case? I was thinking of adding children pages of shipping history under an order page but I’m not sure if that’s the way to go.

Link to comment
Share on other sites

1 hour ago, cryostar said:

The answer is to use repeater fields instead, right?

In my opinion the best solution would be to use a ProFields Table field because it has less overhead than pages and everything is viewable inside a single compact inputfield.

But if you go with a page-based approach (which will be just fine if not 100% optimal) then your options are:

  • Repeater
  • PageTable
  • Child pages

Another opinion: purchasing the ProFields bundle should be a no-brainer for any regular PW user. Any one of the Table, Repeater Matrix and Combo fieldtypes alone is worth the purchase price, but you get all of them, plus several more goodies which are just cherries on the top.

And as Ryan explained in the most recent blog post, the purchase of Pro modules is an important part of what keeps the ongoing development of PW viable. So it's a nice way to play a part in that. ?

  • Like 5
Link to comment
Share on other sites

I implemented that previously. In my experience, if you create a page for each event (using child pages or repeater) you will end up with hundreds of thousands of pages quickly, and in each one you will recorded only a minimum data. I think that is very inefficient. Maybe using ProTable is a better solution. I finally ended up using a textarea and saved one event in each line, when I was going to show the timeline I parsed it with regex, as well to update the tracking info this is very easy. Maybe if I do that again, I would avoid parsing every request for the tracking info by saving/reading/updating the events in JSON format.

  • Like 2
Link to comment
Share on other sites

On 6/14/2021 at 2:26 PM, Robin S said:

Another opinion: purchasing the ProFields bundle should be a no-brainer for any regular PW user.

I’ve taken your word for it and purchased ProFields for this project. To also show my support for the future of ProcessWire. ?

  • Like 3
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...