Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 49826

denotes questions related to the customers module

1 vote

php-cuong customer avatar

module-customer/Model/FileUploader.php Around line 113 Replace below : $result['tmp_name'] = $result['path'] . '/' . ltrim($result['file'], '/'); Replace with : $result['tmp_name'] = ltrim($result …
anonymous's user avatar
  • 3,752
1 vote

Customer account nav menu restyling

Try Below Code : <referenceBlock name="customer_account_navigation"> <block class="Magento\Framework\View\Element\Html\Link\Current" name="first-link"> <arguments> …
anonymous's user avatar
  • 3,752
1 vote

Customers custom attribute with dropdown is not working

Give a try with below: $customerSetup->addAttribute(Customer::ENTITY, 'is_mobile_verified', [ 'label' => 'Is Mobile Verified ?' …
anonymous's user avatar
  • 3,752
11 votes
Accepted

Set value to created customer custom attribute in magento 2

Tested with Magento 2.3.3 $avatar = $this->request->getParam('avatar'); // \Magento\Customer\Model\Customer $customerModel, $customerNew = $this->customerModel->load($this … customerData = $customerNew->getDataModel(); $customerData->setCustomAttribute('customer_avatar',$customerAvatar); $customerNew->updateData($customerData); // \Magento\Customer
anonymous's user avatar
  • 3,752
2 votes
1 answer
546 views

How to filter customer collection with its attribute?

I've bunch of customer attributes, So how can I filter customer collection with its custom attribute ? …
anonymous's user avatar
  • 3,752
0 votes
2 answers
3k views

Magento 2 : How to filter customer group collection?

Anybody have idea about how can i filter customer group pragmatically ? I can able to get customer group collection by using below code. … $customerGroupsCollection = $objectManager->create('\Magento\Customer\Model\ResourceModel\Group\Collection'); print_r($customerGroupsCollection->getData()); exit; Output [6] => Array ( …
anonymous's user avatar
  • 3,752
3 votes

InstallData works only once

It's default behaviour of InstallData it only execute once when your module register First Time. I would recommend you to create upgradeData. Check below reference to know about more. https://www.m …
anonymous's user avatar
  • 3,752
0 votes

Filter customer collection by custom attribute in magento 2

You can try this. It worked for me couple of months ago. $replydb = $objectManager->get('\Magento\Module\Model\Yourmodel')->getCollection(); $replydb->addFieldToFilter('status', 'Approved'); $replyco …
anonymous's user avatar
  • 3,752
0 votes

How to change "input file" storage location in customer account edit form

You can modiy code as per you need. I suggest you to observe customer_register_success event. More about observers here. $uploaderFactory = $this->uploaderFactory->create(['fileId' => 'my_fil …
anonymous's user avatar
  • 3,752