Skip to main content

Questions tagged [customer-collection]

Questions related to Magento customer collections.

Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

How to filter customer collection by custom field added by db_schema xml file to customer_entity table in Magento 2?

I added 'custom_field' to 'customer_entity' table by using 'db_schema.xml' file and need to save 'some value' in it then I wanted to filter the collection by 'custom_field' value. How can I achieve ...
shankar boss's user avatar
  • 1,453
0 votes
2 answers
583 views

Magento2 addFieldToFilter, Need 'and' and 'Or' in sql

I need magento sql collection. Query need like that. select * from custom_table where customer_id=xx or (customer_group=1 and custom_field=1) I can add or operator like below select * from ...
Nadim's user avatar
  • 91
1 vote
2 answers
328 views

How to get Customer collection that has subscribed to newsletter in Magento 2

I want to retrieve the customer collection that has subscribed to the newsletter, i see this solution but this one is for Magento 1.9 , how can i achieve this in Magento 2?
Padawan's user avatar
  • 135
0 votes
2 answers
392 views

Magento2: How to get online customer collection list?

I want to get online or logged In customer collection list.
Masud Shaikh's user avatar
  • 1,189
0 votes
1 answer
41 views

Generate a list in Magento Admin of customers that have a wishlist?

I need a way to get a list of customers that have a wishlist. Thanks in advanced.
Kieran's user avatar
  • 98
0 votes
1 answer
1k views

How can I get all quote which is active with customer ID

Is there anyway I could print out in a table in phtml the following: Entity_id , is_active and store Is it possible to get all active quote within a customer_id? I want to show this in a table I ...
Jack Brooks's user avatar
0 votes
2 answers
1k views

Magento2.3: How to create a CSV and JSON file?

I have successfully got the wishlist collection of customer by referring the below link: https://www.rakeshjesadiya.com/get-wishlist-collection-of-customer-by-customer-id-magento-2/ Now, I have to ...
Mohammad's user avatar
1 vote
1 answer
469 views

Magento2.3: How to download the customer wishlist collection as a CSV file?

I have a requirement that is collecting wish-list data and download/store them as a CSV file. As of now, I have referred the below URL and tried getting the sample CSV file downloaded. How to ...
MagentoDev's user avatar
1 vote
1 answer
129 views

Magento2.3: How to send a file to another server?

I have a requirement that is sending the customer details like their wish-list details, address, names, etc., to another server(I have all the credentials for that server with me). I want to send ...
Mohammad's user avatar
0 votes
1 answer
290 views

Issue with Customer Order Collection Magento 2

I have a problem with the default Magento core function. I really don't know whether it is a conflict with any other modules. When we go to the customer menu in admin and select any customer from ...
Akhil Anand's user avatar
-1 votes
2 answers
174 views

Count of Customers with 0 Order magento 1.9

I want customers having 0 orders and there count I have done for order count of each customer but I want count of customer having 0 orders $CustomersCollection = Mage::getModel('customer/customer')->...
Inzamam Waikar's user avatar
1 vote
1 answer
744 views

How To Fetch all customer name in multi select in custom admin form

I Want To fetch all customer name in multi select in my form using customer collection Following is my form file <?php namespace Magneto\AppNotification\Block\Adminhtml\Form\Edit\Tab; use ...
Harsh Jayswal's user avatar
0 votes
1 answer
326 views

Magento 2: How to Load Customer collections in admin panel by Using Plugin

I am using plugin to load the customer collection in admin panel,this is i have done.. di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Jay Kapoor's user avatar
3 votes
1 answer
1k views

Magento 2: performance of getCollection function

I'm currently working on a Magento 2 theme that requires collection statistics to show on the frontend. For example: what are the total number of customers at the moment. I'm using \Magento\Customer\...
Tjitse's user avatar
  • 1,310