In this code snippet, I am going to show you how to get base URL, store URL and current URL in Magento 2. In the below example, I will be using both Dependency Injection (DI) and Object Manager to get the base URL, store URL and current URL in Magento 2. But …
Read moreMonth: August 2018
In my previous article, I have explained “How to Create, Edit and Delete Files & Folders Using SSH”. Here, I am going to show you, how to copy/move files and folders from one place to another place, rename a file and folders using the SSH command. SSH Command to Move …
Read moreIn this quick article, I am going to show you how to create new files and folders using SSH command. Here, I will also explain how to edit the content of the existing files and delete the files and folders using the SSH command. SSH Command to Create Files & …
Read moreThe Magento confirmation widget is used to display a dialog box with a specified message, along with a confirmation button (i.e, OK) and a Cancel button. We can find the Magento confirmation widgets source file in the below path, <Magento installed root directory>/vendor/magento/module-ui/view/base/web/js/modal/confirm.js We can implement confirmation windows for both, Admin …
Read moreMagento 2 already has some built-in shipping methods. But in some cases, we may want to create our own shipping methods in Magento 2. It’s not a difficult process. We can create a custom shipping method in Magento 2 very easily. Here is the blog which helps you to create …
Read moreIf you are creating a new custom module in Magento 2, In some cases, you may need to create a new database table, modify existing database table, and you may want to set some initial default values in your database tables. You can achieve this by creating install/upgrade scripts in …
Read moreSometimes we may require to update customer information programmatically in Magento 2. It’s very simple. In this blog, I am going to explain how to update customer information in Magento 2 programmatically. In the below example, I will be using both Dependency Injection (DI) and Object Manager to update the …
Read moreIn Magento 2, we can use models to access and modify the database data. But in some cases, we may require to communicate with the database using custom SQL queries. This blog will help you to run a custom SQL query without using model files. Here the sample table structure, …
Read more