Questions tagged [user]
The user tag has no usage guidance.
113
questions
0
votes
1
answer
20
views
How do I create a Magento block that has input fields for to store values in variables?
My code for displaying rotating messages is currently hardcoded and I have to go in and update the messages manually. I want to replace this with a new block in magento so other people can just go ...
0
votes
2
answers
83
views
Magento 2.3 Accidentally delete vendor/magento folder in root directory content [WHM/cPanel] using rm-rf
I accidentally deleted vendor/magento folder from WHM/Cpanel using rm -rf command and i don't have any backup is there any possibility to restored that file.
0
votes
0
answers
46
views
Advance Reporting not working
I have followed all the instruction to activate advance report
Also Magento Analytics user integration Status is “Active” and generated token But still facing the same error.
We can’t find what you’re ...
0
votes
1
answer
24
views
Coupon code definition and usage restriction
Please Suggest a method to restrict the coupon code for 1 time only, even if the coupon codes are bulk generated using the Manage Coupon Codes functionality. All individual codes needed to be ...
1
vote
1
answer
24
views
Can you see which user handled/proces which customer order?
Is it possible to see which user completed a customer order?
0
votes
1
answer
210
views
B2B graphql - company query displays null for company user id
I am working on Graphql API (Magento - 2.4/ enterprise edition) for B2B, the default company query which lists the company users does not give the id since it is deprecated.
But I want to update a ...
0
votes
2
answers
137
views
New user verification by Admin only
When a user signs up to my website I want to send that request to the Admin and after Admin verifies that user than only user should login to the website. Is there any way I can implement this feature ...
0
votes
1
answer
1k
views
How to Block Customers by their Address in Magento 2?
I want a feature in which user will be blocked by their Address.
Like I will add the address in block list of Magento Admin and then user will not be able to purchase anything if I add their address ...
0
votes
1
answer
296
views
How to add custom user role in the registration form process in magento 2?
I am new to magento platform. I am using magento version 2.4.2 for my project, I want to add the select user type field in registration form. When customer registers. Is it possible to add the custom ...
0
votes
0
answers
292
views
Magento 2 : How to disable COD payment method for specific users?
I have Magento 2.3.1 and I want to disable the cash on delivery (COD) method for specific users on the checkout page.
I have a list of users as email Ids. I want to prevent that all email ids from ...
0
votes
1
answer
285
views
How to make user register but not login in magento 2.4
I want to make user register and redirect to login page in Magento 2.4.
User not automatic login.
I have created a plugin for that and created a file ( app/code/Registration/Redirect/Plugin/Customer/...
4
votes
1
answer
216
views
how to add custom user agent with android in magento 2?
I want to add new custom theme with my Android in app user agent.
For exmaple i want to show new theme in my Android app
Is there any solution for this
0
votes
2
answers
472
views
Current user duration or current user page count in magento 2
I have a custom module . In my observer i have to know the current user duration & current user ip in fronted . So i write the code for user ip . Now if a user visit my website i want to get is ...
1
vote
0
answers
14
views
How to create user for special website level magento2?
Is there an option to create a user for a particular website when there is several website and store ?
Thanks
0
votes
2
answers
455
views
How to check which admin user has added the products in admin backend magento 2.3.2
I have multi websites site. I have multiple users with different user roles. Is there any way to save and check which admin user has added the product in admin panel backend.
1
vote
1
answer
228
views
How can I keep products in CART when guest user Leaves the Site. Magento 2
I want to keep the products in Add to cart for guest user when He leave the site how is it will be possible?? for example I'm a guest user n I add few products in Add to cart n then I close the ...
0
votes
1
answer
3k
views
Convert Base64 to Image file and save file directory : Magento 2
How to convert base 64 image format to image file and save image in local file directory in magento 2
public function setProfileImage($customerId, $base64)
{
if ($customerId)...
9
votes
8
answers
16k
views
Magento 2.3.2 Undefined offset Encryptor.php
Magento 2.3.2 community edition
Nginx 1.16
PHP 7.2.19
Steps to reproduce (*)
1.login magento store admin
{"0":"Notice: Undefined offset: 2 in
/www/web/demo/vendor/magento/framework/Encryption/...
1
vote
1
answer
553
views
M2 - Mass mailing reset password email
I want to send all the user the reset password email, we have over 6000 user so it can't be done by hand.
I found this script from this website:
<?php
//place this before any script you ...
4
votes
0
answers
401
views
Magento 2 Admin Notifications - what makes a notification popup when the admin user logs in?
Occasionally, an admin notification can pop up when an admin user logs into the Admin Panel.
The popup usually shows in an orange style box and can be closed easily, but not all poups show like this.
...
1
vote
0
answers
207
views
Migrating data to a new and clean installation in version 2.x
I would like to migrate all my Magento data to a new installation on version 2.3. We are currently on version 2.2.0 which has the Webkul Marketplace Extension.
Basically, all I want to extract from ...
0
votes
1
answer
73
views
Creating non-admin account
How to create non-admin accounts in Magento 2 which user can only add and edit products and categories.
2
votes
0
answers
37
views
Magento 1.14 admin page showing 404 error
We have a scenario where 5000 + admin user needs to access Magento 1.14 admin panel. It is not necessary that they will all need to access admin panel concurrently. If a single user logs in, the page ...
3
votes
1
answer
3k
views
Create admin user in magento 2 using commmand line [closed]
create admin user using command line...
php bin/magento admin:user:create --admin-user='username' --admin-password='password' --admin-email='admi[email protected]' --admin-firstname='Admin' --admin-...
0
votes
2
answers
85
views
Url of last order of current user
I need to implement a link which redirects to the url of the last order of the current user
How do I do that ?
I have a code that load the last order, but I need to get the URL
$orders = $...
-2
votes
2
answers
106
views
just show one name in list all i want to show all users names
list all user name and id in dropdown in magento 2 admin panel on product edit page.
Here's my code.
Please find where i mistake.
<?
/**
* Copyright © 2016 Magento. All rights reserved.
* See ...
1
vote
0
answers
244
views
Disable customer edit account
is there a way to block all modification allowed to an user account using XML or something else ?
I want to avoid my user to change password, addresses, mail etc...
0
votes
1
answer
156
views
EMERGENCY - unable to login to Admin panel; also - no users listed in database
Magento 1.9.1
Porto theme
I have had a problem twice before where I could not log into the Magento Admin panel with my user name and password. I had to use code in the mySQL to change the password ...
2
votes
1
answer
297
views
Check if signed In user has ordered something in magento 2 [closed]
how do I check the user order status is completed in a custom module?
1
vote
0
answers
397
views
Delete Session Files and Prevent Returning
I've already attempted to delete session files, but they come back one at a time and slowly... Huh? Can someone explain why please and help me permanently delete them please?
I can not locate them in ...
1
vote
0
answers
154
views
Magento 1.9 - get signed in user detail with token and custom API
I want to access Logged In user detail with Oauth 1 Token and Custom API.
I have an Angular app that I can log in with OAuth 1 but I need to show Firstname and Lastname and profile picture in my App.
...
0
votes
0
answers
51
views
How to limit products category based per user in magento 1.9.1.0?
I want to limit products category based per user. For example, If I have added free category under 10 products. Users only can order 1 to 7 products within free 10 products. Any idea regrading this?
0
votes
1
answer
40
views
Get arbitrary user attribute in Magento 2
I am trying to get certain user data by ID, and read that it's better not to use the object manager. So let's say I want to get a defined attribute, with this:
$user = $this->customerRepository-&...
1
vote
0
answers
104
views
Magento 2: User and admin sign up without password validation
Magento 2.1.7
User sign in with whatever password, also same admin logged in whatever password.
user and admin sign in without password validation
We are using godaddy dedicated server.
Two Case ...
0
votes
1
answer
2k
views
How to check if user is logged into the admin [duplicate]
I'm trying to create a script then trigger it from time to time to check "who" is logged in in admin (users), so I created this:
$adminUser = Mage::getModel('admin/user');
$users = $adminUser->...
0
votes
1
answer
728
views
Customer Deleted; No backup;
My client had deleted all customer accidentally. And unfortunate we don't have any backup.
Any way to recover a customer and their history order?
2
votes
3
answers
2k
views
List all user email ids based on role_name in magento 2?
In Magento 2,
We want to list all user email id's by using their role_name.
How we can achieve in one collection with optimal way?
Thanks!
1
vote
0
answers
994
views
Magento ERR_EMPTY_RESPONSE error
Just for a specific customer every time when I tried to modify some Personal Information in the backend(customer section), or if I tried with the same user to access the cart or the checkout page, I ...
-1
votes
1
answer
45
views
Magento2 user logged from php
In magento 2:
How can I see the user who is currently logged in from php? and
How can I login to a user from code and save it in the database?
0
votes
1
answer
407
views
Get the user in `catalog_product_save_after` observer
In Magento2.1, I create a observer use the event catalog_product_save_after, how can I get the user who saved the product in the observer.
The way in Get customer from save event observer Magento 2 ...
1
vote
1
answer
2k
views
User registration email
How can I edit user registration email of Magento2 ? I need to know the location of the email template which is send after an User registration.
1
vote
2
answers
4k
views
How can i get product thumbnail image, sku, name, details, if enter sku on custom page
I need products thumbnail image, SKU, name, details, if the customer enters sku on custom page.
0
votes
4
answers
2k
views
User login after Admin approval in Magento 1.9
User login after Admin approval in Magento 1.9
Admin need to approve the account before the users can browse the products and view the pricing for the products.
1
vote
2
answers
586
views
getUrl fails to generate proper key, so admin link redirects to dashboard
In my block file:
$link = $this->getUrl('admin/user/edit', ['user_id' => 2]);
It generates a link that looks right but it redirects to the dashboard and comparing the link in the admin to that ...
2
votes
1
answer
105
views
Mageto2 How to get created user id in API
I am creating a user by API. After creation:
How to get that user id?
How to set this user into de-active stage?
My code:
$registrationdata = [
'customer' => [
"email" => "...
0
votes
1
answer
2k
views
Magento 2: How to create API rest for users CRUD
I know that Magento has CLI for creating new users, but I need to do that via API rest. And extending all CRUD functionalities.
So I tried to create a new module for do that, but it's not working:
...
5
votes
1
answer
3k
views
Check user is logged in or not using Javascript
If user click on button in Product view page , we are redirecting to another url [ say 1.html] with help of js code : window.location.replace(responseData.redirect);. But i want to redirect only if ...
1
vote
1
answer
587
views
How do I create a user in the backend and allow them to only view?
They are allowed to view everything but not edit anything... Is this possible?
Here's what the function looks like now, perhaps i did something wrong?
public function preDispatch()
{
// ...
0
votes
1
answer
63
views
How to detect the Admin status of the current user?
Is there any way I can detect if the currently logged in user is an admin user?
I am trying to prevent non-admin users from processing orders.
Thanks your response is really appreciated.
0
votes
0
answers
45
views
User login does not work
My user login doesn't work. If I create an account, that works, but if I log off and try to log in again, no dice. I'm running this locally on the mac localhost web server. Does this have something to ...