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













2















I like to add tracking ID link for my shipping email template form.
Please advice me to do this process.










share|improve this question


























    2















    I like to add tracking ID link for my shipping email template form.
    Please advice me to do this process.










    share|improve this question
























      2












      2








      2








      I like to add tracking ID link for my shipping email template form.
      Please advice me to do this process.










      share|improve this question














      I like to add tracking ID link for my shipping email template form.
      Please advice me to do this process.







      magento2 shipment-tracking






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 20 at 7:39









      mohanamohana

      8210




      8210




















          1 Answer
          1






          active

          oldest

          votes


















          3














          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>





          share|improve this answer






















            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
            );



            );













            draft saved

            draft discarded


















            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









            3














            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>





            share|improve this answer



























              3














              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>





              share|improve this answer

























                3












                3








                3







                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>





                share|improve this answer













                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>






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 20 at 7:41









                Mohit chauhanMohit chauhan

                479111




                479111



























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Is there a general name for the setup in which payoffs are not known exactly but players try to influence each other's perception of the payoffs?Osborne, Nash equilibria and the correctness of beliefsIs there a name for this family of games (Binomial games?)?Perfect Bayesian EquilibriumCalculating mixed strategy equilibrium in battle of sexesPure Strategy SPNEIs there a commitment mechanism which allows players to achieve pareto optimal solutions?Extensive Form GamesAn $n$-player prisoner's dilemma where a coalition of 2 players is better off defectingTit-For-Stat Strategy Best RepliesPotential solutions of the $n$-player Prisoner's Dilemma

                    Is flight data recorder erased after every flight?When are black boxes used?What protects the location beacon (pinger) of a flight data recorder?Is there anywhere I can pick up raw flight data recorder information?Who legally owns the Flight Data Recorder?Constructing flight recorder dataWhy are FDRs and CVRs still two separate physical devices?What are the data elements shown on the GE235 flight data recorder (FDR) plot?Are CVR and FDR reset after every flight?What is the format of data stored by a Flight Data Recorder?How much data is stored in the flight data recorder per hour in a typical flight of an A380?Is a smart flight data recorder possible?

                    Rank groups within a grouped sequence of TRUE/FALSE and NAGrouping functions (tapply, by, aggregate) and the *apply familyCharacters counting and subletting specific patternsWhat is the purpose of setting a key in data.table?data.table vs dplyr: can one do something well the other can't or does poorly?how to make a bar plot for a list of dataframes?How to group by unique values in a list in RPandas - Alternative to rank() function that gives unique ordinal ranks for a columnRank within group in for loop in RData transformation: from dyadic to observational data in RGetting map from purrr to work with paste0