7

You need to create a module and here is installData.php: namespace Barcode\Unique\Setup; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\ModuleDataSetupInterface; class InstallData implements InstallDataInterface { /** * Customer setup factory * * @var \...


7

If you want add new field, in customer account, you need to override the register.phtml in your custom theme. Create custom theme, then create register.phtml in following path app/design/frontend/vendor/theme/Magento_Customer/templates/form/register.phtml Then, copy codes, from module-customer/view/frontend/templates/form/register.phtml and paste to above ...


7

If your Magento doesn't support CAPTCHA or you don't want to active it, you can modify the validate() function (line 709) /var/www/app/code/core/Mage/Customer/Model/Customer.php to block http string in customer name: if (preg_match('/http/', $this->getFirstname())) { $errors[] = Mage::helper('customer')->__('Password minimal length must be more %s'...


6

Magento has the feature to verify the authenticity of newly registered customers before activating their account. You can set confirmation setting to avoid Fake entries:- **– Go to System -> Configuration -> CUSTOMERS -> Customer** Configuration **– Click => Create New Account Options – Set Require Emails Confirmation => Yes – Save Config** ...


6

After some research and comments of Phillipp Sander, I have concluded that cacheable="false" is to good approach to make any page exclude from full page cache. For login page, I have updated customer_account_login.xml file in my theme and updated this line: <block class="Magento\Customer\Block\Form\Login" name="customer_form_login" template="...


5

You can create a customer with order Id on checkout success Use checkout_onepage_controller_success_action observer to create customer by order id. If customer email is already registered then, order assigned to the registered customer. Here is the full module code for creating a new customer on order success. This module creates a new customer with order ...


4

Create customer_account_create.xml file your current active theme For eg. app/design/frontend/{YOUR_PACKAGE}/{YOUR_THEME}/Magento_Customer/layout/customer_account_create.xml After add below code for display address field in registration form <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" ...


4

You need to change two places Comment password confirmation field in Magento/Customer/view/frontend/templates/form/register.phtml <div class="field confirmation required"> <label for="password-confirmation" class="label"><span><?php /* @escapeNotVerified */ echo __('Confirm Password') ?></span></label> ...


4

Russian Email addresses (just registered). We have had problems with being blacklisted on different blacklists recently even though we NEVER EVER sent any spam whatsover! Could this be connected? Sure all of this is connected, if your website send a 'Welcome message' to new users, plus a 'Thank you for subscribing to our newsletter' to people that did ...


4

i have get the reference URL for your solution... please look at this https://magecomp.com/blog/send-email-to-admin-after-customer-registration-magento-2/ in Your Observer you need to replace setTemplateVars(['post' => $postObject]) with setTemplateVars(['customer' => $postObject]) for send the customer name and email Id to mail. Let me know ...


4

Try to look at the customer eav attribute with select value for frontend_input column in eav_attribute table, make sure the source_model column value is not null or empty or it fills with correct class. You can set value for frontend_input column to int if you wanna work on the source_model later


3

You should use the create the plugin for the class Magento\Customer\Model\EmailNotification You need to create plugin on newAccount. create around method aroundNewAccount() on newAccount() and stop the mail send depend on your store. public function aroundNewAccount( \Magento\Customer\Model\EmailNotification $subject \Closure $...


3

you can find the new account email template at below path /your_magento/vendor/magento/module-customer/view/frontend/email/account_new.html You can find other customer related email template in same folder


3

Just wanted to add a bit of information as an answer here on di.xml, what it is, and some new concepts of Magento 2 introduced by the file. I get this doesn't completely answer the question, but Joshua looks to have missed this file out and if you read our discussion in the comments you can see that he wasn't sure of the file because he hadn't used it before....


3

Just Try to below code : {{block class="Magento\Customer\Block\Form\Register" template="Magento_Customer::form/register.phtml"}}


3

I have found a solution you can remove the validation class from the phtml file. Copy the file : \vendor\magento\module-customer\view\frontend\templates\address\edit.phtml into your theme as : app\design\frontend\{VendorName}\{ThemeName}\Magento_Customer\templates\address\edit.phtml change the validation class in the line 53 from : class="input-text ...


3

You can override this file vendor/magento/module-customer/view/frontend/templates/widget/gender.phtml in your custom theme here app/design/frontend/Vendor/Theme/Magento_Customer/templates/widget/gender.phtml Content for this file is.. <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** @var ...


2

1 Override below template to your theme \vendor\magento\module-customer\view\frontend\templates\widget\name.phtml Find Below <input type="text" id="<?php /* @escapeNotVerified */ echo $block->getFieldId('firstname') ?>" name="<?php /* @escapeNotVerified */ echo $block->getFieldName('firstname') ?>" ...


2

Kindly follow the below steps: I am posting the answer as per below considerations 1) module name: Ewall_Test II) Attribute code: custom_mobile Step 1: create a module using silk software with customer attribute (which i have posted first answer) Step 2: app/design/frontend/rwd/default/template/persistent/checkout/onepage/billing.phtml Keep the below ...


2

Go to following location and comment the below code <div class="field confirmation required"> <label for="password-confirmation" class="label"><span><?php /* @escapeNotVerified */ //echo __('Confirm Password') ?></span></label> <div class="control"> <input type="password" ...


2

Magento 2 by default only comes with user e-mail verification. So you'll either have to built the approval functionality yourself or use a 3rd party plugin like https://marketplace.magento.com/eh-customer-approve.html. Edit: If you're just getting started on module development you can check out the official Magento 2.2.x documentation here: http://devdocs....


2

I can see you have form_keys enabled throughout your checkout and login pages but don't have one output on the customer registration form. You need to amend your custom registration form to include the form_key before the closing tag of the form: <?php echo $this->getBlockHtml('formkey') ?> Template file should is: app/design/frontend/<...


2

$customer=Mage::getModel('customer/customer')->load($observer->getEvent()->getCustomer()->getId()); $email=$customer->getEmail(); $address = $customer->getAddresses(); foreach ($address as $item) { $country=$item->getCountry(); $zip=$item->getPostcode(); $street=$...


2

I assume that all the attributes you want to show in the registration form are already introduced in Magento. To show the address fields: create the file customer_account_create.xml under app/design/frontend/[themepackage]/[theme]/Magento_Customer/layout folder. Now paste below code in this file: <page xmlns:xsi="http://www.w3.org/2001/...


2

Can magento have a register form with address input Yes, there is a flag you can set via layout XML: <block name="customer_form_register"> <action method="setShowAddressFields"><value>1</value></action> </block> It is only evaluated in the template, so anybody could create a request to create customer accounts with ...


2

You can enable a Magento Captcha for a register form in System > Configuration > Customers > Customer Cunfiguration > Captcha, you can use also a Google recaptcha


2

data-validate="{required:true}" will do the trick <div class="field choice newsletter"> <label for="custom-terms" class="label"><span><?php /* @escapeNotVerified */ echo __('Do you agree ?') ?></span></label> <input type="checkbox" data-validate="{required:true}" name="custom-terms" title="<?php /* @...


2

Magento 2 has added a new layer of protection for the Customer Portal area same as Magento 1. CAPTCHA, which is disabled by default, can be enabled from the Dashboard panel. This feature can help blocking spam and bots from logging into your website and it will effectively increase the security of the store. CAPTCHA can be configured from backend and you ...


2

You should create a new custom customer attribute programmatically and not as a field in customer_entity table, it is not a right way to add static columns in customer_entity table unless no other way is available. I used below code to add Mobile Number. Create file at below path: Vendor/Module/Setup/InstallData.php <?php /** * Copyright © 2016 ...


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