3
votes
Customer name missing in transaction mail in 2.4.6?
{{trans "%customer_name," customer_name=$order.getCustomerName()}}
Change this line to:
{{trans "%customer_name," customer_name=$order_data.customer_name}}
Additionally, remove ...
2
votes
Accepted
Custom Customer Address field not passing validation
When adding a custom customer attribute or custom customer address attribute, to allow Magento to save it you need to assign it to the customer attribute set.
So, in your code, after $customerSetup-&...
1
vote
Accepted
Call to a member function isGlobalScopeEnabled() on null
Maybe an issue with your theme level: app/design/frontend/YourThemeVendor/YourTheme/Magento_Customer/layout/default.xml
Compare this file with vendor/magento/module-customer/view/frontend/layout/...
1
vote
Magento2: How to get customer zip code based on the customer location (Guest Users)
i think you need to work something like this but this code is not tested lets try it
// get-location.js
// Function to get the user's location
function getUserLocation() {
if ("geolocation&...
1
vote
Accepted
Admin customer spam
After removing the customers from the database, you must reindex the Customer Grid indexer to remove them from the customer grid in the admin interface.
To do this, run the following command:
bin/...
1
vote
Accepted
Magento 2 create customer account on frontend takes too long
To identify this issue you can follow below steps :
Disable any third-party extensions and check if the slow account creation issue persists.
If the problem is sorted out re-enable the extensions one ...
1
vote
Inventory stock update while using payment gateway
Try this all steps
1.app/code/Custom/Module/registration.php:
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'...
1
vote
Accepted
Login as a Customer via admin is not showing while edit a customer in magento 2
First check whether the following modules are enabled or not:
Magento_LoginAsCustomer
Magento_LoginAsCustomerPageCache
Magento_LoginAsCustomerLogging
Magento_LoginAsCustomerLog
...
1
vote
Magento 2.4 - Move product-add-form to customer div class
Element product.add.form doesn't exist, you can try product.info.addtocart instead.
1
vote
Accepted
Mgento Admin Grid Multi select "," seperated value filter not working in custom grid Magento 2?
Vendor\Module\Model\ResourceModel\Module\Collection.php
namespace Vendor\Module\Model\ResourceModel\Module;
use Magento\Framework\Data\Collection\EntityFactoryInterface;
use Psr\Log\LoggerInterface;
...
1
vote
Accepted
Check whitespaces and remove in the First Name Customer Registration in FE, BE
Create a new module and use plugin to achieve your requirement.
Assume the Vendor name is TuVan and the module name is Customer, take the following steps:
Step 1: Create app/code/TuVan/Customer/...
1
vote
Accepted
Send an email with the customer data to the Customer Support email address configured in Magento 2
Reference link
You can send notification with the use of observer. You need to have email template id , sender information and receiver information.
Please follow below steps.
Step 1: Please create ...
1
vote
Accepted
Get customer custom attribute value without loading the customer
You can retrieve customer custom attributes from the customer session; there's no need to load the customer every time in Magento. Please check the code below.
protected $sessionFactory;
public ...
1
vote
Magento 2: How to set Max Length for Street Address?
To build on the solution from @Jackson, the plugin code can be simplified and implemented to cover however many address lines have been configured.
public function afterProcess(
\Magento\Checkout\...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
customer × 2108magento2 × 880
magento-1.9 × 353
customer-account × 187
login × 134
orders × 113
attributes × 101
customer-attribute × 94
magento-2.1 × 91
event-observer × 86
checkout × 84
magento-1.8 × 77
admin × 77
customer-address × 67
email × 66
magento2.3 × 62
magento-1.7 × 62
database × 60
rest-api × 60
api × 58
php × 55
session × 54
product × 53
register × 52
module × 48