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

Composer update created error: require(vendor/magento/composer-root-update-plugin/registration.php): failed to open stream: No such file or directory

I have updated Composer to 2.4.4 as a prerequisite to updating Magento to 2.4.5, however now I’m getting errors in SSH when trying to run any other command and HTTP on a page execution: SSH: In AutoloadGenerator.php line 1351: require(/home/—/web/—/public_html/vendor/magento/composer-root-update-plugin/registration.php):… Read More »Composer update created error: require(vendor/magento/composer-root-update-plugin/registration.php): failed to open stream: No such file or directory