Magento For a Beginners | Learn Everything You Need to Gain Your Knowledge

If you are new in the Magento eCommerce Development world, you’ll enjoy this stuff.

But First you can think that question, why do we want to learn about Magento Development?

Why Magento eCommerce Development are use? Let’s clear the doubt first.

Do you know how many Magento Development Edition are existing?

So here there are mainly two editions are used:

  • Magento Enterprise [Commerce]
  • Magento Community

  Now you have a question like what are the major difference between the two editions

Let’s Start Magento for Beginners from Basic to advance.

What’s in it you learn in this content

  1. Basic of Magento
  2. Requirement of Magento
  3. Composer
  4. Overview of Elasticsearch
  5. Docker Briefing
  6. Conclusion
  7. FAQ

What is Magento?

Magento is an open-source eCommerce software. Which offers companies the best eCommerce solution and extensive support Network.

It is simple, quick, and versatile to use.

Magento allows users to update the eCommerce website automatically.

Magento is scalable and it helps the user or customer to both user-friendly and search engine friendly website.

What are the features of Magento?

  • Magento provides various payment methods such as credit cards, Paytm, cheques, money orders, etc.
  • It enables the shipping of products in one order to multiple addresses.
  • Magento provides an order of product status and history of the product. It also supports e-mail.
  • Magento makes it easy to browse the products. It has features such as image zoom-in and checking of stock availability. It has built-in Search Engine Optimization.

Requirements of Magento

Php Version: 5.6, 7.0.x, 7.3.x

MySQL Version: 5.7.x [only this version is supported]

Elasticsearch: 7.9.x

Composer

Magento 2 

Platform to use:

Xampp or Wamp Server or cPanel or Docker

What is Composer?

Composer Helps you declare dependency of php, Like Declare, Manage and Install.

Installation link:

https://getcomposer.org/download/

Steps of Installation of Composer on windows:

  1. Select install mode > install for all users recommended > next.
  2. Installation options > next.
  3. Settings check > choose cmd PHP you want to use >

Example [c:\bin\php\php7.3.21\php.exe] > next.

  • Proxy settings > next.
  • Ready to Install > Install
  • Finish

After the installation, you can run check whether the composer install or not

  1. You should open cmd and run command composer

Overview of Elasticsearch

What is Elasticsearch?

Elasticsearch is a distributed and open-source full-text search and analytics engine.

It is accessible from a RESTful web service interface and uses schema-less JSON (JavaScript Object Notation) documents to store data.

It is built on the Java programming language and hence Elasticsearch can run on different platforms.

It enables users to explore a large amount of data at high speed.

Benefits of Elasticsearch:

  • Easy and advanced searches on products in the catalog.
  • Support for multiple languages, stop words, and synonyms.
  • Shoppers are not disrupted while Elasticsearch reindexes.
  • Accurate, performant, and scalable.
  • Easy to horizontally scale.
  • Supports real-time data and analysis.
  • Can be used as a document-oriented data store.

Installation link:

https://www.elastic.co/downloads/elasticsearch

Steps of Elasticsearch setup for windows:

  1. First, you install Elasticsearch and extract files.

  • After that, you will need to run

Elasticsearch_rootfolder > bin > elasticsearch.bat run as administrator in cmd

  • Then run localhost:9200

Errors occur in installation:

  1. Localhost:9200 refuse to connect
  2. Elasticsearch.bat file does not run
  3. You see this kind of error

Error: could not find main class

Cause: cannot find java. lang. main class

How to resolve this error:

  • First, we set the Java path on environment variables

JAVA_PATH > C:\Program Files\Java\jdk-16\

  • After that again run the elasticsearch.bat file
  • If not run file then you can install Elasticsearch with docker.

What is Docker?

Docker is a container management service. It is developed, ship, and run anywhere.

The idea of Docker is for developers to easily develop applications, ship them into containers which can then be deployed anywhere. Easy to set up and run.

Installation link for windows hub:

https://docs.docker.com/docker-for-windows/install/

Steps of Installation Elasticsearch with docker:

  1. First, you need to create a docker-compose.yml file
  2. Docker-compose.yml file details [copy below code and create yml file]

version: ‘2.2’

services:

  es01:

    image: docker.elastic.co/elasticsearch/elasticsearch:7.11.2

    container_name: es01

    environment:

      – node.name=es01

      – cluster.name=es-docker-cluster

      – discovery.seed_hosts=es02,es03

      – cluster.initial_master_nodes=es01,es02,es03

      – bootstrap.memory_lock=true

      – “ES_JAVA_OPTS=-Xms512m -Xmx512m”

    ulimits:

      memlock:

        soft: -1

        hard: -1

    volumes:

      – data01:/usr/share/elasticsearch/data

    ports:

      – 9200:9200

    networks:

      – elastic

  es02:

    image: docker.elastic.co/elasticsearch/elasticsearch:7.11.2

    container_name: es02

    environment:

      – node.name=es02

      – cluster.name=es-docker-cluster

      – discovery.seed_hosts=es01,es03

      – cluster.initial_master_nodes=es01,es02,es03

      – bootstrap.memory_lock=true

      – “ES_JAVA_OPTS=-Xms512m -Xmx512m”

    ulimits:

      memlock:

        soft: -1

        hard: -1

    volumes:

      – data02:/usr/share/elasticsearch/data

    networks:

      – elastic

  es03:

    image: docker.elastic.co/elasticsearch/elasticsearch:7.11.2

    container_name: es03

    environment:

      – node.name=es03

      – cluster.name=es-docker-cluster

      – discovery.seed_hosts=es01,es02

      – cluster.initial_master_nodes=es01,es02,es03

      – bootstrap.memory_lock=true

      – “ES_JAVA_OPTS=-Xms512m -Xmx512m”

    ulimits:

      memlock:

        soft: -1

        hard: -1

    volumes:

      – data03:/usr/share/elasticsearch/data

    networks:

      – elastic

volumes:

  data01:

    driver: local

  data02:

    driver: local

  data03:

    driver: local

networks:

  elastic:

    driver: bridge

After that first file will save as an elastic folder > docker-compose.yml

Pull the image [first you will run this command]

docker pull docker. elastic.co/elasticsearch/elasticsearch:7.11.2

After pulling successful we can run docker-compose to bring up the cluster [run below code in cmd]

docker-compose up

Note: first we set a path to run this above command

Path: elastic_folder > cmd

In last, you can run again localhost:9200 on the browser.

You can successfully run elasticsearch.

I hope you enjoy this stuff and this blog will help to clear all your doubts.

Conclusion:

Overall, we conclude that Magento is user-friendly eCommerce software. It is compatible with smartphones, tablets, and other devices.

Also, it provides multiple payment options. So, every visitor or customer can make a payment based on their payment gateway. It has many extensions which support the development of an online store.

Frequently Asked Questions

Magento2 is updated its performance and scalability, it has updated the checkout process that makes it easy for the user to buy from you. It is mobile-friendly and user-friendly, which means your customers can assess your website on mobile devices.

Magento product management is strong, while woo commerce is weak. Magento B2B features accounts, Multi-store management is supported in Magento commerce cloud while in woo-commerce plug-in required.

Magento is the best option for an e-Commerce store because it provides a flexible content system, Advanced Seo, Extension, Highly secure, multi-websites option, customized integration, e-Commerce store loads faster, mobile-friendly, unlimited options, support related to language and currency.

Leave a Comment

Your email address will not be published. Required fields are marked *