Feature request: Option for shipment tracking and tracking URL

Posted: October 08, 2016 at 4:54 PM Quote #176750
If the courier/shipping company have a tracking URL, it would be great to have that selected with a token for tracking number.

For example, when you set the shipping information like tracking, also provide a drop-down to select shipping company.

This would allow to have a URL+tracking number which will create a full link for customers to click and find/track their shipments.

Showing just tracking number is not very good experience.

http://shipping-company-tracking-url.com?id={0}
where {0} is the tracking number we add.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: October 09, 2016 at 12:53 AM Quote #176760
What shipping provide are you using?

I'm asking because it's already supported for some of them. For example, each shipping provider (IShippingRateComputationMethod) has "ShipmentTracker" property. It has "GetUrl" method which is used to generate tracking URL.

P.S. Although it's not just a text input
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Interested in the dedicated Premium support services provided by core developers? Please visit http://www.nopcommerce.com/supportservices.aspx

Regards,
Andrei Mazulnitsyn
Posted: October 09, 2016 at 3:19 AM Quote #176762
I am using manually since shipping is a bit complicated and not everyone has API interface for integration.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: October 09, 2016 at 4:22 AM Quote #176763
What do you mean by "manual"? "Shipping by weight" or "Fixed Rate Shipping"?

1. In this case you can open an appropriate provide class FixedRateShippingComputationMethod.cs or ByWeightShippingComputationMethod.cs
2. Find its "ShipmentTracker" property
3. Uncomment the following line of code:
return new GeneralShipmentTracker(EngineContext.Current.Resolve<ITypeFinder>());
4. Open \Nop.Services\Shipping\Tracking\GeneralShipmentTracker.cs file and return your shipping company URL in the "GetUrl" method
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Interested in the dedicated Premium support services provided by core developers? Please visit http://www.nopcommerce.com/supportservices.aspx

Regards,
Andrei Mazulnitsyn
Posted: October 09, 2016 at 5:17 AM Quote #176764
All products have free shipping so we don't need to use specific criteria so I am using fixed rate option (future we will have these)

I will check the code portion to see what can be done.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: October 09, 2016 at 1:48 PM Quote #176770
a.m. wrote:
What do you mean by "manual"? "Shipping by weight" or "Fixed Rate Shipping"?

1. In this case you can open an appropriate provide class FixedRateShippingComputationMethod.cs or ByWeightShippingComputationMethod.cs
2. Find its "ShipmentTracker" property
3. Uncomment the following line of code:
return new GeneralShipmentTracker(EngineContext.Current.Resolve<ITypeFinder>());
4. Open \Nop.Services\Shipping\Tracking\GeneralShipmentTracker.cs file and return your shipping company URL in the "GetUrl" method


I am thinking more like the following implementation
(if I decide to start writing code, I am ok with writing a new plugin too)

In shipment details page...
Select Courier => New drop-downlist option [according to selection, only for tracking URL]
Set Tracking Number => Existing option [This combined with above URL will form the full tracking URL]

Can you suggest what is the best way to go about with this?
I might have 2 or 3 shipping companies, depending on location, item etc... manually selected while shipping.

Should I make a new Plugin for each of these shipping companies? since only change would be the URL?
But if this is the correct route to take, I am fine with it.

What should be the starting point?
FixedRateShipping Plugin?

If tracking number text field supported HTML, I would have gone the easy route to just write a anchor tag without getting my hands dirty with writing code :)

(I am trying to be a business guy and stay away from writing code unless required) :)

Thank you so much for your help.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: February 12, 2018 at 11:28 PM Quote #200535
a.m. wrote:
What do you mean by "manual"? "Shipping by weight" or "Fixed Rate Shipping"?

1. In this case you can open an appropriate provide class FixedRateShippingComputationMethod.cs or ByWeightShippingComputationMethod.cs
2. Find its "ShipmentTracker" property
3. Uncomment the following line of code:
return new GeneralShipmentTracker(EngineContext.Current.Resolve<ITypeFinder>());
4. Open \Nop.Services\Shipping\Tracking\GeneralShipmentTracker.cs file and return your shipping company URL in the "GetUrl" method


Thanks for this suggestion! I did the above and it works for shipment details. I am running 3.90 and I can get a good tracking URL in the shipment details "orderdetails/shipment/" url. However, in the previous "main" order details screen "orderdetails/" url, all the listed tracking numbers are not links. Did I miss something?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.