{"id":28338,"date":"2025-05-13T12:10:56","date_gmt":"2025-05-13T16:10:56","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=28338"},"modified":"2025-05-21T11:28:49","modified_gmt":"2025-05-21T15:28:49","slug":"magento-2-us-privacy-laws-developer-faq","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/devguide\/faq","title":{"rendered":"Magento 2 US Privacy Laws Developer FAQ"},"content":{"rendered":"\n<p>In this article, you will find answers to all frequently asked questions for developers on <a href=\"\/magento-lgpd\">Magento 2 US Privacy Laws<\/a> <a href=\"\/magento-gdpr\">extension<\/a>.<\/p>\n\n\n\n<h2 id=\"h-what-personal-data-is-deleted-by-us-privacy-laws-extension\">What Personal Data is Deleted by US Privacy Laws Extension<\/h2>\n\n\n\n<p>When customers submit Data Deletion Requests, the following data can be processed, depending on customer actions on site:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><\/td><td>Registered Customers<\/td><td>Guests<\/td><\/tr><tr><td>Address<\/td><td>delete<\/td><td>&#8211;<\/td><\/tr><tr><td>Price and Stock Alerts Subscription<\/td><td>delete<\/td><td>&#8211;<\/td><\/tr><tr><td>Store Credit Balance (Magento Commerce)<\/td><td>delete<\/td><td>&#8211;<\/td><\/tr><tr><td>Product Compare<\/td><td>delete<\/td><td>&#8211;<\/td><\/tr><tr><td>Customer Account<\/td><td>delete<\/td><td>&#8211;<\/td><\/tr><tr><td>Newsletter Subscriber<\/td><td>delete<\/td><td>delete<\/td><\/tr><tr><td>Invitation (Magento Commerce)<\/td><td>delete<\/td><td>&#8211;<\/td><\/tr><tr><td>Gift Registry (Magento Commerce)<\/td><td>delete<\/td><td>&#8211;<\/td><\/tr><tr><td>Orders<\/td><td><em>Anonymize:<\/em><br>customer_email<br>customer_firstname<br>customer_lastname<br>customer_dob<br>customer_middlename<br>customer_prefix<br>customer_suffix<br>customer_taxvat<br>remote_ip<br>customer_gender<br>customer_is_guest<br>customer_id<br>customer_group_id<\/td><td><em>Anonymize:<\/em><br>customer_email<br>customer_firstname<br>customer_lastname<br>customer_dob<br>customer_middlename<br>customer_prefix<br>customer_suffix<br>customer_taxvat<br>remote_ip<br>customer_gender<br>customer_is_guest<br>customer_id<br>customer_group_id<\/td><\/tr><tr><td>Quote (Products in Cart)<\/td><td>delete<\/td><td>delete<\/td><\/tr><tr><td>Reviews<\/td><td>delete<\/td><td>&#8211;<\/td><\/tr><tr><td>Reward Points (Magento Commerce)<\/td><td>delete<\/td><td>&#8211;<\/td><\/tr><tr><td>Rma (Magento Commerce)<\/td><td><em>Anonymize<\/em>:<br>customer_name<\/td><td>&#8211;<\/td><\/tr><tr><td>Wishlist<\/td><td>delete<\/td><td>&#8211;<\/td><\/tr><tr><td>Archive Grids (Magento Commerce)<\/td><td><em>Anonymize<\/em>:<br>shipping_name<br>billing_name<br>billing_address<br>shipping_address<br>customer_email<br>customer_name<\/td><td>&#8211;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"h-what-data-and-magento-tables-are-affected-by-us-privacy-laws-extension\">What Data and Magento Tables are Affected by US Privacy Laws Extension<\/h2>\n\n\n\n<p>During download, deletion or anonymization process, the following database tables are affected:<\/p>\n\n\n\n<figure class=\"wp-block-table dev_table_twocolumn\"><table><tbody><tr><th>Magento 2.x Community Edition (CE)<\/th><th>Magento 2.x Enterprise Edition (EE)<\/th><\/tr><tr><td>customer_entity<br>customer_entity_*<br>customer_grid_flat<br>customer_address_entity<br>customer_address_entity_*<br>email_contact<br>email_review<br>email_automation<br>email_campaign<br>sales_order<br>sales_order_item<br>sales_order_address<br>sales_order_payment<br>sales_order_grid<br>sales_shipment_grid<br>sales_invoice_grid<br>sales_creditmemo_grid<br>mage_quote<br>mage_quote_address<br>product_alert_price<br>product_stock_alert<br>wishlist<br>review_detail<br>catalog_compare_item<br>newsletter_subscriber<br>plumrocket_ccpa_consents_log<br>plumrocket_ccpa_export_log<br>plumrocket_ccpa_removal_requests<\/td><td>customer_entity<br>customer_entity_*<br>customer_grid_flat<br>customer_address_entity<br>customer_address_entity_*<br>email_contact<br>email_review<br>email_automation<br>email_campaign<br>sales_order<br>sales_order_item<br>sales_order_address<br>sales_order_payment<br>sales_order_grid<br>sales_shipment_grid<br>sales_invoice_grid<br>sales_creditmemo_grid<br>mage_quote<br>mage_quote_address<br>product_alert_price<br>product_stock_alert<br>wishlist<br>review_detail<br>catalog_compare_item<br>newsletter_subscriber<br>magento_customerbalance<br>magento_reward<br>magento_rma<br>magento_rma_grid<br>magento_invitation<br>plumrocket_ccpa_consents_log<br>plumrocket_ccpa_export_log<br>plumrocket_ccpa_removal_requests<br>magento_giftregistry_entity<br>magento_giftregistry_person<br>magento_sales_order_grid_archive<br>magento_sales_creditmemo_grid_archive<br>magento_sales_invoice_grid_archive<br>magento_sales_shipment_grid_archive<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>See <a href=\"https:\/\/devdocs.magento.com\/guides\/v2.2\/architecture\/gdpr\/magento-2x.html\" target=\"_blank\" rel=\"noopener noreferrer\">Magento DevDocs<\/a> for more information about the Magento 2.x CCPA compliance and data storage.<\/p>\n\n\n\n<h2 id=\"h-can-i-anonymize-all-data-instead-of-deleting-it\">Can I Anonymize All Data Instead of Deleting It<\/h2>\n\n\n\n<p>Yes, you can. Follow these steps:<\/p>\n\n\n\n<p>a) Describe all data that should be anonymized in file di.xml<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\">&lt;type name=\"PlumrocketCCPAModelAccountProcessorsCustomerData\">\n    &lt;arguments>\n        &lt;argument name=\"dataExport\" xsi:type=\"array\">\n            \u2026\u2026. Data export Fields\n        &lt;\/argument>\n        &lt;argument name=\"dataAnonymize\" xsi:type=\"array\">\n            &lt;item name=\"prefix\" xsi:type=\"null\"\/>\n            &lt;item name=\"firstname\" xsi:type=\"string\">anonymousString&lt;\/item>\n            \u2026. And other fields\n        &lt;\/argument>\n    &lt;\/arguments>\n&lt;\/type><\/code><\/pre><\/div>\n\n\n\n<p>b) Edit model <code>Plumrocket\\CCPA\\Model\\Account\\Processors\\CustomerData<\/code> and replace the contents of function delete() with the following code:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">public function delete(CustomerInterface $customer)\n{\n     $this->anonymize($customer);\n}<\/code><\/pre><\/div>\n\n\n\n<p>Edit function anonymize() and add the following code:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">public function anonymize(CustomerInterface $customer)\n{\n     $customerId = $customer->getId();\n     $customer = $this->customer->load($customerId);\n     $dataAnonymized = $this->customerData->getDataAnonymized(\n         $this->dataAnonymize, $customerId);\n     if (!empty($dataAnonymized) &amp;&amp; $customer) {\n         $customer->setDataToAll($dataAnonymized)->save();\n     }\n}<\/code><\/pre><\/div>\n\n\n\n<h2 id=\"h-i-have-implemented-the-ccpa-support-in-my-third-party-extension-can-i-share-it-with-you\">I Have Implemented the CCPA Support in My Third-Party Extension, Can I Share It With You<\/h2>\n\n\n\n<p>Yes, absolutely. We can add the built-in support of the third-party extension to our CCPA module after we review your code. Please contact our tech support and submit your request.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will find answers to all frequently asked questions for developers on Magento 2 US Privacy Laws extension. What Personal Data is Deleted by US Privacy Laws Extension When customers submit Data Deletion Requests, the following data can be processed, depending on customer actions on site: Registered Customers Guests Address delete &#8211; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/devguide\/faq\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Magento 2 US Privacy Laws Developer FAQ&#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":[407],"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>Magento 2 US Privacy Laws Developer FAQ - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"In this article, you will find answers to all frequently asked questions for developers on Magento 2 US Privacy Laws extension. What Personal Data is\" \/>\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-data-privacy\/v3\/devguide\/faq\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 2 US Privacy Laws Developer FAQ\" \/>\n<meta property=\"og:description\" content=\"In this article, you will find answers to all frequently asked questions for developers on Magento 2 US Privacy Laws extension. What Personal Data is\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/faq\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-13T16:10:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-21T15:28:49+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":"Magento 2 US Privacy Laws Developer FAQ - Plumrocket Documentation","description":"In this article, you will find answers to all frequently asked questions for developers on Magento 2 US Privacy Laws extension. What Personal Data is","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-data-privacy\/v3\/devguide\/faq","og_locale":"en_US","og_type":"article","og_title":"Magento 2 US Privacy Laws Developer FAQ","og_description":"In this article, you will find answers to all frequently asked questions for developers on Magento 2 US Privacy Laws extension. What Personal Data is","og_url":"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/faq","og_site_name":"Plumrocket Documentation","article_published_time":"2025-05-13T16:10:56+00:00","article_modified_time":"2025-05-21T15:28:49+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-data-privacy\/v3\/devguide\/faq#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/faq","name":"Magento 2 US Privacy Laws Developer FAQ - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2025-05-13T16:10:56+00:00","dateModified":"2025-05-21T15:28:49+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"description":"In this article, you will find answers to all frequently asked questions for developers on Magento 2 US Privacy Laws extension. What Personal Data is","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/faq#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/faq"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/faq#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":"Developer Guide","item":"https:\/\/plumrocket.com\/docs\/magento-ccpa\/v3\/devguide"},{"@type":"ListItem","position":6,"name":"Magento 2 US Privacy Laws Developer FAQ"}]},{"@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\/28338"}],"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=28338"}],"version-history":[{"count":1,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/28338\/revisions"}],"predecessor-version":[{"id":28339,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/28338\/revisions\/28339"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=28338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=28338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=28338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}