{"id":26307,"date":"2022-12-23T08:39:19","date_gmt":"2022-12-23T13:39:19","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=26307"},"modified":"2023-10-12T09:52:22","modified_gmt":"2023-10-12T13:52:22","slug":"how-to-upgrade-magento-2-ccpa-cpra-from-v2-x-to-v3-x","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/upgrading","title":{"rendered":"How to Upgrade Magento 2 US Privacy Laws from v2.x to v3.x"},"content":{"rendered":"\n<p>In this article, you will learn how to upgrade the&nbsp;<a href=\"\/magento-us-privacy-laws\">Magento 2 US Privacy Laws<\/a> from v2.x to v3.x using two methods \u2013 via Composer or FTP.<\/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 US Privacy Laws extension in a development environment before deploying it on the production store.<\/p>\n<\/div><\/div>\n\n\n\n<h2 id=\"h-step-1-update-the-extension\">Step 1. 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 folder if it exists:<\/p>\n\n\n\n<p><code>app\/code\/Plumrocket\/CCPA<\/code><\/p>\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 US Privacy Laws v3 extension was installed in the <code>vendor\/plumrocket\/plumrocket\/module-ccpa<\/code> folder.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">composer remove plumrocket\/ccpa-metapackage\ncomposer require plumrocket\/ccpa-metapackage<\/code><\/pre><\/div>\n\n\n\n<ul><li>Or use this command if the US Privacy Laws v3 Extension was installed in the <code>app\/code\/Plumrocket\/CCPA<\/code> folder.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-\">composer require plumrocket\/ccpa-metapackage<\/code><\/pre><\/div>\n\n\n\n<p>After running these commands, you may be prompted to enter the username and password (see the&nbsp;<a href=\"\/docs\/general\/composer-repository-keys\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">How to Get Plumrocket Composer Repository Keys<\/a>&nbsp;user guide).<\/p>\n\n\n\n<p>To complete the updating process, run the next four Magento 2 commands:<\/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\/CCPA<\/code> folder and perform the <a href=\"\/docs\/magento-ccpa\/v3\/installation#extension-installation-via-ftp\">Installation via FTP<\/a> steps.<\/p>\n\n\n\n<h2 id=\"h-step-2-change-the-do-not-sell-page\">Step 2. Change the &#8220;Do Not Sell Page&#8221;<\/h2>\n\n\n\n<p>If you have customized the Do Not Sell My Personal Information page, you need to update it to comply with the new CPRA requirements. In the US Privacy Laws extension v.3.x.x we have provided the new default <strong>Do Not Sell or Share My Personal Information<\/strong> page that you can use as an example.<\/p>\n\n\n\n<p>Please follow the steps below to change the &#8220;<strong>Do Not Sell<\/strong>&#8221; page on your store:<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>In the Magento admin panel, go to <strong>Plumrocket <\/strong>-&gt; <strong>US Privacy Laws<\/strong> -&gt; <strong>Configuration<\/strong> -&gt; <strong>Do Not Sell or Share My Personal Information Page<\/strong> tab.<\/li><li>In the <strong>&#8220;Do Not Sell&#8221; CMS Page <\/strong>field, choose the new page from the list of CMS pages. You can either select our default <em>Do Not Sell or Share My Personal Information<\/em> page, or a custom one created based on it.<\/li><li>Click <strong>Save Config<\/strong>.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1206\" height=\"575\" src=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/10\/magento-2-us-privacy-laws-upgrade-1.png\" alt=\"Magento 2 US Privacy Laws - Do Not Sell or Share My Personal Information Page\" class=\"wp-image-26934\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/10\/magento-2-us-privacy-laws-upgrade-1.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/10\/magento-2-us-privacy-laws-upgrade-1-300x143.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/10\/magento-2-us-privacy-laws-upgrade-1-1024x488.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/10\/magento-2-us-privacy-laws-upgrade-1-768x366.png 768w\" sizes=\"(max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<h2 id=\"h-step-3-change-the-do-not-sell-confirmation-email-template\">Step 3. Change the &#8220;Do Not Sell&#8221; Confirmation Email Template<\/h2>\n\n\n\n<p>Please skip this step if you have been using the &#8220;<strong>Guest Opt-Out Confirmation (Default)<\/strong>&#8221; email template, as it was automatically updated.<\/p>\n\n\n\n<p>However, if you used a custom template, you should update its content to reflect the new CPRA requirements. Please go to <strong>Marketing <\/strong>-&gt; <strong>Email Templates<\/strong> in the Magneto admin panel, and click the edit icon on your <strong>Guest Opt-Out Confirmation <\/strong>template. Then make sure you have set the correct email template in the extension configurations by following the next steps: <\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>In the Magento admin panel, go to <strong>Plumrocket <\/strong>-&gt; <strong>US Privacy Laws<\/strong> -&gt; <strong>Configuration<\/strong> -&gt; <strong>Do Not Sell or Share My Personal Information Page<\/strong> tab.<\/li><li>In the &#8220;<strong>Guest Confirmation Email Template<\/strong>&#8221; field, select your custom email template with updated content according to the CPRA requirements.<\/li><li>Click <strong>Save Config<\/strong>.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1206\" height=\"533\" src=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/12\/magneto-2-ccpa-cpra-upgrade-2.png\" alt=\"Magneto 2 CPRA - Guest Confirmation Email Template\" class=\"wp-image-26309\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/12\/magneto-2-ccpa-cpra-upgrade-2.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/12\/magneto-2-ccpa-cpra-upgrade-2-300x133.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/12\/magneto-2-ccpa-cpra-upgrade-2-1024x453.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/12\/magneto-2-ccpa-cpra-upgrade-2-768x339.png 768w\" sizes=\"(max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<p> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn how to upgrade the&nbsp;Magento 2 US Privacy Laws from v2.x to v3.x using two methods \u2013 via Composer or FTP. Step 1. Update the Extension You can choose one of the two following methods to update the extension on your Magento 2 store: Updating Extension via Composer First, remove &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/upgrading\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Upgrade Magento 2 US Privacy Laws 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":[364],"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 US Privacy Laws 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 US Privacy Laws from v2.x to v3.x using two methods \u2013 via Composer or FTP. 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-ccpa\/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 US Privacy Laws 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 US Privacy Laws from v2.x to v3.x using two methods \u2013 via Composer or FTP. Important\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/upgrading\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-23T13:39:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-12T13:52:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/10\/magento-2-us-privacy-laws-upgrade-1.png\" \/>\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=\"3 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Upgrade Magento 2 US Privacy Laws from v2.x to v3.x - Plumrocket Documentation","description":"In this article, you will learn how to upgrade the&nbsp;Magento 2 US Privacy Laws from v2.x to v3.x using two methods \u2013 via Composer or FTP. 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-ccpa\/v3\/upgrading","og_locale":"en_US","og_type":"article","og_title":"How to Upgrade Magento 2 US Privacy Laws from v2.x to v3.x","og_description":"In this article, you will learn how to upgrade the&nbsp;Magento 2 US Privacy Laws from v2.x to v3.x using two methods \u2013 via Composer or FTP. Important","og_url":"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/upgrading","og_site_name":"Plumrocket Documentation","article_published_time":"2022-12-23T13:39:19+00:00","article_modified_time":"2023-10-12T13:52:22+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/10\/magento-2-us-privacy-laws-upgrade-1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"3 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":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/upgrading#primaryimage","inLanguage":"en-US","url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/10\/magento-2-us-privacy-laws-upgrade-1.png","contentUrl":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/10\/magento-2-us-privacy-laws-upgrade-1.png","width":1206,"height":575},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/upgrading#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/upgrading","name":"How to Upgrade Magento 2 US Privacy Laws from v2.x to v3.x - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/upgrading#primaryimage"},"datePublished":"2022-12-23T13:39:19+00:00","dateModified":"2023-10-12T13:52:22+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 US Privacy Laws from v2.x to v3.x using two methods \u2013 via Composer or FTP. Important","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/upgrading#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/upgrading"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-ccpa\/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 US Privacy Laws","item":"https:\/\/plumrocket.com\/magento-us-privacy-laws"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-ccpa"},{"@type":"ListItem","position":4,"name":"v3","item":"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3"},{"@type":"ListItem","position":5,"name":"Upgrading"}]},{"@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\/26307"}],"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=26307"}],"version-history":[{"count":9,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26307\/revisions"}],"predecessor-version":[{"id":26936,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26307\/revisions\/26936"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=26307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=26307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=26307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}