Tag: Magento 2 (page 1 of 8)

Magento 2 – How to Get Sub Categories of Specific Category

In this post I am going to explain how to get sub categories of specific category in magento 2. 1. Using Dependency Injection Add below code snippet in Block class.

Add below code snippet in template file.

  2. Using Object Manager

Thats it. Enjoy Magento 2!!

Magento 2 – How to Get Parent Category of Specific Category

In this post I am going to explain how to get parent category of specific category in magento 2. 1. Using Dependency Injection Add below code snippet in Block class.

Add below code snippet in template file.

2. Using Object Manager

Thats it. Enjoy Magento 2!!

Magento 2 – How to Call CMS Static Block in phtml file

In this post I am going to explain how to to call CMS static block in phtml file. Use below code snippet to get CMS static block content in any template file.

Thats it. Enjoy Magento 2!!

Magento 2 – How to Call Template Block in any CMS Page or CMS Static Block

In this post I am going to explain how to to call template block in any CMS page or CMS static block. If you want to call template block in CMS page or CMS static block, then you can do it by below code. Suppose that we have a phtml file called mytemplate.phtml of module…

Create Urgency & Scarcity with Sales Countdown Timer Magento 2 Extension

What happens every day in your eCommerce¬† store? Customers are coming, visit product page and leave your product page. There is no purchase. Customers have natural tendency to delay buying as long as possible. It is necessary to boost conversion and sales. It can be achieved by only two thing¬† and that is FOMO and…

How to Start an Online Auto Parts Store | 7 Steps to Success

Starting an online Auto Parts store? Well… it’s perfect because now it’s the right time to do it! To help, here we are presenting the 7 easy steps to start your online store. In this articles we explore simple way to start your online business. Here’s they are! Select any eCommerce Platform Choose the Templates…

How to install Magento 2 extensions using FTP

Extension helps you to make your business much easier and provide smooth shoppable experience to your customer. So here we will learn how to install Magento 2 extension to your store using FTP. Install Magento 2 extension using FTP First of all download your selected Magento 2 extensions and unzip it. Now connect your store…

Magento 2 – How to Call Template Block in phtml File

In this post I am going to explain how to to call template block in phtml file or how to use phtml file in another phtml file. Sometimes you want to get content from another phtml file without defining in layout. In this case, we can use a method called toHtml of a block. Suppose…

Magento 2 – How to get Current Store ID, Code, Name, URL and Website ID

In this post I am going to explain how to get current store information like store id, code, name, url and website id in Magento 2. 1. Using Dependency Injection

  Add below code snippet in template file.

  2. Using Object Manager

Thats it. Enjoy Magento 2!!

Magento 2 – How to Check Current URL is Homepage

In this post I am going to explain How to check IsHomePage in Magento 2. Add below code snippet in Block class.

  Add below code snippet in template file.

  Thats it. Enjoy Magento 2!!

Older posts