Author: admin

How can you write a custom module in Magento 2?

For Develop Magento to custom Module we have to create some necessary files. We have to registered all Module in Magento so that we can easily Enable or Disable Module and not effect to other module as well during customization and rectify and error or issues. For example: app/code/Vendor/module Steps: Create the folder of module […]

Read More

Magento 2 Interview Questions

What are the differences between EAV and Flat model? What is Plugins? What is Events Observers? What are different versions of magento 2 ? How can you write a custom module in Magento 2? How can you improve the performance of Magento 2? What is dependency injection in Magento 2? Which command is used to […]

Read More

Change magento 2 admin password command line

Reset Magento 2 admin password via command line Run the below command: bin/magento admin:user:create –admin-user=”admin” –admin-password=”testpsw” –admin-email=”xxx@gmail.com” –admin-firstname=”yourname” –admin-lastname=”lastname” Reset Magento 2 admin password via Email Change Magento 2 admin password using the system admin. Go to “Admin Panel” Click “Forgot Password” Enter the Email address and click the “Retrieve password” button. Easily set new […]

Read More

What are the differences between EAV and Flat model?

What are the differences between EAV and Flat model? EAV is an entity attribute value database model, where data is fully in normalized form. Each column data value is stored in their respective data type table. For example product save in deferrent tables. product ID is stored in catalog_product_entity_int table, product name in catalog_product_entity_varchar, product […]

Read More

Your session has expired” On Clicking Add To Cart In Magento 2.3 Localhost

Use 127.0.0.1 instead of localhost UPDATE core_config_data SET value = ‘http://127.0.0.1/demo/’ WHERE core_config_data.path = ‘web/unsecure/base_url’; UPDATE core_config_data SET value = ‘http://127.0.0.1/demo/’ WHERE core_config_data.path = ‘web/secure/base_url’; Your session has expired” On Clicking Add To Cart In Magento 2.3 Localhost Run the command: php bin/magento cache:flush

Read More

Custom Form Validation Magento2

<script type=”text/x-magento-init”> { “#custom-form-id-new”: { “validation”: {} } } </script>   <form id=”custom-form-id-new” action=”” method=””> <input data-validate='{“required”:true}’ width=”200″ type=”text” placeholder=”Name” name=”name”> <input data-validate=”{required:true, ‘validate-email’:true}” type=”text” placeholder=”Email” name=”email”> </form> Magento rules: max-words min-words range-words letters-with-basic-punc alphanumeric letters-only no-whitespace zip-range integer vinUS dateITA dateNL time time12h phoneUS phoneUK mobileUK stripped-min-length email2 url2 credit-card-types ipv4 ipv6 pattern allow-container-className […]

Read More