I am using email or phone number login option Magento 2.I added phone number field below the email and I need to validate phone number to be unique like email in Magento 2.How can I programmatically achieve this?
You may also like
Learn how to use Google Fonts and the font-display property to create visually appealing and performant websites. Continue reading How to use […]
CHICAGO, Mar 30, 2012 (BUSINESS WIRE) — Braintree ( www.braintreepayments.com ), the Web’s fastest growing payment gateway, announced today that it launched […]
In May 2021, I purchased a 2.5″ SATA SSD for my HP Elitebook 840 G3 laptop. The SSD is “Samsung 870 EVO […]
Hello and this is my code: $imgURL = ‘path/to/my/image.png’; $fileSystem = $objectManager->create(‘MagentoFrameworkFilesystem’); $mediaPath = $fileSystem->getDirectoryRead(MagentoFrameworkAppFilesystemDirectoryList::MEDIA)->getAbsolutePath(); $product->addImageToMediaGallery($mediaPath.’catalog/product’.$data[‘thumbnail_image’],[‘thumbnail’, ‘swatch’], false, false); $product->setThumbnail($mediaPath.’catalog/product’.$imgURL); $product->save(); What […]