/home/owner/Downloads/How to create Custom Magento2 theme_.jpg
Magento2

How to create Custom Magento2 theme?

In this blog We will discuss how to create custom theme in Magento2 ? Step 01 : Create Directory Structure in Magento 2 Theme Development Magento 2 themes are located in the /app/design/frontend folder. First, It’s necessary to create a Vendor folder and then create a theme folder inside of it. For example: /app/design/frontend/V4U/sampletheme. V4U is a vendor, sampletheme is…

Continue Reading

use cookie in magento2
jQuery, Magento2

How to use Cookie in Magento2?

In this blog We will discuss the topic of how to use Cookie in Magento2? Cookies are the most used technology for storing data on the client side. You can add below code in your phtml file or convert that code for js file also. Set cookie : To both create and retrieve a cookie, jquery.cookie uses the same method, cookie(),…

Continue Reading

Commands, Errors, Magento2, Magento2 Commands

Magento 2.4.0 – Getting Error Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

Magento Open Source 2.4.0 support for PHP 7.4, Elasticsearch 7.6.x, and MySQL 8.0. So It’s essential to install Elasticsearch. You must install Elasticsearch before installing Magento Commerce or Magento Open Source 2.4.0. See Elasticsearch for details. Run the below command to Install Elasticsearch In locally. Download and install the public signing key : wget -qO – https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key…

Continue Reading

How to setup existing Magento 2 Project ?
Magento2

How to setup existing Magento 2 Project?

In this tutorial you’ll learn how to setup existing magento 2 project in new domain or locally. Follow below steps to setup existing magento 2 project. Import Database : Import the database by using this command. mysql -u [username] -p newdatabase < [database name].sql; Clone/Extract the Source code. Clone or extract the source code of magento 2. Run Composer Install…

Continue Reading

Magento 2 Modes_ Default, Developer, Production and Maintenance
Commands, Magento2, Magento2 Commands

Magento 2 Modes: Default, Developer, Production and Maintenance

In this tutorial you’ll learn different Magento 2 Modes. Earlier, Magento 1 was operated with a single mode for development as well as production. However, the Magento 2 came with below modes. Magento 2 Modes : Default, Developer Production and Maintenance. Let’s review through each of them in detail. (01) Default : As the name suggests, the default mode is…

Continue Reading

Important Linux Command
Commands, Linux

Important Linux Command

pwd : The pwd command is a command line utility for printing the current working directory. It will print the full system path of the current working directory to standard output. rm command is used to delete the files and directories in Linux. rm stands for remove. Syntax : rm [options] [-r directories] filenames Options : -i : is used…

Continue Reading

Errors

When Composer Cannot Allocate Memory

Error : nmap() failed can no allocate memory. When Composer Cannot Allocate Memory Sollution 1 : Increasing the limit in your php.ini file (ex. /etc/php/7.2/apache2/php.ini) Sollution 2 : Now if you still run out of memory you can enable swap. sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 sudo /sbin/mkswap /var/swap.1 sudo /sbin/swapon /var/swap.1 The first command may take a few seconds…

Continue Reading

permission commands in linux
Commands, Linux

Permission Commands in Linux

Linux is a multi-user operating system, so it has security to prevent people from accessing each other’s confidential files. For effective security, Linux divides authorization into 2 levels. Ownership 2. Permission Linux File Ownership : Every Linux system have three types of owner. User : A user is the one who created the file. By default, whosoever, creates the file…

Continue Reading