How to create a new product type in Magento 2 blog banner

By default, Magento 2 provides 6 product types including simple, grouped, configurable, virtual, bundled and downloadable having unique behaviours and attributes. These default product types cover the majority of the E-commerce needs by supporting the wide range of requirements. There may arise circumstances when you may be not satisfied with the available types and your …

How to convert the price from one currency to another in the magento 2 blog banner

In this article, we will be guiding you on how to convert the price from one currency to another in the magento 2. The first thing you need to do is to create an instance of “\Magento\Directory\Model\CurrencyFactory” and “\Magento\Store\Model\StoreManagerInterface” as given below: Then you need to use the function given below to get the price …

blog banner How to create a shipping method in Magento 2

This piece of information will throw some light on how one can create a shipping method in Magento 2. For this, we need to create a custom module in order to add a new shipping method. Step 1 Create a file named config.xml at app/code/Aureatelabs/Customshipping/etc/config.xml This file is used for defining the shipping method code, …

banner Remove unnecessary link from My Account in Magento 1

For any Magento project, the most exciting time is when you launch the Magento project live. But what I have noticed most of the times is that there are some unnecessary links present in my account section. This is because Magento brings in some default links under my account on the right-hand section as you …

blog banner How to create a new router in Magento 2

This article will help you to create a new custom router in Magento 2. A router is a PHP class responsible for matching and processing of the URL request. In order to add custom router in lib/internal/Magento/Framework/App/RouterList.php we need to add our configuration for the new router in di.xml module. Let’s take a real example, …

banner Secure direct access of cron.php file from the browser

Magento forbids calling the Cron manually from the browser by default from htaccess if you are using Apache webserver. To run Cron directly from the browser, we would have to update .htaccess file before calling the “yoursite.com/cron.php” URL from the browser. For that, you need to comment out these two lines below: What is important …

Export specific tables from MySQL database - Aureate Labs

In Magento, sometimes you may want to export specific tables for which you need to make use of command line. To export full database, we make use of:mysqldump –user=root –password= –host=localhost –compress –disable-keys –quick [db_name] > export.sql In case you need to export specific tables, use the following command:mysqldump –user=root –password= –host=localhost –compress –disable-keys –quick [db_name] …