Category: Magento 2 (page 30 of 33)

How to change default sort order from ascending to descending in Magento 2?

In order to change default sort order from ascending to descending in Magento 2, first you need to copy vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml to app/design/frontend/{{Vender_Namespace}}/{{Theme_Name}}/Magento_Catalog/layout/catalog_category_view.xml into your theme. Now copy below code to your new xml file. <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” layout=”2columns-left” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceContainer name=”content”> <referenceBlock class=”Magento\Catalog\Block\Product\ListProduct” name=”category.products.list” as=”product_list”> <action method=”setDefaultDirection”> <argument name=”dir” xsi:type=”string”>desc</argument> </action> </referenceBlock> </referenceContainer>…

How to get extension version in Magento 2?

In order to retrieve version of any extension/module in Magento 2, you can use following code snippet. $versionInfo = $this->_objectManager->get(‘Magento\Framework\Module\ModuleList’)->getOne(‘Wallet_Version’); echo “<pre>”; print_r($versionInfo); echo “</pre>”; Here, Wallet is vendor name and Version is module name. Team HiddenTechiesWrite an article about ecommerce that help people to grow their ecommerce business. You’ll find best ecommerce guide, news,…

Magento 2 – How to add jQuery calendar to custom frontend form?

Recently I have found one solution to add jQuery calendar to custom frontend form. Lets discuss in detail. In order to add jQuery calendar to custom frontend form, we have to add text input field to custom frontend form. As per below code create one new text input field inside form block. <input type=”text” class=”input-text…

How to Enable SSL in Magento 2

In this blog post, you will learn how to enable SSL in Magento 2 step by step. The private SSL certificate is an important upgrade to your website. The basic function of an SSL is to encrypt all communication between the browser and the server, ensuring that all data goes through a secure (HTTPS) connection….

Magento 2 Tutorial: How to Disable Extensions in Magento 2?

In this blog post, you will learn how to disable extensions in Magento 2 step by step. Please follow below steps to disable any extensions from your Magento 2 store. 1) Log in to Magento 2 using your admin account. 2) From left sidebar, click Stores, and then Settings -> Configuration. 3) In this page,…

How to change default copyright text in Magento 2?

n this blog post, you will learn how to change default copyright text in Magento 2 step by step. Please follow below steps to add new copyright text for your store. 1) Log in to Magento 2 using your admin account. 2) From left sidebar, click Stores, and then Settings -> Configuration. 3) In this…

How to remove email to friend feature in Magento 2?

In this blog post, you will learn how to remove email to friend feature in Magento 2 step by step. Please follow below steps to remove email to friend feature from your Magento 2 store. 1) Log in to Magento 2 using your admin account. 2) From left sidebar, click Stores, and then Settings ->…

Disable wish list feature from Magento 2

In this blog post, you will learn how to disable wish list feature in Magento 2 step by step. Please follow below steps to disable wish list feature from your Magento 2 store. 1) Log in to Magento 2 using your admin account. 2) From left sidebar, click Stores, and then Settings -> Configuration. 3)…

How to merge and minify JavaScript files in Magento 2?

This tutorial will show you how to merge and minify JavaScript files in Magento 2 store. Please follow below steps to merge and minify JavaScript files in Magento 2. 1) Log in to Magento 2 using your admin account. 2) From left sidebar, click Stores, and then Settings -> Configuration. 3) In this page, expand…

Older posts Newer posts