kyra wrote:When debtors are exported and created in Magento, they are created with website_id 0 (which means they can't login). Is there any way to set it to 1 by default?
Inside the Magento Integration plugin, there is a method "CreateMagentoCustomers" - it's responsible for creating Magento customers.
Within that (about line 8,130) - the following lines appear:
- Code: Select all
// customer does not exist, create in Magento
MagentoServiceReference.customerCustomerEntityToCreate customerEntityForCreate = new MagentoServiceReference.customerCustomerEntityToCreate();
You just need to set the store_id of the customerEntityForCreate variable after the above - i.e.:
- Code: Select all
// customer does not exist, create in Magento
MagentoServiceReference.customerCustomerEntityToCreate customerEntityForCreate = new MagentoServiceReference.customerCustomerEntityToCreate();
customerEntityForCreate.store_id = 1;
Mike