Wouldn't It Be Nice To See The Current Shipment Details From Admin Area?

target="_blank"

This should do the trick. Just clear the cache

You can use the standard info. Insert these lines:

                        {assign var="shipments" value=['order_id' => $order_info.order_id, 'advanced_info' => true]|fn_get_shipments_info}
                        {if $shipments}
                        {assign var="shipments" value=$shipments|reset}
                        
{foreach from=$shipments item="shipment"} {include file="common/carriers.tpl" capture=true carrier=$shipment.carrier}

{__("shipment")} #{$shipment.shipment_id} {__("on")} {$shipment.shipment_timestamp|date_format:"`$settings.Appearance.date_format`"}
{__("by")} {$shipment.shipping}
{if $shipment.tracking_number} ({$shipment.tracking_number}){/if}{if $shipment.carrier} ({$smarty.capture.carrier_name|trim nofilter}){/if}

{/foreach}
{/if}

inside the {foreach from=$order_info.shipping item="shipping" key="shipping_id" name="f_shipp"}, before closing {/foreach} in the design/backend/templates/orders/views/details.tpl file

Or to any place in this file

I am a little confused, I tried to place the above lines in the proper file without success.Can you show me what this will look like after the lines are inserted? I do not know exactly where the new lines belong.

Thank you.

I am a little confused, I tried to place the above lines in the proper file without success.Can you show me what this will look like after the lines are inserted? I do not know exactly where the new lines belong.

Thank you.

Looks best inserted in line 358.. Let me know if you need to see the whole file...

Insert between the {/if} and {/foreach}

                       {/if}
                        {assign var="shipments" value=['order_id' => $order_info.order_id, 'advanced_info' => true]|fn_get_shipments_info}
                        {if $shipments}
                        {assign var="shipments" value=$shipments|reset}
                        
{foreach from=$shipments item="shipment"} {include file="common/carriers.tpl" capture=true carrier=$shipment.carrier}

{__("shipment")} #{$shipment.shipment_id} {__("on")} {$shipment.shipment_timestamp|date_format:"`$settings.Appearance.date_format`"}

{if $shipment.tracking_number}
{if $shipment.carrier == “usps”}
{$url = “https://tools.usps.com/go/TrackConfirmAction_input?strOrigTrackNum=`$shipment.tracking_number`”}
{elseif $shipment.carrier == “ups”}
{$url = “Tracking | UPS - United States”}
{elseif $shipment.carrier == “fedex”}
{$url = “FedEx | System Down”}
{elseif $shipment.carrier == “aup”}
{$url = “Track your items - Australia Post”}
{elseif $shipment.carrier == “can”}
{$url = “http://www.canadapost.com/cpotools/apps/track/personal/findByTrackNumber?trackingNumber=`$shipment.tracking_number`”}
{elseif $shipment.carrier == “dhl” || $shipping.carrier == “ARB”}
{$url = “http://www.dhl-usa.com/en/express/tracking.shtml?ShipmentNumber=`$shipment.tracking_number`”}
{elseif $shipment.carrier == “swisspost”}
{$url = “http://www.post.ch/swisspost-tracking?formattedParcelCodes=`$shipment.tracking_number`”}
{elseif $shipment.carrier == “temando”}
{$url = “https://temando.com/education-centre/support/track-your-item?token=`$shipment.tracking_number`”}
{else}
{$url = “”}
{/if}
{/if}
{__(“by”)} {$shipment.shipping}
{if $shipment.tracking_number} ({if $url}{/if}{$shipment.tracking_number}{if $url}{/if}){/if}{if $shipment.carrier} ({$smarty.capture.carrier_name|trim nofilter}){/if}

                {/foreach}
target="_blank"

This should do the trick. Just clear the cache

Doesn't work.. If you add the target="_blank" you get a blank white page when you open the orders detail page.

Looks best inserted in line 358.. Let me know if you need to see the whole file...

Insert between the {/if} and {/foreach}

                       {/if}
                        {assign var="shipments" value=['order_id' => $order_info.order_id, 'advanced_info' => true]|fn_get_shipments_info}
                        {if $shipments}
                        {assign var="shipments" value=$shipments|reset}
                        
{foreach from=$shipments item="shipment"} {include file="common/carriers.tpl" capture=true carrier=$shipment.carrier}

{__("shipment")} #{$shipment.shipment_id} {__("on")} {$shipment.shipment_timestamp|date_format:"`$settings.Appearance.date_format`"}

{if $shipment.tracking_number}
{if $shipment.carrier == “usps”}
{$url = “https://tools.usps.com/go/TrackConfirmAction_input?strOrigTrackNum=`$shipment.tracking_number`”}
{elseif $shipment.carrier == “ups”}
{$url = “Tracking | UPS - United States”}
{elseif $shipment.carrier == “fedex”}
{$url = “FedEx | System Down”}
{elseif $shipment.carrier == “aup”}
{$url = “Track your items - Australia Post”}
{elseif $shipment.carrier == “can”}
{$url = “http://www.canadapost.com/cpotools/apps/track/personal/findByTrackNumber?trackingNumber=`$shipment.tracking_number`”}
{elseif $shipment.carrier == “dhl” || $shipping.carrier == “ARB”}
{$url = “http://www.dhl-usa.com/en/express/tracking.shtml?ShipmentNumber=`$shipment.tracking_number`”}
{elseif $shipment.carrier == “swisspost”}
{$url = “http://www.post.ch/swisspost-tracking?formattedParcelCodes=`$shipment.tracking_number`”}
{elseif $shipment.carrier == “temando”}
{$url = “https://temando.com/education-centre/support/track-your-item?token=`$shipment.tracking_number`”}
{else}
{$url = “”}
{/if}
{/if}
{__(“by”)} {$shipment.shipping}
{if $shipment.tracking_number} ({if $url}{/if}{$shipment.tracking_number}{if $url}{/if}){/if}{if $shipment.carrier} ({$smarty.capture.carrier_name|trim nofilter}){/if}

                {/foreach}

Yes could you show me the file?

I am just not getting it.

What version are you running? I am 4.3.4

Thanks.

Doesn't work.. If you add the target="_blank" you get a blank white page when you open the orders detail page.

The line with the link should be:

{__("by")} {$shipment.shipping} 
{if $shipment.tracking_number} ({if $url}{/if}{$shipment.tracking_number}{if $url}{/if}){/if}{if $shipment.carrier} ({$smarty.capture.carrier_name|trim nofilter}){/if}

Here is the file in its entirety.. We are still running ver 4.3.3 should not matter..

File Attached

details.tpl

The line with the link should be:

{__("by")} {$shipment.shipping} 
{if $shipment.tracking_number} ({if $url}{/if}{$shipment.tracking_number}{if $url}{/if}){/if}{if $shipment.carrier} ({$smarty.capture.carrier_name|trim nofilter}){/if}

That worked... I was putting it in the wrong location... Thank You..

Here is the file in its entirety.. We are still running ver 4.3.3 should not matter..

File Attached

Thanks, that helped a lot.

I copied & pasted the entire file and it works almost perfectly.

When I click the link, I go to FEDEX website and I am able to then enter a tracking number, but it does not automatically track it for me.

Thanks, that helped a lot.

I copied & pasted the entire file and it works almost perfectly.

When I click the link, I go to FEDEX website and I am able to then enter a tracking number, but it does not automatically track it for me.

Look at the url when you track a number on the Fedex site.. Then just verify the URL structure is correct.. We don't use Fedex at the moment so no way to test it..

 {$url = "http://fedex.com/Tracking?action=track&tracknumbers=`$shipment.tracking_number`"}

Look at the url when you track a number on the Fedex site.. Then just verify the URL structure is correct.. We don't use Fedex at the moment so no way to test it..

 {$url = "http://fedex.com/Tracking?action=track&tracknumbers=`$shipment.tracking_number`"}

That did it!

Thanks so much for all the help. I'm really surprised this is not included with standard cscart.

This will save me so much time.

That did it!

Thanks so much for all the help. I'm really surprised this is not included with standard cscart.

This will save me so much time.

Can we get your fix for the Fedex.? Planning on using Fedex here shortly be nice to have it working..

Can we get your fix for the Fedex.? Planning on using Fedex here shortly be nice to have it working..

{$url = "http://fedex.com/apps/fedextrack/?action=track&action=track&tracknumbers=`$shipment.tracking_number`"}
Thanks again.

Figured it out... For everyone else change your FedEx line to the following..

{$url = "https://www.fedex.com/apps/fedextrack/index.html?tracknumbers=`$shipment.tracking_number`"}

Thank you for bringing up this topic.

Right now tacking number is displayed on the order page only if "Allow multiple shipments for a single order" is not checked.

We will add displaying of tracking numbers for all cases in next minor release. Of course they will be displayed as a link to a carrier site.

Thank you for implementing this small improvement. Please consider to show the actual shipment status for the most common carriers.(UPS, FedEx, UPSP, DHL, TNT) We would like to see the shipment status within CS-Cart, just like most of the popular websites do. (amazon, bol.com etc)

Customers need to be kept up to date about when their order is expected to arrive and where it is.

Thank you for bringing up this topic.

Right now tacking number is displayed on the order page only if "Allow multiple shipments for a single order" is not checked.

We will add displaying of tracking numbers for all cases in next minor release. Of course they will be displayed as a link to a carrier site.

Hi Imac,

Thank you for taking action on this, if you do make it, please do it where the shipments tracking numbers are showing on the order detail page instead of the shipment page, just like it is discussed here in this thread, also please make it possible to edit the shipment tracking number if we need to edit a typo mistake instead of deleting and creating a new shipment.

Thank you

Joe

Thank you for implementing this small improvement. Please consider to show the actual shipment status for the most common carriers.(UPS, FedEx, UPSP, DHL, TNT) We would like to see the shipment status within CS-Cart, just like most of the popular websites do. (amazon, bol.com etc)

Customers need to be kept up to date about when their order is expected to arrive and where it is.

Sorry, P-Pharma we won't add this.

Tony explained the reason: http://forum.cs-cart.com/topic/42572-wouldnt-it-be-nice-to-see-the-current-shipment-details-from-admin-area/?view=findpost&p=234821

Hi Imac,

Thank you for taking action on this, if you do make it, please do it where the shipments tracking numbers are showing on the order detail page instead of the shipment page, just like it is discussed here in this thread, also please make it possible to edit the shipment tracking number if we need to edit a typo mistake instead of deleting and creating a new shipment.

Thank you

Joe

Yes, the links will be on the order detailed page.

As for the changing a tracking number, we will take this into account. Thank you.

I was looking into this and found this add-on that seems to take care of the problem very nicely: https://www.hungryweb.net/cs-cart-addons/custom-shipment-carriers-and-tracking-number-process.html

Anyone using it?