{"id":26643,"date":"2023-06-30T06:49:15","date_gmt":"2023-06-30T10:49:15","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=26643"},"modified":"2023-07-04T04:52:59","modified_gmt":"2023-07-04T08:52:59","slug":"how-to-add-track-my-order-footer-link-in-hyva-2","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking-lite\/v2\/devguide\/add-footer-link-hyva","title":{"rendered":"How to Display &#8220;Track My Order&#8221; Footer Link in Hyv\u00e4"},"content":{"rendered":"\n<p>In this guide, you can learn how to display the &#8220;Track My Order&#8221; link in your website&#8217;s footer in Hyv\u00e4 theme using the <a href=\"\/magento-order-status-shipping-tracking-lite\">Magento 2 Order Status &amp; Shipping Tracking Lite<\/a> extension.<\/p>\n\n\n\n<h2 id=\"h-step-1-copy-the-default-footer-links-template-to-your-hyv-theme\">Step 1. Copy the default footer links template to your Hyv\u00e4 theme<\/h2>\n\n\n\n<p>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><kbd>vendor\/hyva-themes\/magento2-default-theme\/Magento_Theme\/templates\/html\/footer\/links.phtml<\/kbd><\/p>\n\n\n\n<p>to the theme with the following path:<\/p>\n\n\n\n<p><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<h2 id=\"h-step-2-add-track-my-order-link-to-the-footer\">Step 2. Add \u201cTrack My Order\u201d link to the footer<\/h2>\n\n\n\n<p>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\">&lt;?php\n\/** @var \\Hyva\\PlumrocketShippingTracking\\ViewModel\\TrackMyOrder $prOrderStatus *\/\n$prOrderStatus = $viewModels->require(\\Hyva\\PlumrocketShippingTracking\\ViewModel\\TrackMyOrder::class);\n?>\n&lt;?php if ($prOrderStatus->canShowInFooter()): ?>\n    &lt;li class=\"mt-4\">\n        &lt;a href=\"&lt;?= $escaper->escapeUrl($prOrderStatus->getTrackLink()) ?>\"\n           class=\"text-base leading-6\">\n            &lt;?= $escaper->escapeHtml($prOrderStatus->getFooterTrackLinkLabel()) ?>\n        &lt;\/a>\n    &lt;\/li>\n&lt;?php endif; ?><\/code><\/pre><\/div>\n\n\n\n<h2 id=\"h-step-3-apply-changes\">Step 3. Apply Changes<\/h2>\n\n\n\n<p>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\">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 display the &#8220;Track My Order&#8221; link in your website&#8217;s footer in Hyv\u00e4 theme using the Magento 2 Order Status &amp; Shipping Tracking Lite extension. Step 1. Copy the default footer links template to your Hyv\u00e4 theme First, check if your theme includes a Magento_Theme::html\/footer\/links.phtml file. If the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking-lite\/v2\/devguide\/add-footer-link-hyva\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Display &#8220;Track My Order&#8221; Footer Link in Hyv\u00e4&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[378],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Display &quot;Track My Order&quot; Footer Link in Hyv\u00e4 - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"In this guide, you can learn how to display the &quot;Track My Order&quot; link in your website&#039;s footer in Hyv\u00e4 theme using the Magento 2 Order Status &amp;\" \/>\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-lite\/v2\/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; Footer Link in Hyv\u00e4\" \/>\n<meta property=\"og:description\" content=\"In this guide, you can learn how to display the &quot;Track My Order&quot; link in your website&#039;s footer in Hyv\u00e4 theme using the Magento 2 Order Status &amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking-lite\/v2\/devguide\/add-footer-link-hyva\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-30T10:49:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-04T08:52:59+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Display \"Track My Order\" Footer Link in Hyv\u00e4 - Plumrocket Documentation","description":"In this guide, you can learn how to display the \"Track My Order\" link in your website's footer in Hyv\u00e4 theme using the Magento 2 Order Status &amp;","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-lite\/v2\/devguide\/add-footer-link-hyva","og_locale":"en_US","og_type":"article","og_title":"How to Display \"Track My Order\" Footer Link in Hyv\u00e4","og_description":"In this guide, you can learn how to display the \"Track My Order\" link in your website's footer in Hyv\u00e4 theme using the Magento 2 Order Status &amp;","og_url":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking-lite\/v2\/devguide\/add-footer-link-hyva","og_site_name":"Plumrocket Documentation","article_published_time":"2023-06-30T10:49:15+00:00","article_modified_time":"2023-07-04T08:52:59+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@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":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking-lite\/v2\/devguide\/add-footer-link-hyva#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking-lite\/v2\/devguide\/add-footer-link-hyva","name":"How to Display \"Track My Order\" Footer Link in Hyv\u00e4 - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2023-06-30T10:49:15+00:00","dateModified":"2023-07-04T08:52:59+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"description":"In this guide, you can learn how to display the \"Track My Order\" link in your website's footer in Hyv\u00e4 theme using the Magento 2 Order Status &amp;","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking-lite\/v2\/devguide\/add-footer-link-hyva#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking-lite\/v2\/devguide\/add-footer-link-hyva"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking-lite\/v2\/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 Lite","item":"https:\/\/plumrocket.com\/magento-order-status-shipping-tracking-lite"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking-lite"},{"@type":"ListItem","position":4,"name":"v2","item":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking-lite\/v2"},{"@type":"ListItem","position":5,"name":"Developer Guide","item":"https:\/\/plumrocket.com\/docs\/magento-order-status-shipping-tracking-lite\/v2\/devguide"},{"@type":"ListItem","position":6,"name":"How to Display &#8220;Track My Order&#8221; Footer Link in Hyv\u00e4"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","caption":"Plumrocket"}}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26643"}],"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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=26643"}],"version-history":[{"count":12,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26643\/revisions"}],"predecessor-version":[{"id":26754,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26643\/revisions\/26754"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=26643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=26643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=26643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}