{"id":26607,"date":"2023-06-30T06:38:36","date_gmt":"2023-06-30T10:38:36","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=26607"},"modified":"2023-07-03T09:28:02","modified_gmt":"2023-07-03T13:28:02","slug":"how-to-add-track-my-order-footer-link-in-hyva","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva","title":{"rendered":"How to Display &#8220;Track My Order&#8221; Links in Hyv\u00e4"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this guide, you can learn how to add the &#8220;Track My Order&#8221; links to the footer and header in Hyv\u00e4 theme for the <a href=\"\/magento-order-status-shipping-tracking\">Magento 2 Order Status &amp; Shipping Tracking Pro Extension<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-1-add-track-my-order-link-to-the-header\">Step 1. Add &#8220;Track My Order&#8221; Link to the Header<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, check if your theme includes a <kbd>Magento_Theme::html\/header.phtml<\/kbd> file.  If the file is missing, please copy the following file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><kbd>vendor\/hyva-themes\/magento2-default-theme\/Magento_Theme\/templates\/html\/header.phtml<\/kbd> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">to the theme with the following path: <kbd>app\/design\/frontend\/&lt;theme_vendor&gt;\/&lt;theme_name&gt;\/Magento_Theme\/templates\/html\/footer\/links.phtml<\/kbd><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, in order to display the &#8220;Track My Order&#8221; link in the header, add the code below to the <kbd>Magento_Theme::html\/header.phtml<\/kbd> file.<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\" data-line=\"\">&lt;!--Track My Order Icon--&gt;\n&lt;?php\n\/** @var \\Hyva\\PlumrocketShippingTrackingPro\\ViewModel\\TrackMyOrder $prOrderStatus *\/\n$prOrderStatus = $viewModels-&gt;require(\\Hyva\\PlumrocketShippingTrackingPro\\ViewModel\\TrackMyOrder::class);\n?&gt;\n&lt;?php if ($prOrderStatus-&gt;canShowInHeader()): ?&gt;\n    &lt;a id=&quot;pr-header-tracking-link&quot;\n       class=&quot;inline-block ml-1 no-underline sm:ml-3 hover:text-black&quot;\n       href=&quot;&lt;?= $escaper-&gt;escapeUrl($prOrderStatus-&gt;getTrackLink()) ?&gt;&quot;&gt;\n        &lt;span class=&quot;sr-only label&quot;&gt;\n            &lt;?= $escaper-&gt;escapeHtml(__($prOrderStatus-&gt;getHeaderTrackLinkLabel())) ?&gt;\n        &lt;\/span&gt;\n        &lt;?= $heroicons-&gt;locationMarkerHtml(&quot;w-8 h-8 md:h-6 md:w-6 hover:text-black&quot;, 25, 25) ?&gt;\n    &lt;\/a&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-2-add-track-my-order-link-to-the-footer\">Step 2. Add &#8220;Track My Order&#8221; Link to the Footer<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, check if your theme includes a <kbd>Magento_Theme::html\/footer\/links.phtml<\/kbd> file. If the file is missing, please copy the following file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><kbd>vendor\/hyva-themes\/magento2-default-theme\/Magento_Theme\/templates\/html\/footer\/links.phtml<\/kbd><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">to the theme with the following path:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><kbd>app\/design\/frontend\/&lt;theme_vendor&gt;\/&lt;theme_name&gt;\/Magento_Theme\/templates\/html\/footer\/links.phtml<\/kbd><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, in order to add the &#8220;Track My Order&#8221; link in the footer, add the code below to the <kbd>Magento_Theme::html\/footer\/links.phtml<\/kbd> file.<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\" data-line=\"\">&lt;?php\n\/** @var \\Hyva\\PlumrocketShippingTrackingPro\\ViewModel\\TrackMyOrder $prOrderStatus *\/\n$prOrderStatus = $viewModels-&gt;require(\\Hyva\\PlumrocketShippingTrackingPro\\ViewModel\\TrackMyOrder::class);\n?&gt;\n&lt;?php if ($prOrderStatus-&gt;canShowInFooter()): ?&gt;\n    &lt;li class=&quot;mt-4&quot;&gt;\n        &lt;a href=&quot;&lt;?= $escaper-&gt;escapeUrl($prOrderStatus-&gt;getTrackLink()) ?&gt;&quot;\n           class=&quot;text-base leading-6&quot;&gt;\n            &lt;?= $escaper-&gt;escapeHtml($prOrderStatus-&gt;getFooterTrackLinkLabel()) ?&gt;\n        &lt;\/a&gt;\n    &lt;\/li&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-3-apply-changes\">Step 3. Apply Changes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This step is necessary only when the FPC cache is enabled or when using Magento in production mode.&nbsp;If either of these conditions applies to you, please run the following commands to apply the changes:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">php bin\/magento setup:static-content:deploy\nphp bin\/magento cache:flush<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, you can learn how to add the &#8220;Track My Order&#8221; links to the footer and header in Hyv\u00e4 theme for the Magento 2 Order Status &amp; Shipping Tracking Pro Extension. Step 1. Add &#8220;Track My Order&#8221; Link to the Header First, check if your theme includes a Magento_Theme::html\/header.phtml file. If the file &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Display &#8220;Track My Order&#8221; Links in Hyv\u00e4&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[377],"tags":[],"class_list":["post-26607","post","type-post","status-publish","format-standard","hentry","category-magento-order-status-shipping-tracking-v1-devguide","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v28.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Display &quot;Track My Order&quot; Links in Hyv\u00e4 - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"In this guide, you can learn how to add the &quot;Track My Order&quot; links to the footer and header in Hyv\u00e4 theme for the Magento 2 Order Status &amp; Shipping\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Display &quot;Track My Order&quot; Links in Hyv\u00e4\" \/>\n<meta property=\"og:description\" content=\"In this guide, you can learn how to add the &quot;Track My Order&quot; links to the footer and header in Hyv\u00e4 theme for the Magento 2 Order Status &amp; Shipping\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-30T10:38:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-03T13:28:02+00:00\" \/>\n<meta name=\"author\" content=\"Admin Docs\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin Docs\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Display \"Track My Order\" Links in Hyv\u00e4 - Plumrocket Documentation","description":"In this guide, you can learn how to add the \"Track My Order\" links to the footer and header in Hyv\u00e4 theme for the Magento 2 Order Status &amp; Shipping","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva","og_locale":"en_US","og_type":"article","og_title":"How to Display \"Track My Order\" Links in Hyv\u00e4","og_description":"In this guide, you can learn how to add the \"Track My Order\" links to the footer and header in Hyv\u00e4 theme for the Magento 2 Order Status &amp; Shipping","og_url":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva","og_site_name":"Plumrocket Documentation","article_published_time":"2023-06-30T10:38:36+00:00","article_modified_time":"2023-07-03T13:28:02+00:00","author":"Admin Docs","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin Docs","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva#article","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva"},"author":{"name":"Admin Docs","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/015cbe7d3eb39051359cab3a634456a2"},"headline":"How to Display &#8220;Track My Order&#8221; Links in Hyv\u00e4","datePublished":"2023-06-30T10:38:36+00:00","dateModified":"2023-07-03T13:28:02+00:00","mainEntityOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva"},"wordCount":267,"articleSection":["Developer Guide"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva","url":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva","name":"How to Display \"Track My Order\" Links in Hyv\u00e4 - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2023-06-30T10:38:36+00:00","dateModified":"2023-07-03T13:28:02+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/015cbe7d3eb39051359cab3a634456a2"},"description":"In this guide, you can learn how to add the \"Track My Order\" links to the footer and header in Hyv\u00e4 theme for the Magento 2 Order Status &amp; Shipping","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide\/add-footer-link-hyva#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 Order Status &amp; Shipping Tracking Pro","item":"https:\/\/plumrocket.com\/magento-order-status-shipping-tracking"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking"},{"@type":"ListItem","position":4,"name":"v1","item":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1"},{"@type":"ListItem","position":5,"name":"Developer Guide","item":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking\/v1\/devguide"},{"@type":"ListItem","position":6,"name":"How to Display &#8220;Track My Order&#8221; Links in Hyv\u00e4"}]},{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/015cbe7d3eb39051359cab3a634456a2","name":"Admin Docs","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d6479b5af6eac763e1302ee1354e543e6b78e779b21bffbc4d599470abbaacc2?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d6479b5af6eac763e1302ee1354e543e6b78e779b21bffbc4d599470abbaacc2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d6479b5af6eac763e1302ee1354e543e6b78e779b21bffbc4d599470abbaacc2?s=96&d=mm&r=g","caption":"Admin Docs"}}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=26607"}],"version-history":[{"count":26,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26607\/revisions"}],"predecessor-version":[{"id":26758,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26607\/revisions\/26758"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=26607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=26607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=26607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}