Skip to content

Create Multiple Customers in a single request #3175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 729 commits into from
Closed

Conversation

bojjaiah
Copy link

In Magento 1 I can create multiple customers by using below code.

public function saveMultiCustomers($customer_Data){

foreach ($customer_Data as $customerData) {
            try {
                $customer = Mage::getModel('customer/customer');
                foreach($customerData as $k => $v){
                    $method_name = 'set' . $k;
                    $customer->$method_name($v);
                }
                $customer->save();
            }catch (Exception $ex){

            }
        }

}

I Magento 2 this is not working. Is there any way to do this?

Thanks in advance.

Yaroslav Onischenko and others added 30 commits October 28, 2015 12:58
[Merchant beta][Nord] Import/Export bugs fixes
 - port fixes for MAGETWO-43787 and MAGETWO-43253 into merchant_beta
 - added translate tags to xml template
 - added missing checkout phrases to translation files
[API] [merchant_beta] MAGETWO-44275: Some layout xml files doesn't have translations
…exception logs because of layout errors in the Magento 2 core code

 - Fixed "Broken reference" log entry and Msrp display for minicart subtotal section.
…ore view level data causes data corruption
 [Merchant beta] [Nord] Bug fix
 - don't use SID in building URL for purge
…Sales > Transactions and Order view > Transactions

- Merge of solution from MAGETWO-43948.
…SSL using the blank theme

- Merge of solution MAGETWO-42776
isitnikov and others added 27 commits January 16, 2016 22:20
- Stabilization fix for unit tests
- Stabilization fix for javascript tests
- Stabilization fix for javascript tests
- Stabilization fix for javascript tests
- Stabilization fix for javascript tests
- Stabilization fix for javascript tests
- Stabilization fix for installation
- Removed html tags
- Added check to returnUrl action
- Stabilization fix for javascript tests
[SUPPORT] Merchant Beta Security Bundle (MDVA-57)
@bojjaiah bojjaiah closed this Feb 4, 2016
@bojjaiah
Copy link
Author

bojjaiah commented Feb 4, 2016

solved myself.

magento-engcom-team pushed a commit that referenced this pull request Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.