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

How to add intlTelInput in Magento Checkout

International phone plugin : link I added in my requirejsconfig.js var config = { map: { ‘*’: { customDisplayCheckout: ‘Amasty_CheckoutCore/js/custom’, }, paths: { “intlTelInput”: ‘Amasty_CheckoutCore/js/intlTelInput’, “intlTelInputUtils”: ‘Amasty_CheckoutCore/js/utils’ }, shim: { ‘intlTelInput’: { ‘deps’:[‘jquery’, ‘knockout’] } } } }; I also… Read More »How to add intlTelInput in Magento Checkout