Skip to content
BlogTreat

BlogTreat

Web Programming & Tutorial

  • Home
  • About
  • PHP
  • Magento
  • Magento 2
  • Contact
Main Menu

Month: August 2018

Magento 2

Magento 2: Get Base URL, Store URL and Current URL

August 15, 2018January 19, 2019 BlogTreatLeave a Comment

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 more
How to

How to Copy, Move and Rename Files & Folders Using SSH

August 11, 2018October 4, 2018 BlogTreatLeave a Comment

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 more
How to

How to Create, Edit and Delete Files & Folders Using SSH

August 9, 2018October 4, 2018 BlogTreatLeave a Comment

In 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 more
Magento 2

Create Confirmation Widgets in Magento 2

August 7, 2018January 19, 2019 BlogTreatLeave a Comment

The 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 more
Magento 2

How to Create Custom Shipping Method in Magento 2

August 6, 2018January 29, 2019 BlogTreatLeave a Comment

Magento 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 more
Magento 2

Magento 2: Create Database Table Using Install/Upgrade Script

August 2, 2018January 29, 2019 BlogTreatLeave a Comment

If 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 more
Magento 2

Programmatically update customer data in Magento 2

August 1, 2018December 4, 2018 BlogTreat1 Comment

Sometimes 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 more
Magento 2

Magento 2: Run Custom SQL Query Without Using Model

August 1, 2018December 4, 2018 BlogTreatLeave a Comment

In 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

Recent Posts

  • Create New Admin User in Magento 2 via Command Line Interface February 14, 2019
  • Steps to Create New Admin User in Magento 2 February 1, 2019
  • Steps to Create New User Role in Magento 2 January 23, 2019
  • Magento 2: Get Base URL, Store URL and Current URL August 15, 2018
  • How to Copy, Move and Rename Files & Folders Using SSH August 11, 2018

Categories

  • Git (1)
  • How to (7)
  • JavaScript (2)
  • Magento (15)
  • Magento 2 (56)
  • MySQL (1)
  • PHP (7)
  • WordPress (1)

Archives

  • February 2019
  • January 2019
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
All rights reserved © 2019 BlogTreat.
Sitemap | Privacy Policy | Contact