cancel
Showing results for 
Search instead for 
Did you mean: 

E-mail Tracking Links Do Not Work

E-mail Tracking Links Do Not Work

Hi Community!

 

We are on Magento 2.2.6 and use the Ship Station API. The shipping confirmation emails are triggered by Ship Station but are sent from Magento, not Ship Station. When the email is sent the tracking link is there but nothing happens when you click on it. Its a dead link. If i go into the Magento admin > Sales > Shipments > Select the order > View > Send Tracking Information, the email has a link that does work and redirects to the couriers site for tracking so the email template in Magento is working, from Magento.

 

I have verified with Ship Station support that the email template in Ship Station is not being used/sent but the tracking information through the API is.

 

Any direction or insight on how we can get this working would be very appreciated! Thank you!

1 REPLY 1

Re: E-mail Tracking Links Do Not Work

Hello @Brenda Rivera 

 

vendor\magento\module-sales\view\frontend\templates\email\shipment\track.phtml

 

as i it is adding only getTitle and number 

 

and on admin or frontend side

 

vendor\magento\module-shipping\view\frontend\templates\tracking\details.phtml
<?php elseif ($track->getUrl()): ?>
<tr>
<th class="col label" scope="row"><?= $block->escapeHtml(__('Track:')) ?></th>
<td class="col value">
<a href="<?= $block->escapeUrl($track->getUrl()) ?>" target="_blank">
<?= $block->escapeUrl($track->getUrl()) ?>
</a>
</td>
</tr>


can you try to add into
vendor\magento\module-sales\view\frontend\templates\email\shipment\track.phtml

<a href="<?= $block->escapeUrl($track->getUrl()) ?>" target="_blank">
<?= $block->escapeUrl($track->getUrl()) ?>
</a>

hope it will work for you.

 

if works then mark solution.

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer