From c4bd65c1de08893d5119520190d19fddba8784b9 Mon Sep 17 00:00:00 2001 From: gonzalo Date: Thu, 5 Oct 2023 14:06:45 -0300 Subject: [PATCH] add the phone to the subscribers grid #1834 for magento 2.4 --- Model/ResourceModel/Newsletter/Collection.php | 14 ++++++++++++++ etc/adminhtml/di.xml | 15 +++++++++++++++ .../layout/newsletter_subscriber_block.xml | 15 +++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 Model/ResourceModel/Newsletter/Collection.php create mode 100644 etc/adminhtml/di.xml create mode 100644 view/adminhtml/layout/newsletter_subscriber_block.xml diff --git a/Model/ResourceModel/Newsletter/Collection.php b/Model/ResourceModel/Newsletter/Collection.php new file mode 100644 index 00000000..b46d2560 --- /dev/null +++ b/Model/ResourceModel/Newsletter/Collection.php @@ -0,0 +1,14 @@ +showCustomerInfo(true)->addSubscriberTypeField()->showStoreInfo(); + $this->_map['fields']['phone'] = 'main_table.phone'; + return $this; + } +} diff --git a/etc/adminhtml/di.xml b/etc/adminhtml/di.xml new file mode 100644 index 00000000..adeadc0a --- /dev/null +++ b/etc/adminhtml/di.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/view/adminhtml/layout/newsletter_subscriber_block.xml b/view/adminhtml/layout/newsletter_subscriber_block.xml new file mode 100644 index 00000000..38b82da6 --- /dev/null +++ b/view/adminhtml/layout/newsletter_subscriber_block.xml @@ -0,0 +1,15 @@ + + + + + + + Phone + phone + phone + phone + + + + +