30 votes

How to show address fields in register

Create local.xml file (if it does not exist already) in [your_package]/[your_theme]/layout/ folder and add following code: <customer_account_create> <reference name="...
user avatar
23 votes
Accepted

SodiumChachaIetf::decrypt() must be of the type string, boolean

Go to Below file: vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php And Update Below Code on decrypt() method: $plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt( $...
user avatar
  • 5,134
21 votes
Accepted

Magento 2 - Redirect user to specific page after register

I think the problem is that your redirect is occuring before the default redirect and hence has no effect. Here's a module that does the job: Module directory structure: | registration.php | +--...
user avatar
  • 8,819
14 votes

SodiumChachaIetf::decrypt() must be of the type string, boolean

Looks like you are using the wrong crypt key. You should keep the key from your previews configuration: app/etc/local.xml [Magento 1.x] <?xml version="1.0"?> <config> <global> ...
user avatar
10 votes

Magento 2 - Add custom attribute in customer registration form

If your install data script successfully installed your custom attribute, now you just need to override addition information phtml file and set your custom attribute in that. Create Vendor/TestModule/...
user avatar
6 votes
Accepted

Customer create account template comes from path "persistent/". Why is that?

Starting with version CE-1.6 (I think) there is a new module added to Magento. Mage_Persistent. This offers a "Remember me" feature when you log in. If this is enabled a cookie is set and the user is ...
user avatar
  • 196k
6 votes
Accepted

Is it possible to move customer Telephone number from billing address fields to customer create account section

It's possible via layout XML In your theme's local.xml, add the following lines (before </layout>): <customer_account_create> <reference name="customer_form_register"> <...
user avatar
6 votes

How to check email id is exist or not before registration in magento

$customer = Mage::getModel('customer/customer'); $customer->setWebsiteId(Mage::app()->getWebsite()->getId()); $customer->loadByEmail($customer_email); if($customer->getId()) { "...
user avatar
6 votes
Accepted

*Completely* Disabling Frontend Customer Registration

You can simply use event controller_action_predispatch_customer_account_create to disable registration. Register the event-observer <events> <...
user avatar
  • 4,632
6 votes

*Completely* Disabling Frontend Customer Registration

You can add custom URL Rewrite Rules in admin panel as well. check below example to redirect customer/account/create to customer/account/login
user avatar
  • 2,193
6 votes
Accepted

How to make checkbox mandatory on register page in Magento 2

data-validate="{required:true}" will do the trick <div class="field choice newsletter"> <label for="custom-terms" class="label"><span><?php /* @escapeNotVerified */ echo ...
user avatar
6 votes
Accepted

Adding a required unchecked check box for Terms and Conditions on new account registration

Try following way: Step 1: VendorName/ModuleName/view/frontend/layout/customer_account_create.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="...
user avatar
  • 34.4k
6 votes

SodiumChachaIetf::decrypt() must be of the type string, boolean

Modifying the core class is not recommended at all. The issue is not with the class vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php But the issue with the crypt key added to your app/...
user avatar
5 votes
Accepted

"Please make sure your passwords match" - Password error in Checkout with New Registration form

are you absolutely sure the passwords match? turn the fields into text fields to test it. Also take a look at how the retype password validation works. In the file /js/prototype/validation.js there is ...
user avatar
  • 196k
5 votes
Accepted

Customer Account Registration Form

You cannot split the form into 2 columns via the layout xml. The term "columns" has a different meaning it Magento. A column acts like a container for the elements inside it and you need all the ...
user avatar
  • 196k
5 votes

How to make the same name of the customer only once registered

Many people have the same name so I would strongly advise against trying to block users! If you believe your site is being targeted by bots I would suggest you implement Google Recaptcha on the ...
user avatar
  • 2,429
4 votes

Add custom filed in default registration form magento

If you do a Google Search on Magento customer attributes you'll get quite a large selection of attributes. AheadWorks customer attributes Customer Information Collection Amasty Customer Attributes I'...
user avatar
  • 37.4k
4 votes
Accepted

How to add extra fields in Registration Form?

Go to http://www.silksoftware.com/magento-module-creator/#.VG-SJ_nF9Zo and using its Module Creator to create a new module called "YourCustomerAttribute". Set "Add Customer Attribute" to YES Make ...
user avatar
  • 7,199
4 votes

Register Checkbox Condition and Terms

Add this in register.phtml <input type="checkbox" id="something" name="something" value="1" title="something" class="checkbox required-entry">
user avatar
4 votes
Accepted

How to assign a group to user based on their email id on registration

you can do this by magento event Observer and find a trigger an observer on customer save events and change customer group accordingly. You can try with this two Event customer_save_before ...
user avatar
  • 75.8k
4 votes
Accepted

Registration on Success Page

Judging by your screenshot, you are using custom theme. That’s why you need to localize this page (success page) first. Make sure that it has the call getChildHtml. If there is not such a call, then ...
user avatar
  • 3,728
4 votes
Accepted

Internal server error 500 in particular pages

In root of magento, you can see index.php file, you can un comment these lines in that file : #ini_set(‘display_errors’, 1);, Then you can see the real errors that causing the problem.
user avatar
4 votes
Accepted

How to remove firstname, lastname validation (magento 1.9)

You need to change the database value for this attribute Table name : eav_attribute In this table find attribute_code as firstname and change the value of is_required to 0. Do same for lastname.
user avatar
4 votes
Accepted

how to check if current page is login page and how to check current page is registration page

You can call below function in your template and get page info in magento 1 , $request = $this->getRequest(); $modulename = $request->getModuleName(); $controller = $request->...
user avatar
4 votes
Accepted

Magento 2 set & get Registry values

The registry is getting cleared after the server sends a response. Each new request starts with an empty registry. If you want to transfer data from one request to another you should use the session ...
user avatar
  • 1,479
4 votes
Accepted

How to get registered customer details in order success page(success.phtml) in M2.2?

Try to use below code: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('Magento\Sales\Model\Order')->load($block->getOrderId()); // pass ...
user avatar
4 votes

Adding a required unchecked check box for Terms and Conditions on new account registration

The accepted answer works, but only makes sense if you want to really create your own code. If you want to use magento native agreements that are also used in checkout, do the following: ...
user avatar
  • 156
4 votes

SodiumChachaIetf::decrypt() must be of the type string, boolean

Go to this file: vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php And update below code: public function decrypt(string $data): string { $nonce = mb_substr($data, 0, ...
user avatar
  • 51
4 votes

How to add user in magento by custom code?

This code for creating customers in Magento 2: $data = array( 'website_id' => 0, 'email' => 'sample@gmail.com', 'firstname' => 'Mac', 'lastname' => 'Hamon', 'group_id' ...
user avatar
  • 165
4 votes
Accepted

How to add user in magento by custom code?

One of the example of creating customer $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $appState = $objectManager->get('\Magento\Framework\App\State'); //$appState-&...
user avatar

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