Magento Expert Forum - Improve your Magento experience

Results 1 to 2 of 2

How to get Customer Collection in Magento 2

  1. #1
    Junior Member
    Join Date
    Jun 2016
    Bhavnagar, Gujarat, India
    Thanked 2 Times in 2 Posts

    Post How to get Customer Collection in Magento 2

    With the help of customer collection, one can filter all the store’s customer’s information by attributes. The customer’s information is very essential information Hence, in this article I will help you to get Customer Collection in Magento 2.

    Name:  How-to-Get-Customer-Collection-in-Magento-2-950x500.png
Views: 21
Size:  95.9 KB

    Steps to Get Customer Collection in Magento 2:
    Method 1: Using Class
    Create one block file on our custom extension add Blockname.php in the following path


    now add following code,

    after this, you need to phtml file and add following code into the file,

    For more detail:

    View more threads in the same category:

  2. #2
    Junior Member
    Join Date
    Nov 2019
    Thanked 3 Times in 3 Posts


    Helpful post! I'd also like to recommend using Advanced Newsletter Popup Magento 2 Extension. It displays newsletter popup on your store when customers visit your site with a custom field and custom message.

    This is a fantastic tool that help store owner get more orders and newsletter subscribers. This tool comes with 9 default layout templates for newsletter popup, that gives a stunning look to your website and attracts more customers.

    Name:  layout-8.png
Views: 5
Size:  169.4 KB

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts