skip to Main Content

How to check email aleady exist using ajax in magento 2

Controller Email.PHP ` public function execute() { $customerEmail=$this->getRequest()->getParam('email'); $objectManager=MagentoFrameworkAppObjectManager::getInstance(); $CustomerModel = $objectManager->create('MagentoCustomerModelCustomer'); $CustomerModel->setWebsiteId(1); $CustomerModel->loadByEmail($customerEmail); $userId = $CustomerModel->getId(); if ($userId) { return 1; } else { return 0; } }` j Query jQuery(function() { var emailAddress = jQuery('#email_address'); emailAddress.on("change", function ()…

VIEW QUESTION

adding a new theme in magento2

i have uploaded the files of the new theme bought from https://themeforest.net/user/codazon . But don't know where to move each individual files to the correct directories in order to add this new theme. Below is the files inside the new…

VIEW QUESTION

Magento 2 : Display Loader While Ajax call on Column row action?

Grid xml column: <column name='actions' class='MyTestUiComponentListingColumnsFeedsAdvancedActions'> <argument name='data' xsi:type='array'> <item name='config' xsi:type='array'> <item name='component' xsi:type='string'>My_Test/js/grid/columns/actions</item> <item name='dataType' xsi:type='string'>text</item> <item name='label' xsi:type='string' translate='true'>Actions</item> <item name='sortOrder' xsi:type='number'>90</item> </item> </argument> </column> Actions.js define( [ 'jquery', 'underscore', 'mageUtils', 'uiRegistry', 'Magento_Ui/js/grid/columns/actions', 'Magento_Ui/js/modal/confirm' ], function ($,…

VIEW QUESTION

Error in magento 2.2 admin panel login

{"0":"Source class "TemandoShippingModelResourceModelCheckoutAddressInterface" for "TemandoShippingModelResourceModelCheckoutAddressRepository" generation does not exist.","1":"#0 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/Code/Generator.php(112): MagentoFrameworkCodeGenerator->tryToLoadSourceClass('Temando\Shippin...', Object(MagentoFrameworkObjectManagerCodeGeneratorRepository))n#1 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/Code/Generator/Autoloader.php(35): MagentoFrameworkCodeGenerator->generateClass('Temando\Shippin...')n#2 [internal function]: MagentoFrameworkCodeGeneratorAutoloader->load('Temando\Shippin...')n#3 [internal function]: spl_autoload_call('Temando\Shippin...')n#4 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/ObjectManager/Relations/Runtime.php(38): class_exists('Temando\Shippin...')n#5 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/Interception/Config/Config.php(166): MagentoFrameworkObjectManagerRelationsRuntime->has('Temando\Shippin...')n#6 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/Interception/Config/Config.php(189): MagentoFrameworkInterceptionConfigConfig->_inheritInterception('Temando\Shippin...')n#7 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/Interception/ObjectManager/Config/Developer.php(61): MagentoFrameworkInterceptionConfigConfig->hasPlugins('Temando\Shippin...')n#8 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(47): MagentoFrameworkInterceptionObjectManagerConfigDeveloper->getInstanceType('Temando\Shippin...')n#9 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Temando\Shippin...')n#10 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(144): MagentoFrameworkObjectManagerObjectManager->get('Temando\Shippin...')n#11 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array, 'Temando\Shippin...', NULL, 'checkoutAddress...', 'Temando\Shippin...')n#12…

VIEW QUESTION

Getting error 'Area is already set' while changing theme for Magento 2.2.4

I have copied magento-frontend-luma theme and change vendortheme name and paste in design folder magento2appdesignfrontendWebmynepruthvi In registration.php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::THEME, 'frontend/Webmyne/pruthvi', __DIR__ ); In theme.xml <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd"> <title>Webmyne Pruthvi</title> <parent>Magento/blank</parent> <media> <preview_image>media/preview.jpg</preview_image> </media> </theme> In composer.json { "name": "webmyne/pruthvi", "description":…

VIEW QUESTION
Back To Top
Search