Magento 2 has a rich in feature to add categories as it comes with default root category. You can create your own category and name as your wish. First and foremost you need to login magento dashboard. Navigate to products > Categories as shown in fig. 1.0 There is already a root category by…
I have already posted a video on How To Create A Hello World Module and I believe you can easily create a custom module. You can clone a sample “Hello World” module code from Github. Today, in this blog, I will be diving more inside how to create a custom database table in magento 2.…
You can create a skeleton of module from Module Generator. After creating a module structure update your module to database using command line code :
1 |
php bin/magento setup:upgrade |
To every magento project there needs certain level of customization on overriding magento core classes. Editing and adding our custom code on magento core classes is a bad practice…
What is Helper ? Helpers are classes with collection of classes that allows us to perform common functionalities and features that can be accessed throughout Magento site. Helper functions can be accessed from controllers, views, models, templates where common functionality is to be obtained. For eg we can create a helper class in order to…
The static view files deployment command enables you to write static files to the Magento file system when the Magento software is set for production mode. 1. Deploy all static contents
1 |
php bin/magento setup:static-content:deploy |
2. Deploy static content of locale AU
1 |
php bin/magento setup:static-content:deploy --language en_AU |
3. Deploy static content of Admin
1 |
php bin/magento setup:static-content:deploy --area adminhtml |
4. Deploy static content for frontend
1 |
php bin/magento setup:static-content:deploy --area frontend |
5.…