I am going to create simple custom module in magento2. This module will be used magento’s block, layout, template and router section. I will be explaining these section one by one but not briefly. But you will be getting the
custom magento2 attribute
As of now community edition only have the option for creating product attribute from admin side. But for creating custom magento2 catalog , customer attribute is not available in admin side . So either we will use custom script or
Javascript framework Require JS in magento2

In “Javascript framework RequireJS in magento2” topic we will discuss how RequireJS has been used in magento2. It is the one of javascript framework that has been used in magento2 We will cover Required JS configuration javascript modules javascript execution
PHP Dependency Injection

PHP Dependency Injection: Providing dependencies of one object to another object called Dependency Injection. Dependency Injection involves four roles: A service object(s) to be used. A client object(s) that is depending upon service. An interface that define how client can
Magento 2 backend system configuration

When you are creating a new module , but the requirement is for setting some configuration for magento 2 backend then you need a file which will describe the Magento 2 backend system configuration of our module that is system.xml
Magento 2 plugin Interceptors system

Magento 2 plugin interceptor system: A class which will intercept and modify the behaviour of a public method is referred to as plugins. A plugin(interceptor), is a class that modifies the behaviour of public class method by intercepting a method
flush cache and reindexing programatically in magento 2

Tutorial “flush cache and reindexing programatically in magento 2”, which will be help you to flush cache and reindexing magento 2 programatically . I have also posted same article for magento 1 reindexing-magento-programmatically . 1. Reindex: 1.1.By CMD:
1 2 |
php bin/magento indexer:reindex //for all php bin/magento indexer:reindex catalog_category_product //for specific id |
1.2.Programatically:
confirm change event on confirmation for a dropdown

If you would like to prevent a select box from being changed if not confirmed by user. So here the case is before changing select option , user will be get a message as javascript confirmation to make sure user is
magento convert attribute type

As you know magento table structure is been built upon EAV (Entity Attribute Value) structure. Magento uses EAV to add more number of fields to table dynamically. Just to get one single record, Magento joins 4-5 tables to get data
magento auto selected credit card type

Now I thought if user will enter credit card number and then depending upon the card number related credit card logo will appear I mean credit card type will auto selected at that time.Then this is decrease one step for