Skip to main content

Posts

Magento 2.1.0 - category custom attribute

In the blog post , you can get how to create the category attributes to the database. In magento 2.0.0, it was enough to show the field on the category. But, in magento 2.1.0 onwards, we need to add some more code to show the field on the admin category edit page.
Recent posts

Magento - Functional Testing

We have checked on how to do unit testing in magento in previous post . That is not enough to test the magento website. If we can testing the magento home page, login page, etc. it would be great. Fortunately, we have a module that deals with this situation.

Magento - Unit Testing

Magento 2 comes with default unit testing in built. But, for magento 1, it is very difficult to perform unit testing. There is an extension EcomDev_PHPUnit, which can help us in performing unit tests in magento 1.

Magento 2 - Add to System Configuration

In magento 2, the system configuration has gone little changes. Now we can access the configuration from Stores > Settings > Configuration. Also, there is small changes in the system.xml file also. Now the system.xml file is inside etc/adminhtml/ folder. You can find the sample code in the git repo .

Magento 2 - Create Attributes in Setup

Sometimes in our module we require to create product or category attributes automatically on module install. Also, we might require to add extra fields to quote, sales order, invoice, creditmemo tables. We will go through how to do that in magento 2. You can find the sample code in the git repo .