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 ...
Pruthvi Raval's user avatar
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-&...
Tu Van's user avatar
  • 6,483
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/...
Sohel Rana's user avatar
  • 35.6k
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&...
Pramod's user avatar
  • 1,939
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/...
Tu Van's user avatar
  • 6,483
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 ...
Jigar Karangiya's user avatar
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, '...
Ansari's user avatar
  • 435
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 ...
Mohit Kumar Arora's user avatar
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.
Shou's user avatar
  • 130
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; ...
Dolly's user avatar
  • 126
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/...
Tu Van's user avatar
  • 6,483
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 ...
Ronak Rathod's user avatar
  • 6,249
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 ...
Msquare's user avatar
  • 8,465
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\...
Adam Lavery's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible