Search Results
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 |
Denotes question related to customer group
3
votes
How to get current customer group id in magento2
Try this to get the current customer group Id and name for both logged and not logged-in customers.
protected $_customerSession;
protected $_customerGroupCollection;
public function __construct(
…
1
vote
How to filter customer Group by customer id
By Object Manager:
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$customers = $objectManager->create('\Magento\Customer\Model\Customer')->getCollection();
$groupRepository …
15
votes
Accepted
Magento 2: How to get customer collection
1) Use \Magento\Customer\Model\ResourceModel\Customer\CollectionFactory class to get customer collection
<?php
protected $_customerFactory;
public function __construct(
...
\Magento\Cus …
1
vote
Accepted
How to call customer login form in the custom module action magento 2?
You need to create layout handle to call login form in your custom module url
For ex.
your routes.xml like
app/code/Vendor/Module/etc/frontend/routes.xml
<?xml version="1.0" ?>
<config xmlns: …
0
votes
How to delete cookies on auto logout?
In default Magento, the cookie is deleted once the customer logout. Please check that if you have customised logout action then you must have delete cookie by deleteCookie function of Magento\Framewor …