Tag: Magento 2 (page 21 of 26)

Magento 2 – How to Get All Payment Methods

In this post I am going to explain how to get all payment methods in magento 2. 1. Using Dependency Injection Add below code snippet in Block class. protected $_paymentHelper; public function __construct( \Magento\Backend\Block\Template\Context $context, \Magento\Payment\Helper\Data $paymentHelper, array $data = [] ) { $this->_paymentHelper = $paymentHelper; parent::__construct($context, $data); } public function getAllPaymentMethods() { $paymentMethods =…

Magento 2 – How to Get Customer Group Collection

In this post I am going to explain how to get customer group collection. 1. Using Dependency Injection Add below code snippet in Block class. protected $_customerGroupCollection; public function __construct( \Magento\Backend\Block\Template\Context $context, \Magento\Customer\Model\ResourceModel\Group\Collection $customerGroupCollection, array $data = [] ) { $this->_customerGroupCollection = $customerGroupCollection; parent::__construct($context, $data); } public function getCustomerGroupCollection() { $customerGroupsCollection = $this->_customerGroupCollection->toOptionArray(); return $customerGroupsCollection;…

Magento 2 – How to get Product Attribute Id, Name, Options from Attribute Code

In this post I am going to explain how to get the attribute information from attribute code in magento 2. 1. Using Dependency Injection Add below code snippet in Block class. protected $_entityAttribute; protected $_attributeOptionCollection; public function __construct( \Magento\Backend\Block\Template\Context $context, \Magento\Eav\Model\Entity\Attribute $entityAttribute, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\Collection $attributeOptionCollection, array $data = [] ) { $this->_entityAttribute = $entityAttribute; $this->_attributeOptionCollection =…

How Magento PWA helps to improve online store

What is PWA? PWA is stand for Progressive Web App. PWA is a combination of native apps and mobile web pages. The PWA delivered app-like experience to the end user. How Magento PWA Helps to improve my store? The Magento PWA helps you to improve your store in following ways Table of Content 1. High…

How to create new store view in Magento2?

Magento allow to creates different store views with different language. To create new store in your Magento 2, follow few steps. 1. Go to Store configuration. From left side menu, go to > Stores > Configuration. 2. Click on Create store view. 3. Fill the all details and click on Save store view button. Then…

3 Must have Magento 2 WhatsApp Extensions to Boost Sales

WhatsApp has proven to be a tool so valuable with all of the noise across social media — if you haven’t started building a WhatsApp marketing campaign, now is the time. That’s why we’re introducing Magento 2 WhatsApp Extensions: a new way to run your business on the go by bringing customer conversations, marketing workflows,…

Bluefoot Drag & Drop Page Builder For Magento 2

BlueFoot is a powerful set of tools to help you create and manage content on your Magento 2 store, everything from product descriptions through to blogs. To provide merchants with a simple drag & drop page builder tool to manage their webstore content, Magento acquired the well-known Bluefoot CMS & Page Builder module. Good news…

Top 7 Free Magento 2 Themes For 2018

Whether you’re new to Magento 2 or you’re just looking for a best responsive theme that’s easy to use, this collection of the top free magento 2 themes for 2018 will provide you with plenty of options. Best Free Magento 2.3.3 Themes for 2020 All of these Magento 2 themes are free, and they come…

How to enable CAPTCHA in Magento 2?

This tutorial will explain you how to enable CAPTCHA protection in Magento 2 store. CAPTCHAs help protect your site from spamming by bots and other malicious actors. To enable CAPTCHA protection for the administration side on Magento 2, follow below steps: 1) Log in to Magento 2 using your admin account. 2) From left sidebar,…

How to upgrade your Magento 2 version?

In this article, You will learn how to upgrade your Magento 2 version from 2.x.x for 2.x.x using Command-Line Interface (CLI). Then upgrade your Magento 2 by following these steps: 1) Access Your Server via SSH 2) Navigate to the Magento 2 Root Directory 3) Upgrade Commands composer require magento/product-community-edition 2.x.x –no-update composer update rm…

Older posts Newer posts