How to add tracking number link to shipping email

  • Posts: 130
  • Thank you received: 6
  • Hikashop Business
2 years 3 weeks ago #346187

-- HikaShop version -- : 4.5.0
-- Joomla version -- : 3.10.8
-- PHP version -- : 7.4.28
-- Browser(s) name and version -- : Chrome

Hello,
Is there anyway possible to include Tracking number on shipped status emails. Currently when the status has changed to shipped a email goes out to the user but doesn't contain a specific link to the order tracking. I have manually added the tracking/link and sent emails but it would really help me if this part was automated if possible? Thanks so much n advance

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 3 weeks ago #346192

Hi,

You could create a custom field of the table "order" via the menu Display>Custom fields (Business edition) in order to be able to add the tracking URL to the order. Then, thanks to the display settings of the custom field, you can have it appear on the order details page on the frontend, and in the different emails sent to the customer.
Just make sure you don't activate the display of the custom field in the cart/checkout since you don't want the customer to be able to provide it during his checkout.

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 6
  • Hikashop Business
2 years 1 week ago #346521

Thanks so much Nicolas. I've created the backed link/url field but how do I make sure it's automated and pulls in the usps tracking url on each order? Would I have to manually have to copy/paste usps tracking link on each order? Thanks again for your help

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 1 week ago #346525

Hi,

Yes, you would have to put the whole URL each time.
Now, you could have it with only the tracking number. But in that case, you need to edit each view where custom field value is displayed to add the URL around it.

But that's making me think of something we could add as an extra option to the custom fields to make it easy to do that. I'll look into adding this for the next version of HikaShop.

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 6
  • Hikashop Business
2 years 1 week ago #346529

Okay thanks Nicolas!

The following user(s) said Thank You: Philip

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 6
  • Hikashop Business
1 year 9 months ago #349142

Hey Nicolas!

First thanks so much for adding the tracking feature to the latest version. Would you be able to help me or provide me a document that walks me thru configuring the tracking number field to be a link that allows customers to simply click it when they get the shipping notification email. This will be a big game changer with my shipping automation emails. I've been manually adding usps tracking url's for past several years :) Thanks again

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 9 months ago #349146

Hi,

It's actually quite simple. Just create a custom field of the table "order" and of the type "text" via the menu Display>Custom fields.
And in the "format" setting of the custom field, instead of {value}, you can enter:

<a href="https://tools.usps.com/go/TrackConfirmAction_input?strOrigTrackNum={value}">{value}</a>
That way, if you activate the display of the custom field in the emails, you'll get a clickable tracking number displayed and it will link to the USPS tracking system.

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 6
  • Hikashop Business
1 year 9 months ago #349175

Thanks a bunch Nicolas! I"ve created the field and made sure the value is equal to what you listed and clicked yes for display: mail order status notification but not sure I'm missing something else. Would I need to manually add this new field to email template on backend somewhere? Just not understanding how the tracking number will get sent over to this custom field from shipstation

Thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
1 year 9 months ago #349179

Hello,

Can you provide your order statuses listing (from System dropdown => Order Statuses) AND try to replace in your Format option (in your custom field Extra attributes part) the date format for {value}.

Awaiting your returns to progress on your subject.
Regards

Last edit: 1 year 9 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 6
  • Hikashop Business
1 year 9 months ago #349188

Hey Philip,

Attached is screenshot of order statuses

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 9 months ago #349189

Hi,

Wait. The solution I provided was for you to be able to enter the tracking number manually in the order additional information so that it displays as a tracking URL link in the email.
You didn't mention you were using ShipStation.
If you want the data of the orders in HikaShop to go to ShipStation, and then the tracking URL to go from ShipStation to your website, it's possible with this plugin:
www.hikashop.com/marketplace/product/160...station-updated.html
I checked your orders on our website but I couldn't find a purchase of that plugin. But it seems that it's what you want, based on what you wrote. Are you somehow using that plugin ? How did you configure it ?

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 6
  • Hikashop Business
1 year 9 months ago #349201

Hey Nicolas,

Totally apologize for not including ShipStation. For past several years my HikaShop site was always integrated with ShipStation. So after a order is placed and I ship the order from ShipStation, they send the shipped status back to my HikaShop site/order and automatically update status to shipped and then send email to customer but there is never anything within that status update email with tracking number or link to click to see tracking. Looks like maybe I've been using a older version of the ShipStation plugin and never knew there was a update. Will this update now include the tracking number into the shipped email message now? Thnx

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 9 months ago #349202

Hi,

Indeed, that's one of the features we've added to the ShipStation plugin over the years.

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 6
  • Hikashop Business
1 year 9 months ago #349345

I was able to test with a new order and it looks like the new updated plugin now includes shipping service name and tracking number once status is changed to shipped! This will be a great game changer for my shipped automation emails. Is it possible in anyway to make the actual tracking number a link so that they can easily click and go right to their details instead of having to copy/paste? Thanks again!!!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
1 year 9 months ago #349372

Hello,

On Shipstation side, unless we are mistaken, we did not find any documentation to dynamically build a url link for the client.
Now, for specific case, meaning you have precise Delivery Service, and you know the Url link structure, example :
www.usps.com/trackingnumber=upsnumber012345
Then you can directly edit your shipstation file to create your own Url link see my screenshot as an example :
- Open your Shipstation plugin folder : YourWebsite\plugins\system\shipstation
-edit your shipstation.php, around line 1090, see my screenshot (click to enlarge) :



Note the check in order to create an url link in emails ONLY FOR required delivery service.
if ($val['carrier'] == 'usps') {
	$shipstation_str .= ''.
	'<a href="https://www.usps.com/trackingnumber=upsnumber'.$val['track_number'].'" class="hika_cpanel_order_shipstation" '.
	 'style="margin: 0px;">'.
		'<span>'.$val['track_number'].'</span>'.
	'</a>';
}
// End the Html & close div tag :
$shipstation_str .='</div>';
Hope this will fits your needs

Regards

Last edit: 1 year 9 months ago by Philip.

Please Log in or Create an account to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum