Skip to content

magento man

Magento create customer and force customer id

I have magento 2.4.3. I need to do a customer migration and I should force the entity_id but I get this error No such entity with customerId = 40 I tried this code: $customer = $this->_objectManager->get(‘MagentoCustomerApiDataCustomerInterfaceFactory’)->create(); $customer->setWebsiteId($websiteId); $customer->setEmail($email); $customer->setFirstname($cliente[‘nome’]); $customer->setLastname($cliente[‘cognome’]);… Read More »Magento create customer and force customer id

REST API POST error

I’m trying to post: { “product”: { “sku”: “a”, “view_code”: “english”, “product_type”: “simple”, “attribute_set_id”: “4”, “price”: 25, “status”: 1, “visibility”: 1, “extension_attributes”: { “category_links”: [ { “position”: 0, “category_id”: “11” }, { “position”: 1, “category_id”: “12” }, { “position”: 2,… Read More »REST API POST error