Store Configuration in Magento 2

Last updated on May 31 2022
Raghvendra Wanchoo

Table of Contents

Store Configuration in Magento 2

After successful installation of Magento 2 on our system, we need to configure some general settings. Magento 2 provides configuration files that enable us to customize the store components easily. The Store configuration includes General, Catalog, Security, Customers, Sales, Engagement Cloud, Services, and Advanced.

Before starting store configuration, we will suggest you to create a new role and users for that role. Here, we will create a manager role.

Create a User Role

  • Go to the System and click on User Roles to create a specific role for you.

image1 31

  • Click on Add New Role, and Enter the role name and password in the given fields in Role Info. We can also allot permission to this role either may be custom or all.

image2 29

  • Click on Role Resource and allot permission to all or custom permission to the role from the drop-down list. Click on Save Role.

image3 28

  • The manager Role is added now. Manager and Administrator have the same privileges here because we gave all the permission to the Manager.

image4 28

It is not the Magento standard. It is a standard for AWS Community as well as for other community, where we keep our root account separate. We can reduce the privileges of manager role like – we do not allow them to create a new user. After creating the user role, we will create users for the Manager.

Create Users

  • Go to the System and click on All Users to create the users for the Manager role. We can create users from here.

image5 28
Click on Add New User, and fill all the required information in the given fields to create a new user.

image6 19

Store Configuration

Store Configuration should only be done in the beginning, because in future if we perform this kind of change, certain things break and we have to do some couple of parts again. Now, we will configure the general settings of our web store. So, Go to Store -> Configuration.

image7 18
We will get the different setting options, but here we are considering general configuration. We will discuss the important fields below:

image8 18

Step 1: General

The General section includes Web, Currency setup, Store Email Addresses, Contacts, Reports, Content Management, New Relic Reporting, and Advance Reporting. So, the first one is general.

image9 16

Step 1.1 General

Country Options

Expand Country option and uncheck use system value at the right side. Here, we will set India in the country field as well as in Allow countries field from which we are willing to accept the order. We can multi-select the country using ctrl. Leave the other fields as it is.

Default country: Select your default country. In our case, it is India.

Allow Country: By default, all countries are allowed. We can remove the country here.

Zip Postal Code, European Union Countries, and Top destination: Do not need to change.

image10 15

State Options

We have State Option that is not required now, because we have changed the country.

State is required for: No need to change.

Allow to choose state if it is optional to country: Choose Yes or No.

Locale Options

The timezone is set from our setup screen. So, there is no need to change anything in both State Options and Locale Options.

Timezone: Timezone of our store.

Locale: Default Language

Weight Unit: The weight unit will be used in our store, as well as the shipping process.

First day of Week: Setup the calendar

Weekend days: Choose weekdays.

image11 14

Store Information

In the store information section, add the current information of your store.

image12 13

Single-Store Mode

In single-store mode, we set it to “Yes” because we expect that there would not be any store view or much languages where customer can switch from. It will give us decent performance optimization. In case if our store has multiple languages, then we can disable it.

image13 12

Note: This setting will be only taken if the system has more than one store views.

Step 1.2: Web

In the web section, we will get these fields:

URL Option

Do not need to change anything here.

Search Engine Optimization

We must have to enable this option if we want Search Engine to crawl and index our website. For this, Choose Yes in “Use Web Server Rewrites“.

Base URLs (secure)

This field will qualify the URL by using the Secure Base URL. It has two essential field options:

Use Secure URLs on Storefront: If we want to open our store frontend via HTTPS only, then set this option to Yes.

Use Secure URLs in Admin: It is similar to the frontend. Also, set this option to Yes to secure the Admin of the store with SSL.

Default Pages

Generally, this option will be left as default. However, we should notice these given options to avoid related problems.

Default Web URL: The default Web URL of our store.

CMS Home Page: The default is the Home page.

Default No-route URL: The default No-route URL (cms/route/index).

CMS No Route Page: 404 Not Found by default.

CMS No Cookie Page: The Default is Enable Cookie.

Show Breadcrumbs for CMS Pages: By default, it is Yes.

Default Cookie Setting

This is the “default cookie setting” option to which we need to consider the checking. There are certain countries like UK or European Countries it is mandatory that if our website is accepting the cookies, then we should give them a notice. It is legally mandatory there. So, we should enable the Cookie Restriction Mode.

To enable the Cookie Restriction Mode, we just uncheck the Use System Value and choose Yes in Cookie Restriction Field.

image14 9

In other countries, it is not required so based on your requirements you can set or unset it.

Step 1.3: Currency Setup

Now, we will go to the next step that is currency setup. Here, we will set our base currency. So, we will set Indian Rupees as a base currency.

Currency Options

Base Currency: The Base currency is the currency, which is used in all online payment transactions. If we have more than one store view in our website, then the base currency scope is defined by the catalog price scope. We choose the currency in fourth step Customization of Store while installing Magento 2.

Default Display Currency: The display currency is the currency in which products will be displayed at the frontend in our store. Choose it same as with the Base Currency.

Allowed Currency: This is the currency, which will be allowed in payment of our store. These are the other currency, in which a customer can switch. Set Indian rupees to basic, default, and allowed currency.

image15 8

Step 1.4: Setup Email Address

Now, we will go to the setup Email Address, where we have a number of email addresses belongs to us.

Step 1.5: Contacts

Contact Us

Enable the Contact Us and set it to Yes so that your customer can easily contact you.

Email Options

In Email option, just change the setting, so, the email of Contact Us email reaches to you.

image16 8

Step 2: Catalog

The catalog contains the catalog, Inventory, XML Sitemap, RSS feed, and Email to a friend field.

Step 2.1: Catalog

Go to the Storefront section inside the catalog menu, where we have Use Flat Catalog Category and Use Flat Catalog Product. We set Yes in both of these options and Save Config.

image17 8

By default, Magento 2 has EAV database structure, so we have one entity let’s say Product. Its value stored in six different tables so, our Magento is comparatively slow, when EAV models are used. When we change it to the catalog, it’s quite easier and very fast for Magento to load the data from the database. So, we will change it to Yes.

Step 2.2: Inventory

Go to the Inventory section, where we have Stock Options, Product Stock Options, Admin bulks operation, Distance Provider for Distance Based SSA, and Google Distance Provider. There is no change needed except Product Store Options.

Expand Product Stock Options. In case we accept backorders then we can allow backorder here, otherwise we do not need to change anything here.

image18 7

Step 3: Customer

The customer section is fine, so no updates are needed.

Step 4: Sales

Sales section provides multiple sub-sections here. In this, we will go to shipping methods first. We will set the shipping charges from here which we are going to accept. We can enable and disable the shipping methods from here.

Expand the sales section and click on the Shipping method first.

image19 7

Step 4.1: Shipping Methods

We will accept a Flat rate which is by default enabled, and it is 5.00 rupees. If we also want to accept free shipping, we can enable and disable the shipping methods from here.

Firstly, uncheck the Use System Value and then set Yes in the Enabled field. Click on Save Config to save the updated values.

image20 7

Step 4.2: Payment Methods

In the Payment Methods, we can set the different methods of payment such as Cash on Delivery, or using a debit card, credit card, PayPal, or Braintree, etc. To set the payment methods, Go to the Payment Methods inside the Sales and Enable the Cash on delivery.

image21 7

Step 5: Advanced

Now, we will go to the Advanced section and click on Admin.

 

image22 7

Step 5.1: Payment Methods

Security

Now, expand the security section and enable the Admin Sharing Account. So that More than one person can log in from multiple systems with the same details in the Admin.

Uncheck the Use System Value and Set Yes to the Admin Account Sharing.

image23 7

Dashboard

Now, we will enable the chart for our dashboard. Uncheck the Use System Value and set Yes in the Enable chart under the Dashboard. Click on Save Config to save the changes in store.

image24 6

Step 5.2: Developer

Next step is to move on the Developer inside the Advanced section.

JavaScript Settings

Expand the JavaScript setting and set Yes to the Minify JavaScript Files from the drop-down list after unchecking the Use System Value.

image25 5

CSS Settings

Expand the CSS setting and set Yes to the Minify CSS Files after unchecking the Use System Value.

image26 3

Grid Settings

Uncheck the Use System Value to enable the Asynchronous Indexing from the drop-down list and click on Save Config.

image27 3

Files Sign means, whenever you deploy your content, the new static file will be created in a separate sign folder. So that the changes in your live website reflect easily, otherwise they are cached, and the new changes do not reflect.

Asynchronous Indexing means that your grids are not automatically loaded. E.g., if you place an order in Magento, it is stored in sales_orders table, but the admin grid is loaded from sales_orders_grid table. If we set it to asynchronous that entry goes after some time using crons only. So, this way, your Magento do not stuck on the place order functioning to insert into two tables in a particular moment.

Clear the Cache

After store configuration, Go to System and click on cache Management as given in the below screenshot and flush the cache.

Select all from the drop-down list and click on Submit button.

image28 3

So, this brings us to the end of blog. This Tecklearn ‘Store Configuration in Magento 2’ blog helps you with commonly asked questions if you are looking out for a job in Magento Programming. If you wish to learn Java and build a career Java Programming domain, then check out our interactive, Java and JEE Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

https://www.tecklearn.com/course/java-and-jee-training/

Java and JEE Training

About the Course

Java and JEE Certification Training is designed by professionals as per the industrial requirements and demands. This training encompasses comprehensive knowledge on basic and advanced concepts of core Java & J2EE along with popular frameworks like Hibernate, Spring & SOA. In this course, you will gain expertise in concepts like Java Array, Java OOPs, Java Function, Java Loops, Java Collections, Java Thread, Java Servlet, and Web Services using industry use-cases and this will help you to become a certified Java expert.

Why Should you take Java and JEE Training?

  • Java developers are in great demand in the job market. With average pay going between $90,000/- to $120,000/- depending on your experience and the employers.
  • Used by more than 10 Million developers worldwide to develop applications for 15 Billion devices.
  • Java is one of the most popular programming languages in the software world. Rated #1 in TIOBE Popular programming languages index (15th Consecutive Year)

What you will Learn in this Course?

Introduction to Java

  • Java Fundamentals
  • Introduction to Java Basics
  • Features of Java
  • Various components of Java language
  • Benefits of Java over other programming languages
  • Key Benefits of Java

Installation and IDE’s for Java Programming Language

  • Installation of Java
  • Setting up of Eclipse IDE
  • Components of Java Program
  • Editors and IDEs used for Java Programming
  • Writing a Simple Java Program

Data Handling and Functions

  • Data types, Operations, Compilation process, Class files, Loops, Conditions
  • Using Loop Constructs
  • Arrays- Single Dimensional and Multi-Dimensional
  • Functions
  • Functions with Arguments

OOPS in Java: Concept of Object Orientation

  • Object Oriented Programming in Java
  • Implement classes and objects in Java
  • Create Class Constructors
  • Overload Constructors
  • Inheritance
  • Inherit Classes and create sub-classes
  • Implement abstract classes and methods
  • Use static keyword
  • Implement Interfaces and use it

Polymorphism, Packages and String Handling

  • Concept of Static and Run time Polymorphism
  • Function Overloading
  • String Handling –String Class
  • Java Packages

Exception Handling and Multi-Threading

  • Exception handling
  • Various Types of Exception Handling
  • Introduction to multi-threading in Java
  • Extending the thread class
  • Synchronizing the thread

File Handling in Java

  • Input Output Streams
  • Java.io Package
  • File Handling in Java

Java Collections

  • Wrapper Classes and Inner Classes: Integer, Character, Boolean, Float etc
  • Applet Programs: How to write UI programs with Applet, Java.lang, Java.io, Java.util
  • Collections: ArrayList, Vector, HashSet, TreeSet, HashMap, HashTable

Java Database Connectivity (JDBC)

  • Introduction to SQL: Connect, Insert, Update, Delete, Select
  • Introduction to JDBC and Architecture of JDBC
  • Insert/Update/Delete/Select Operations using JDBC
  • Batch Processing Transaction
  • Management: Commit and Rollback

Java Enterprise Edition – Servlets

  • Introduction to J2EE
  • Client Server architecture
  • URL, Port Number, Request, Response
  • Need for servlets
  • Servlet fundamentals
  • Setting up a web project in Eclipse
  • Configuring and running the web app with servlets
  •  GET and POST request in web application with demo
  • Servlet lifecycle
  • Servlets Continued
  • Session tracking and filter
  • Forward and include Servlet request dispatchers

Java Server Pages (JSP)

  • Fundamentals of Java Server Page
  • Writing a code using JSP
  • The architecture of JSP
  • JSP Continued
  • JSP elements: Scriptlets, expressions, declaration
  • JSP standard actions
  • JSP directives
  • Introduction to JavaBeans
  • ServletConfig and ServletContext
  • Servlet Chaining
  • Cookies Management
  • Session Management

Hibernate

  • Introduction to Hibernate
  • Introduction to ORM
  • ORM features
  • Hibernate as an ORM framework
  • Hibernate features
  • Setting up a project with Hibernate framework
  • Basic APIs needed to do CRUD operations with Hibernate
  • Hibernate Architecture

POJO (Plain Old Java Object)

  • POJO (Plain Old Java Object)
  • Persistent Objects
  • Lifecycle of Persistent Object

Spring

  • Introduction to Spring
  • Spring Fundamentals
  • Advanced Spring

Got a question for us? Please mention it in the comments section and we will get back to you.

 

 

0 responses on "Store Configuration in Magento 2"

Leave a Message

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