5
votes
Accepted
Encrypt Customer data before save into the database and Decrypt Customer data after fetched from the database
Magento has a lot of logic to work with customer data directly with placeholders, etc. Unfortunately it's very difficult (and in some cases impossible properly) to encrypt all customer and address ...
2
votes
Magento 2 customer-data.js:90:23 [object Object]
In my opinion the accepted answer is only partially correct.
Clearing your localStorage will clear this issue for your specific user. However for other visitors that still have this value in ...
2
votes
Magento 2 : Rest Api for get customer id with token number
Full working example
YourModule/Customer/etc/di.xml
<preference for="YourModule\Customer\Api\AuthServiceInterface"
type="YourModule\Customer\Model\AuthService&...
2
votes
Redirect Customers to specific page after Login in Magento 2?
It is controlled in
vendor/magento/module-customer/Controller/Account/LoginPost.php
if (!empty($login['username']) && !empty($login['password'])) {
try {
$customer = $this->...
2
votes
Can you see which user handled/proces which customer order?
First you need to create a plugin.
di.xml
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<plugin name="sales_order_grid_collection&...
1
vote
Accepted
How to override Validation.xml from module-customer
You can override the whole class or use plugin to override the function only. I would prefer plugin.
To override the class, in your etc/di.xml add this:
<preference for="Magento\Customer\...
1
vote
Some old random orders are associated to newly registered customer Magento 2.3.5-p2
Apparently, the problem is known by Magento.
The problem was in the file: app/code/Magento/Persistent/Model/QuoteManager.php
It has been corrected in 2.3.4-p2.
But otherwise, the bug was a bit "...
1
vote
How to verify the email exist or not in magento2 api
Action: POST
URL: <Host_Url>/rest/default/V1/customers/isEmailAvailable
HEADER: NULL
Request Payload:
{
"customerEmail": "test@test.com",
"websiteId": &...
1
vote
Magento 2 - Customer Type Table SQL
This is too vague question to advise anything concrete.
Customer model is based on EAV(Entity Attribute Value) and related customer data stored in tables like customer_entity_*
EAV metadata for link ...
1
vote
Accepted
Magento 2 - where to find "confirmation" attribute for customer?
It is static attribute you could not find it on above three table.
it would save in "customer_entity" table itself.
Execute Below query for more details.
SELECT entity_id,confirmation,email ...
1
vote
Add image attachment on already existed default shipping email magento 2.4
You can modify the content of an email via the template
Admin Panel > Marketing > Communications > Email Templates.
Then Add your image in the template content
Sources : https://magefan.com/...
1
vote
Get customer custom attribute value without loading the customer
This is not correct method but you have asked the question I answered it.
1st method:
You can load the attribute's value by attribute's code/Id(static) with customer id(dynamic get from session). For ...
1
vote
Accepted
How to get the customer email by customer id in magento2 admin grid
Create File:
Vendor\Module\Ui\Component\Listing\Column\CustomerEmail.php
use Magento\Framework\UrlInterface;
use Magento\Framework\View\Element\UiComponentFactory;
use Magento\Framework\View\Element\...
1
vote
Redirect Customers to specific page after Login in Magento 2?
If you want to redirect the Customer to the account dashboard after login.
Log in to Admin Panel
Go to Stores > Configuration
Under Customers, select Customer Configuration
Expand the Login ...
1
vote
How to Transfer Guest Order To Customer Account after registration in magento2 Programatically only
Obtain the customer and the order from repositories and then:
$order->setCustomerId($customer->getId());
$order->setCustomerIsGuest(0);
$order->setCustomerFirstname($customer->...
1
vote
How to Transfer Guest Order To Customer Account after registration in magento2 Programatically only
Using SQL -
UPDATE sales_order SET customer_id = {YOUR CUSTOMER ID}, customer_is_guest = 0 where entity_id = {YOUR ORDER ID};
UPDATE sales_order_grid SET customer_id = {YOUR CUSTOMER ID} where ...
1
vote
Magento 2.4.2 - Not able to get quote using customer id with cronjob
Need to inject in your construct \Magento\Quote\Model\QuoteFactory
<?php
namespace RH\Helloworld\Cron;
class CustomCronQuote
{
protected $quoteFactory;
public function __construct(
...
1
vote
Magento 2 A customer with the same email already exists in an associated website error
First you have to check customer in website exist or not ?
public function __construct(\Magento\Customer\Api\AccountManagementInterface $customerAccountManagement,
\Magento\Customer\Model\...
1
vote
Accepted
Magento 2 where session data is stored (see example)
In Magento 2.4, the mage-cache-storage Local Storage Key stores data about the Visitor or Customer, but not about the cart. The following fields are available about the Visitor/Customer (if known):
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
customer × 2075magento2 × 858
magento-1.9 × 356
customer-account × 180
login × 131
orders × 111
attributes × 98
customer-attribute × 97
magento-2.1 × 91
event-observer × 85
checkout × 82
admin × 78
magento-1.8 × 77
customer-address × 65
email × 63
magento-1.7 × 62
magento2.3 × 59
database × 58
api × 58
php × 55
session × 55
register × 53
product × 51
module × 47
collection × 47