Magento 2

Declarative Schema in Magento 2

Declarative Schema in Magento 2

4 years ago
Declarative schema is a new concept introduced in Magento 2.3. It makes the smooth process of database schema operations with fewer coding and execution steps. Before Magento 2.3, the following script files are used in the Setup directory of the module to perform DB management: InstallSchema.php: runs script when module is installed to the setup […]
Read More

How to create custom module in Magento 2

4 years ago
The Magento module is a structural element that handles the flow of functionality. We can use a module for third-party module customization, override default Magento functionality, and implement new features. There are controller, block, model, etc, views directories to manage the business feature. There are two directories where you can place your modules, app/code, and […]
Read More

Check if customer is logged in using js component – Magento2

4 years ago
Easy way to check whether customer logged in or not via customer Js component in phtml file. <div data-bind="scope: 'customer'"> <!-- ko if: customer().fullname --> Logged In customer <!-- /ko --> <!-- ko ifnot: customer().fullname --> Notlogged In customer <!-- /ko --> </div> <script type="text/x-magento-init"> { "*": { "Magento_Ui/js/core/app": { "components": { "customer": { "component": […]
Read More

Create your account

chatsimple