{"id":22964,"date":"2021-07-29T11:09:57","date_gmt":"2021-07-29T15:09:57","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=22964"},"modified":"2021-11-18T05:29:30","modified_gmt":"2021-11-18T10:29:30","slug":"magento-2-amp-upgrading-to-v3-x","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/upgrading","title":{"rendered":"How to Upgrade Magento 2 AMP from v2.x to v3.x"},"content":{"rendered":"\n<p>In this article, you will learn how to upgrade the&nbsp;<a href=\"\/magento-amp\">Magento 2 AMP extension<\/a>&nbsp;from v2.x to v3.x using two methods \u2013 via FTP or Composer.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-warning\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\"><strong>Important Information:<\/strong><\/p>\n\n\n\n<p>We strongly recommend upgrading and testing the AMP extension in a development environment before deploying it on the production shop.<\/p>\n<\/div><\/div>\n\n\n\n<h2 id=\"h-step-1-back-up-the-customizations\">Step 1. Back Up the Customizations<\/h2>\n\n\n\n<p>Back up the <code>app\/design\/frontend\/[vendor]\/[theme_name]\/Plumrocket_Amp<\/code> file and remove it from the <code>[theme_name]<\/code>  folder.<\/p>\n\n\n\n<h2 id=\"h-step-2-update-the-extension\">Step 2. Update the Extension<\/h2>\n\n\n\n<p>You can choose one of the two following methods to update the extension on your Magento 2 store:<\/p>\n\n\n\n<div class=\"wp-block-buttons\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-background\" href=\"#updating-extension-via-composer\" style=\"background-color:#33b0e2\"><strong>1. Updating via Composer<\/strong><\/a><\/div>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-background\" href=\"#updating-extension-via-ftp\" style=\"background-color:#c9383d\"><strong>2. Updating via FTP<\/strong><\/a><\/div>\n<\/div>\n\n\n\n<h3 id=\"h-updating-extension-via-composer\">Updating Extension via Composer<\/h3>\n\n\n\n<p>First, remove the following folders if they exist:<\/p>\n\n\n\n<ul><li><code>app\/code\/Plumrocket\/Amp<\/code><\/li><li><code>app\/code\/Plumrocket\/Base<\/code><\/li><li><code>app\/code\/Plumrocket\/ExtendedAdminUi<\/code><\/li><\/ul>\n\n\n\n<p>Then, update the extension files by running the following command from the Magento root directory:<\/p>\n\n\n\n<ul><li>Use this command if the AMP v2 Extension was installed in the <code>vendor\/plumrocket\/module-pramp<\/code> folder.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">composer update plumrocket\/amp-theme-one plumrocket\/module-pramp --with-dependencies<\/code><\/pre><\/div>\n\n\n\n<ul><li>Use this command if the AMP v2 Extension was installed in the <code>app\/code\/Plumrocket\/Amp<\/code> folder.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-\">composer require plumrocket\/amp-theme-one plumrocket\/module-pramp<\/code><\/pre><\/div>\n\n\n\n<p>After running the command, you may be prompted to enter the username and password. In order to find your personal Username and Password to update the extension via the Composer,&nbsp;go to your <strong><a href=\"\/downloadable\/customer\/products\" rel=\"nofollow\">Plumrocket account<\/a> &gt; My Downloads<\/strong>, find the required Plumrocket extension in the list, and click the <strong>Install via Composer<\/strong> link.&nbsp;<\/p>\n\n\n\n<p>Run the next four Magento 2 commands to complete the updating process:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">php bin\/magento cache:flush\nphp bin\/magento setup:upgrade\nphp bin\/magento setup:di:compile\nphp bin\/magento setup:static-content:deploy<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"h-updating-extension-via-ftp\">Updating Extension via FTP<\/h3>\n\n\n\n<p>In order to update the extension files via FTP, remove the <code>app\/code\/Plumrocket\/Amp<\/code> folder and perform the <a href=\"\/docs\/magento-amp\/v3\/installation#extension-installation-via-ftp\">Installation via FTP<\/a> steps.<\/p>\n\n\n\n<h2 id=\"h-step-3-validate-amp-pages\">Step 3. Validate AMP Pages<\/h2>\n\n\n\n<p>At first, we recommend checking the&nbsp;<code>var\/log\/exception.log<\/code> exception log for AMP-related exceptions errors. After that, you can start validating AMP pages using our guide on <a href=\"\/docs\/magento-amp\/v3\/userguides\/validation\">how to validate AMP pages<\/a>.<\/p>\n\n\n\n<h2 id=\"h-step-4-integrate-your-third-party-modules-with-the-amp-extension\">Step 4. Integrate Your Third-Party Modules With the AMP Extension<\/h2>\n\n\n\n<p>In your third-party modules, disable functionality that you do not need for the AMP store version. In order to disable this functionality for the AMP version only, you can use the <code>\\Plumrocket\\AmpApi\\Api\\IsAmpModeInterface::execute<\/code> method.<\/p>\n\n\n\n<p>Next, you need to add the functionality you want to reproduce on AMP pages. To do this, <a href=\"\/docs\/magento-amp\/v3\/devguide\/creating-amp-theme\">create a custom AMP theme<\/a> along with custom AMP templates, layouts, <a href=\"\/docs\/magento-amp\/v3\/devguide\">CSS<\/a>, etc.<\/p>\n\n\n\n<h2 id=\"h-step-5-add-the-customizations-you-had-before\">Step 5. Add the Customizations You Had Before<\/h2>\n\n\n\n<p>If you used a custom AMP design, you have to customize the AMP Theme One using the custom AMP theme created in the previous step.<\/p>\n\n\n\n<h2 id=\"h-step-6-validate-amp-pages\">Step 6. Validate AMP Pages<\/h2>\n\n\n\n<p>After you have added all customizations, you should <a href=\"\/docs\/magento-amp\/v3\/userguides\/validation\">validate your AMP pages<\/a> again. In the future, <a href=\"\/docs\/magento-amp\/v3\/userguides\/google-search-console\">keep Magento AMP Pages Valid With Google Search Console<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn how to upgrade the&nbsp;Magento 2 AMP extension&nbsp;from v2.x to v3.x using two methods \u2013 via FTP or Composer. Step 1. Back Up the Customizations Back up the app\/design\/frontend\/[vendor]\/[theme_name]\/Plumrocket_Amp file and remove it from the [theme_name] folder. Step 2. Update the Extension You can choose one of the two following &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/upgrading\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Upgrade Magento 2 AMP from v2.x to v3.x&#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":[103],"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 Upgrade Magento 2 AMP from v2.x to v3.x - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"In this article, you will learn how to upgrade the&nbsp;Magento 2 AMP extension&nbsp;from v2.x to v3.x using two methods \u2013 via FTP or Composer. Important\" \/>\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-amp\/v3\/upgrading\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Upgrade Magento 2 AMP from v2.x to v3.x\" \/>\n<meta property=\"og:description\" content=\"In this article, you will learn how to upgrade the&nbsp;Magento 2 AMP extension&nbsp;from v2.x to v3.x using two methods \u2013 via FTP or Composer. Important\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/upgrading\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-29T15:09:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-18T10:29:30+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=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Upgrade Magento 2 AMP from v2.x to v3.x - Plumrocket Documentation","description":"In this article, you will learn how to upgrade the&nbsp;Magento 2 AMP extension&nbsp;from v2.x to v3.x using two methods \u2013 via FTP or Composer. Important","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-amp\/v3\/upgrading","og_locale":"en_US","og_type":"article","og_title":"How to Upgrade Magento 2 AMP from v2.x to v3.x","og_description":"In this article, you will learn how to upgrade the&nbsp;Magento 2 AMP extension&nbsp;from v2.x to v3.x using two methods \u2013 via FTP or Composer. Important","og_url":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/upgrading","og_site_name":"Plumrocket Documentation","article_published_time":"2021-07-29T15:09:57+00:00","article_modified_time":"2021-11-18T10:29:30+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"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-amp\/v3\/upgrading#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/upgrading","name":"How to Upgrade Magento 2 AMP from v2.x to v3.x - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2021-07-29T15:09:57+00:00","dateModified":"2021-11-18T10:29:30+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"description":"In this article, you will learn how to upgrade the&nbsp;Magento 2 AMP extension&nbsp;from v2.x to v3.x using two methods \u2013 via FTP or Composer. Important","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/upgrading#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/upgrading"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/upgrading#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 AMP","item":"https:\/\/plumrocket.com\/magento-amp"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-amp"},{"@type":"ListItem","position":4,"name":"v3","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3"},{"@type":"ListItem","position":5,"name":"How to Upgrade Magento 2 AMP from v2.x to v3.x"}]},{"@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\/22964"}],"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=22964"}],"version-history":[{"count":58,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/22964\/revisions"}],"predecessor-version":[{"id":25100,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/22964\/revisions\/25100"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=22964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=22964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=22964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}