Skip to main content

Questions tagged [customer-group]

Denotes question related to customer group

Filter by
Sorted by
Tagged with
9 votes
2 answers
10k views

Magento 2 how to save custom field added in the form of customer group?

I've added some custom fields to the form of customer group by using upgradeSchema.php. After that I found that the original fields like customer group code and tax id are saved by using setter ...
Ricky.C's user avatar
  • 2,182
3 votes
2 answers
951 views

Magento 1.9 Observer - How to disable Payment method in Observer?

I want to assign specific payment method only for selected one customer group, successfully get customer group & Payment method code, How to add condition, following are my workout, Following ...
zus's user avatar
  • 173
1 vote
1 answer
945 views

How to set sendPasswordResetConfirmationEmail Template seperate for when group id 4 using module

How to send separate Email template (customer_password_forgot_email_template) when user Group id=4 using module extend Mage_Customer_Model_Customer. class Creative_Login_Model_Customer ...
Ravikumar Patel's user avatar
22 votes
8 answers
38k views

How to get current customer group id in magento2

I want to get current customer group id in phtml file. When I am not logged in still it is return general type customer group. How can get proper output?
Rohan Hapani's user avatar
  • 17.5k
5 votes
3 answers
15k views

Magento 2 override the cutomer account loginpost controller

I am trying to overriding the below class in my custom module: vendor\magento\module-customer\Controller\Account\LoginPost.php For overriding this I have created the Plugin file as per the below ...
mageDev0688's user avatar
2 votes
2 answers
2k views

Magento2.1.9 How to apply condition in checkout shipping method?

In magento2 checkout page i'm using free shipping method and i need to hide free shipping method only for non stocking customer group and rest of all customer group i want to display free shipping ...
Rv Singh's user avatar
  • 1,637
3 votes
3 answers
3k views

Magento 2: How to hide the price for guest user only wholesale group user can see price

How to hide the price for guest user only wholesale group user can see price in is there any script or code or some free extension please suggest ?
Sheenu's user avatar
  • 119
13 votes
1 answer
32k views

How to use group by in magento collection with join query

In module's admin grid I am using this code to get collection and group them by customer id $collection = Mage::getModel('referafriend/statistics')->getCollection(); $collection->getSelect()-&...
Haris's user avatar
  • 869
9 votes
4 answers
3k views

Cross border tax settings for business clients

The situation is as follows: We have enabled "cross border trade" and it's working fine (we have products with Gross price defined and VAT is being calculated based on customer country. For each ...
Greg's user avatar
  • 266
6 votes
1 answer
7k views

Updating customer group from observer on customer_register_success event?

I want to set a customer group as first time user for that I am using an observer so that I can update the customer group just after or on the same time of registration.
supriya mishra's user avatar
5 votes
3 answers
2k views

Programatically Log User Out [Magento 2]

I have written a module which is basically an observer which triggers on 'customer_save_after_data_object' the content of this observer basically listens out for when the customers group is changed. ...
CreativeNerdSam's user avatar
4 votes
1 answer
1k views

How to assign a group to user based on their email id on registration

I am making a project In which I have to differentiate between the user who have registered I want that if some one registered with the id [email protected] He should be automatically assign to ...
Ratnesh Choudhary's user avatar
3 votes
1 answer
2k views

Magento 1.9: How to add customer group on registration page

I have followed every tutorial I have found and doesn't work. I am trying to add the customer groups on the customer registration page but its not working. I hope this question will help others also ...
mudit mehrotra's user avatar
3 votes
1 answer
17k views

Get customer group name from customer group ID

I need to use the customer group name in the invoice. Based on $order I can get the customer group ID. $customerGroupId = $order->getCustomerGroupId(); I tried the following code: $groupname = ...
SPRBRN's user avatar
  • 1,307
3 votes
0 answers
1k views

Product different prices and options per customer group

I am looking to set up 3 simple products 1 box - 700g 8 boxes - 700g 12 boxes - 700g I would then make a configurable product based on a new custom attribute of "Number of boxes" and associate these ...
Goose84's user avatar
  • 2,631
2 votes
1 answer
9k views

Automatic Customer Group change based on VAT-ID: Force Magento to check and display message when customer gets to checkout page

I've been scratching my head over this specific problem for few days now. Let's start with basics: I have 3 Tax Rules: 1. Standard Domestic Name: 21% Customer Tax Class: VAT Standard 21% ...
versedi's user avatar
  • 2,059
2 votes
1 answer
5k views

Get Product price by customer Group magento 2

I am trying to get Product price by customer group. Used below code. $sku = 123; $customerGroup = $this->getCustomerGroupId(); $currentProduct = $this->loadProduct($sku); $productPrice = $...
Jafar Pinjar's user avatar
  • 1,951
2 votes
1 answer
2k views

How to automatically send a transactional email on customer group change?

I would like to send a custom transactional email automatically to a user when he is assigned to a specific user group. I think doing that with on observer but do not manage to find which event to ...
Alexglvr's user avatar
  • 1,675
1 vote
1 answer
1k views

How to set special price for specific customer group

Guys I'm wondering how to add special price for specific customer group? For example, I have a group called "VIP", I want to set 10% discount on every product for this specified group only. Thank you ...
Amiyo Ghosh's user avatar
1 vote
1 answer
1k views

Customer Group Restriction

I want to apply some rule for customer group for example if general user can buy only single quantity of any product and wholesaler can buy limitless product quantity and retail can buy specific ...
Mangesh Gomkar's user avatar
1 vote
2 answers
7k views

Magento 2: Programmatically create & apply shopping cart rule

I'm having an issue with creating a shopping cart rule in Magento 2.1. Is there a way to create shopping cart rule programmatically and then apply it to specific group of customers?
Mateusz Serotiuk's user avatar
1 vote
1 answer
2k views

Change customer group upon buying a specific product

This question has been asked a few times before but none of the answers have worked for my specific case. What I want: If someone purchases a product off of my store (We will call it Prime Membership)...
DarkMatter's user avatar
1 vote
1 answer
1k views

Magento 1.9: How to add specific customer group in drop down list as product attribute in admin

I am working on a project in which I have created a module to create custom customer in manufacturer customer group now I want to add this manufacturer customer group as a product attribute to ...
mudit mehrotra's user avatar
1 vote
1 answer
1k views

How to customize the customer account after login according to user group

I need to show the different options according to group of the customer in MY ACCOUNT section. For example, I need to show only My profile, Account Information, social media accounts link in the MY ...
mudit mehrotra's user avatar
1 vote
1 answer
2k views

Showing static block only to specific customer group

I have a webshop were I have to hide away the login and create user form, because I only want customers with a specific link to be able to register. When they have registered they will be able to see ...
McKeene's user avatar
  • 501
1 vote
1 answer
69 views

Give a percentage off to everyone that has a specific email address. ie. [email protected]

So anyone with our email address @mywebsite.com gets put into a group with a certain amount off. They would still have to register. I know this can be done but I'm not sure how. Can someone please ...
Singleton's user avatar
1 vote
1 answer
3k views

How to call customer login form in the custom module action magento 2?

I have created my custom module for specific customer group. so, admin will send link to customer to download some matter after login. The login URL and login screen will be different for normal ...
mageDev0688's user avatar
0 votes
1 answer
616 views

Magento 2.3 - Disable Payment Method for Certain Customer Groups by using Observer

Source : https://www.magedelight.com/resources/how-to-disable-payment-method-for-certain-customer-groups-in-magento-2/ Stright opposite i just enable certain customer group, app/code/Gta/...
zus's user avatar
  • 173
0 votes
1 answer
230 views

Remove customer_account_navigation-reports block for specific customer group in magento 2

I want to remove customer_account_navigation-reports block from customer account on the frontend for specific customer group i.e. Distributor How can I do this?
Ankit8's user avatar
  • 177
0 votes
1 answer
133 views

How to add price for the customer group and add it to the customer registration page

I need to add price for the customer group from magento admin so each customer group have a different price. I also need to show these group with group price on the customer registration page on the ...
mudit mehrotra's user avatar