Android

How to create Tic Tac Toe Game in Android

Tic Tac Toe is a simple 3*3 game and almost every people played this game in their childhood. There are so many articles you will find in other sites, but I write this blog especially for beginners which can easily understand and create simple gaming app. Here, I explain all files with it’s flow and also mention comment. So, Let’s…

Continue Reading

Linux

How to Create and Extract tar files in Linux

In this tutorial, Today I will explain how to create and extract tar files in Linux. In Linux/Ubuntu there are so many times, we used to create tar.gz, tar.bz2 file, etc. Let’s check in details about tar command : You may also like this : How to Switch PHP versions using Command Line in Ubuntu 1) Create the tar.gz file…

Continue Reading

Magento 2

How to Create Custom Shipping Method in Magento 2

In this tutorial, Today I will explain to how to create custom shipping method in Magento 2. Magento is big ecommerce platform. There are few shipping methods by default provided by Magento 2. But, still it’s not full fill requirement to merchant. At that time, We need to create custom shipping method in our store. With simple explaination, I will…

Continue Reading

Magento 2

How to Get Category Tree in Magento 2

In this tutorial, Today I will explain to how to get category tree in Magento 2. Magento 2 Category Trees structure indicates about category parent and sub categories. If you want to get category and subcategories by category id in Magento 2, Then you can also use this article. So, Let’s start to follow the steps : You may also…

Continue Reading

Magento 2

How to Create CMS Page using Data Patch in Magento 2

In this tutorial, Today I will explain to how to create CMS page using data patch in Magento 2. After Magento 2.3.x, Magento has introduced Data Patch Interface functionality. Using that, we can add/update data. Before  Magento 2.3.x, we used InstallData or UpgradeData file to Create CMS Page. But, After Magento 2.3.x we need to use data patch functionality. So,…

Continue Reading

Magento 2

How to Switch Currency Programmatically in Magento 2

In this tutorial, Today I will explain to how to switch currency programmatically in Magento 2. When you develop custom module, sometimes you need to change current currency programmatically. At that time, how to change programmatically instead of switch currency from currency switcher? Steps of Switch Currency Programmatically in Magento 2 : You may also like this : How to…

Continue Reading

Magento 2

How to Detect Mobile Device in Magento 2

In this tutorial, Today I will explain to how to detect mobile device programmatically in Magento 2. In Magento 2, When we design or develop anything at that time, we need to do different functionality for mobile device and desktop device. At that time, how can we detect mobile device when page load? Let’s follow the below code to detect…

Continue Reading

Magento 2

How to Get Order Information by Order Id in Magento 2

In this tutorial, Today I will explain to how to get order information by order id in Magento 2. You can get details from order information object like order items, payment, customer’s billing and shipping address details etc. We can get order information using factory methods and using repository method. You may also like this : Magento 2 : Get…

Continue Reading

Magento 2

How to Get Attribute Code using Attribute Id in Magento 2

Today, I will explain to how to get attribute code using attribute id in Magento 2. When you develop any custom logic at that time, maybe you need to get attribute code to fetch any attribute information. At that time, you need to pass attribute id to get attribute code. For that, we should follow some code logic steps to…

Continue Reading

Magento 2

How to Create Custom Indexer in Magento 2

In this tutorial, Today I will explain to how to create custom indexer in Magento 2. There are by default many indexer provide by Magento 2. If you want to perform some action after action complete and want to update records by command line then, indexer will be helpful. For indexer, we need to implement \Magento\Framework\Indexer\ActionInterface interface in our Model…

Continue Reading