How to add tracking ID link in shipping email?How to add DHL shipping tracking for customers?Add tracking link to mailvariable for shipping tracking no in emailHow to modify tracking link targetAdd tracking link to shipment email doesn't workMagento 2: Send different email templates for Ship, based on Shipping Method chosenMagento2: How to add tracking url in shipment email for customer in magento 2How to add and remove Shipping and Tracking Information Carrier?Populate tracking link with tracking numberSend Tracking information email to customer when tracking number saved to Magento
You're three for three
When is separating the total wavefunction into a space part and a spin part possible?
Death of a family member
Can a Gentile theist be saved?
My boss asked me to take a one-day class, then signs it up as a day off
What if somebody invests in my application?
What should I use for Mishna study?
A car is moving at 40 km/h. A fly at 100 km/h, starts from wall towards the car(20 km away)flies to car and back. How many trips can it make?
Indicating multiple different modes of speech (fantasy language or telepathy)
Simulating a probability of 1 of 2^N with less than N random bits
Getting the lowest value with key in array
What is the smallest body in which a sling shot maneuver can be performed?
How to prevent YouTube from showing already watched videos?
Identify a stage play about a VR experience in which participants are encouraged to simulate performing horrific activities
Why is .bash_history periodically wiped?
In Star Trek IV, why did the Bounty go back to a time when whales were already rare?
How to open new tab in existing terminal instead of new terminal instance?
How will losing mobility of one hand affect my career as a programmer?
Do these cracks on my tires look bad?
Left multiplication is homeomorphism of topological groups
Java - What do constructor type arguments mean when placed *before* the type?
Generators of the mapping class group for surfaces with punctures and boundaries
How do I extrude a face to a single vertex
A social experiment. What is the worst that can happen?
How to add tracking ID link in shipping email?
How to add DHL shipping tracking for customers?Add tracking link to mailvariable for shipping tracking no in emailHow to modify tracking link targetAdd tracking link to shipment email doesn't workMagento 2: Send different email templates for Ship, based on Shipping Method chosenMagento2: How to add tracking url in shipment email for customer in magento 2How to add and remove Shipping and Tracking Information Carrier?Populate tracking link with tracking numberSend Tracking information email to customer when tracking number saved to Magento
I like to add tracking ID link for my shipping email template form.
Please advice me to do this process.
magento2 shipment-tracking
add a comment |
I like to add tracking ID link for my shipping email template form.
Please advice me to do this process.
magento2 shipment-tracking
add a comment |
I like to add tracking ID link for my shipping email template form.
Please advice me to do this process.
magento2 shipment-tracking
I like to add tracking ID link for my shipping email template form.
Please advice me to do this process.
magento2 shipment-tracking
magento2 shipment-tracking
asked Mar 20 at 7:39
mohanamohana
8210
8210
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Please override this file:
vendor/magento/module-sales/view/frontend/templates/email/shipment/track.phtml
by creating this path:
/app/design/frontend/Custom/theme/Magento_Sales/templates/email/shipment/track.phtml
Please add below code in foreach loop
<?php
$trackurl = '';
if($_item->getCarrierCode() === 'fedex')
$trackurl = 'https://www.fedex.com/apps/fedextrack/?action=track&trackingnumber='.$_item->getNumber();
elseif ($_item->getCarrierCode() === 'usps')
$trackurl = 'https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1='.$_item->getNumber();
elseif ($_item->getCarrierCode() === 'ups')
$trackurl = 'https://wwwapps.ups.com/WebTracking/returnToDetails?tracknum='.$_item->getNumber();
?>
<tr>
<td><?= $block->escapeHtml($_item->getCarrierCode()) ?>:</td>
<td style="padding:3px 9px"><a href="<?php echo $trackurl ?>"><?php echo $this->escapeHtml($_item->getNumber()) ?></a></td>
</tr>
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266620%2fhow-to-add-tracking-id-link-in-shipping-email%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Please override this file:
vendor/magento/module-sales/view/frontend/templates/email/shipment/track.phtml
by creating this path:
/app/design/frontend/Custom/theme/Magento_Sales/templates/email/shipment/track.phtml
Please add below code in foreach loop
<?php
$trackurl = '';
if($_item->getCarrierCode() === 'fedex')
$trackurl = 'https://www.fedex.com/apps/fedextrack/?action=track&trackingnumber='.$_item->getNumber();
elseif ($_item->getCarrierCode() === 'usps')
$trackurl = 'https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1='.$_item->getNumber();
elseif ($_item->getCarrierCode() === 'ups')
$trackurl = 'https://wwwapps.ups.com/WebTracking/returnToDetails?tracknum='.$_item->getNumber();
?>
<tr>
<td><?= $block->escapeHtml($_item->getCarrierCode()) ?>:</td>
<td style="padding:3px 9px"><a href="<?php echo $trackurl ?>"><?php echo $this->escapeHtml($_item->getNumber()) ?></a></td>
</tr>
add a comment |
Please override this file:
vendor/magento/module-sales/view/frontend/templates/email/shipment/track.phtml
by creating this path:
/app/design/frontend/Custom/theme/Magento_Sales/templates/email/shipment/track.phtml
Please add below code in foreach loop
<?php
$trackurl = '';
if($_item->getCarrierCode() === 'fedex')
$trackurl = 'https://www.fedex.com/apps/fedextrack/?action=track&trackingnumber='.$_item->getNumber();
elseif ($_item->getCarrierCode() === 'usps')
$trackurl = 'https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1='.$_item->getNumber();
elseif ($_item->getCarrierCode() === 'ups')
$trackurl = 'https://wwwapps.ups.com/WebTracking/returnToDetails?tracknum='.$_item->getNumber();
?>
<tr>
<td><?= $block->escapeHtml($_item->getCarrierCode()) ?>:</td>
<td style="padding:3px 9px"><a href="<?php echo $trackurl ?>"><?php echo $this->escapeHtml($_item->getNumber()) ?></a></td>
</tr>
add a comment |
Please override this file:
vendor/magento/module-sales/view/frontend/templates/email/shipment/track.phtml
by creating this path:
/app/design/frontend/Custom/theme/Magento_Sales/templates/email/shipment/track.phtml
Please add below code in foreach loop
<?php
$trackurl = '';
if($_item->getCarrierCode() === 'fedex')
$trackurl = 'https://www.fedex.com/apps/fedextrack/?action=track&trackingnumber='.$_item->getNumber();
elseif ($_item->getCarrierCode() === 'usps')
$trackurl = 'https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1='.$_item->getNumber();
elseif ($_item->getCarrierCode() === 'ups')
$trackurl = 'https://wwwapps.ups.com/WebTracking/returnToDetails?tracknum='.$_item->getNumber();
?>
<tr>
<td><?= $block->escapeHtml($_item->getCarrierCode()) ?>:</td>
<td style="padding:3px 9px"><a href="<?php echo $trackurl ?>"><?php echo $this->escapeHtml($_item->getNumber()) ?></a></td>
</tr>
Please override this file:
vendor/magento/module-sales/view/frontend/templates/email/shipment/track.phtml
by creating this path:
/app/design/frontend/Custom/theme/Magento_Sales/templates/email/shipment/track.phtml
Please add below code in foreach loop
<?php
$trackurl = '';
if($_item->getCarrierCode() === 'fedex')
$trackurl = 'https://www.fedex.com/apps/fedextrack/?action=track&trackingnumber='.$_item->getNumber();
elseif ($_item->getCarrierCode() === 'usps')
$trackurl = 'https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1='.$_item->getNumber();
elseif ($_item->getCarrierCode() === 'ups')
$trackurl = 'https://wwwapps.ups.com/WebTracking/returnToDetails?tracknum='.$_item->getNumber();
?>
<tr>
<td><?= $block->escapeHtml($_item->getCarrierCode()) ?>:</td>
<td style="padding:3px 9px"><a href="<?php echo $trackurl ?>"><?php echo $this->escapeHtml($_item->getNumber()) ?></a></td>
</tr>
answered Mar 20 at 7:41
Mohit chauhanMohit chauhan
479111
479111
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266620%2fhow-to-add-tracking-id-link-in-shipping-email%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown