Page 67 of 69

How to Add sitemap.xml file in Magento 2

Sitemaps allow website owners to inform search engines what pages on their website are available for crawling. Do not worry. You do not need to manually enter every single URL from your website in order to create your sitemap. Magento 2 comes bundled with the ability to generate a Google sitemap. Google sitemaps are XML…

How to increase Magento 2 admin session timeout

If you’re getting logged out of your Magento 2 admin after some time you can easily increase the session timeout from backend. In this blog post, we will learn how to increase Magento 2 admin session timeout. Lets set session timeout to 1 day(86400). In order to increase session timeout, Log into your Magento 2…

Add Google Analytics Code In Magento 2

Google Analytics is a free Web analytics service that provides statistics and basic analytical tools for search engine optimization (SEO) and marketing purposes. This service helps store owners to boost sales, find more customers, improve their business. Here are some benefits of using Google Analytics with eCommerce store. Able to find out how your visitors…

Add a non-category links to the navigation menu in Magento 2

As we know Magento 2 does not include features like adding extra(home, blog) links to main navigation menu. In this blog post we will discuss how to add non category links to navigation menu in Magento 2. In this we will use Magento 2 Observer page_block_html_topmenu_gethtml_before to add new link to menu. Lets consider module…

Magento 2 intl php extension missing

As we all know Magento 2 is released and every developers are trying to install and learn Magento 2. When you trying to install Magento 2 the most common error used to get for the first time is php extension intl missing. How to check php intl extension enable or not? Open php.ini file and…

Deploy static view files in Magento 2

As you know, Magento 2 comes with latest technology like HTML5, CSS3, Bootstrap, RequireJs, PHP 7, etc. It also includes some other techniques that decrease the load time of page. As per the Magento 2, When a browser loads a web page and requests a static view file such as a JavaScript, CSS, image file,…

How to create a Magento 2 extension

Happy to see you guys again! In this blog post, we will learn how to create Magento 2 extension step by step and basic knowledge required to setup a module. we will also introduce the coding of Magento 2 in the form of a “Hello Developer” style. This blog post also includes some basic functionality,…

How to create Magento 2 widget

Magento has been the benchmark set amongst the e­-commerce frameworks available in the market. Magento Widgets are small Magento extensions with a predefined set of configuration options. Using them the store administrators can enrich the front-end blocks functionality. They provide great control and flexibility in creating informational and marketing content. Personally I see the widgets…

Magento 2 – How to load product by id

As you know there are so many alternate methods to get product details by given id in Magento 1.x. This code snippet will be very useful at many custom development with Magento. Lets check the code used in Magento 1.x. $productId = 10 // Assign product id here.. $_product = Mage::getModel(‘catalog/product’)->load($productId); List of some methods…

Adding new category attribute in Magento 2

Sometimes you need to extend functionality of Magento 2 categories. In this article I would like to show you how to add a new custom category attribute. Let’s say, this attribute is needed to display/hide some content on the category page. Now let’s write our installation script under Setup folder. I’ve included comments within to…

« Older posts Newer posts »