A Complete Guideline of Adding Websites In Magento 2

In the same Magento installation, store administrators can set up many websites. The websites can be set up to share the same domain or use different domains. If you want to separate the checkout process of each store under its domain, you have to select a distinct IP and separate Security Certificate for each store. In this article, we will provide a tutorial on adding websites in Magento 2

Multiple Websites Adding websites in magento 2
Multiple Websites

There are two primary steps in adding websites in Magento 2: Create a New Website and Configure the Store URL

Step 1: Create a New Website

On the admin sidebar click Stores > All Stores > Create Website. Follow these steps

Website Information adding websites in magento 2
Website Information
  • Input the domain of new website into a Name text field
  • Input a Code text field that server will use it to point to the domain

The code must start with a lowercase letter(a-z), and can include any combination of letters (a-z), numbers (0-9), and the underscore (_) symbol.

  • Input a sort number to decide the sequence in which this site is listed with other sites. A zero will put the site to the top of the list (Optional)
  • Set Default Store for this website.

Step 2: Configure the Store URL

Read this article to know how to Configure the Store URL

Above is an article about the progress of adding websites in Magento 2 and tutorial on how to create a new website in admin controller. We hope that this article will provide useful information for Magento 2 store administrators to completely handle the basic configuration. In the next article, we will provide a guideline on Store URL and using a custom admin URL. Don’t forget to like and share if you think this article is useful, and subscribe Magestandard for weekly Magento 2 tutorial articles.

How To Translate Content Pages In Magento 2

When you have set the locale for each store view to a different language, and your store has multiple views in other languages, the result is a partially translated site. In the next step, you have to translate every page that is available from the specific store view. Each view that includes a translated version of the page displays in the Store View column of the Manage Pages list.  

In the progress of translate content pages in Magento 2, you have to create a new page that has the similar URL Key to the original one but is assigned to a specific store view. Then input translated text to the page for the specific view. In this article, we will show you how to translate content pages in Magento 2 admin control

Follow these steps to create a translated page for a view:

  1. On the Admin sidebar, click Content. Then under Elements, select Pages.
  2. In the grid, find the page to be translated, and open in edit mode.
  3. Copy/paste the URL Key to the clipboard. Then, click the Back button to return to the Pages grid.
  4. Click Add New Page. Then, follow these steps:
  • Enter the translated Page Title.
  • Copy and Paste the URL Key from the original page.
  • In the Store View box, select the store view that contains the page.
  • On the left of the admin panel, select Content. Then, complete the translated text for the page.
  • On the Design tab, set the column Layout of the page.
  • On the Meta Data tab, enter the translated text for the Keywords and Description.
  1. Click Save Page after completing. Then after all works above are done, flush caches by using admin control or git command.
  2. To confirm the translation was done, use the language selector to change the store view on the front page.

Remember that there are still some components on the page that require being translated, including the store footer links block, the welcome message, and product information.

How To Add A Language In Magento 2

By changing the locale of the view, most of the text that hard-coded on pages in your store can be instantly translated into another language. Changing the locale doesn’t translate word-by-word all the text on the interface, but references merely a different translation table that includes the interface text that is used on the store. Navigational titles, labels, buttons, and links such as “My Cart” and “My Account” are included in the text can be changed. To edit text in the interface, you can also use the Inline Translation tool.

You can find other language packs as new extensions on Magento Marketplace, so remember to check back often.

In this article, we provide a tutorial on how to add a language in Magento 2 admin

Step 1: Install a Language Pack

To install the language pack extension from Extension Manager, follow the standard instructions.

Step 2: Create a Store View for the Language

  1. On the Admin sidebar, click Stores. After that below Settings, click All Stores.
  2. Click Create Store View. After that, follow these steps:
  • Click the Store that is the parent of the view.
  • Input the store view’s Name. For example: Portuguese. In the header of the store, the name displays in the “language chooser.”
  • Input a Code in lowercase characters to identify the view. For example: portuguese.
  • To activate the view, change Status to “Enabled.”
  • (Optional) Input a Sort Order number to determine the sequence in which this view is listed with other views.
  1. Click Save Store View after completed.

Step 3: Change the Locale of the Store View

  1. On the Admin sidebar, click Stores. After that below Settings, click Configuration.
  2. Change Store View to the specific view where you want to apply the configuration. Click OK after confirmed that the scope is switched.
  3. Open the Locale Options tab.
  4. Uncheck the Use Website checkbox after the Locale field. After that, change Locale to the language that you want to assign to the view. If there are several variations of the language available, remember to choose the one for the specific region or dialect.
  5. Click Save Config after completed.

The remaining content that store administrator has created, including product names and descriptions, categories, CMS pages, and blocks must be translated separately for each store view after store owner change the language of the locale.

In the next article of Store category, we will provide a tutorial on how to translate products in Magento 2 web store. So keep checking Magestandard more often.

How To Edit A Store View In Magento 2

One of the most critical work in Magento 2 store configuration is edit a store view in Magento 2 backend. In the store view, the view name displays in the language selector, this is the reason why store administrators might want to edit the name of the default view to something more descriptive. The Name field appears as a simple label, and of course it can be modified easily. In this article, we will describe a tutorial on how to edit a store view in Magento 2.

If your Magento installation has a multi-site or multi-store setup, do not edit the store Code field without verifying that the value is not referenced in the index.php file. If you do not have access the server to access the file, you should ask a developer or store administrator to request access.

 

FIELD ORIGINAL VALUE UPDATED VALUE
Name Default Store View English
Code default english

Follow these steps to edit a store view

  1. On the Admin sidebar, click Stores. After that below Settings, click All Stores.
  2. Under Store View column of the Store table, click the name of the store view that you want to edit.

The Store and Status fields are not available when editing the default view.

edit a store view magento 2
Editing the Default View
  1. Update the following fields as material:
  • Store (non-default views only)
  • Name
  • Code (only if not used in index.php)
  • Status (non-default views only)
  • Sort Order
  1. Click Save Store View after completed.

Above is a tutorial on how to edit a store view in Magento 2 Stores Menu. In short, you click a Store tab in admin sidebar, click All Stores, select the store view that you want to edit under store view column and edit the field as you wish. We hope that you can edit your store view in Magento 2 backend using this tutorial. If you have any question about our tutorial, feel free to leave a comment. Don’t forget to like share and subscribe Magestandard for more Magento 2 tutorial coming soon.

 

How To Create A New Store View in Magento 2

After Magento Open Source is installed, the installation creates a hierarchy that includes the main website, store, and store view. To add a multi-language store view for a Magento 2 store and make the store available in different locales, the first thing you have to do is create a new store view in Magento 2 backend. Commonly, store views are used to make the store accessible in others locales. Shoppers can use the language chooser in the header of the store to change the store view. To change a store view, shoppers can select a language in the header of the store. In this article, we will describe a tutorial on how to create a new store view in Magento 2.

multiple store views in magento 2
Multiple Store Views

To create a new store view in Magento 2, please follow these steps:

  1. On the Admin sidebar, click Stores. After that under Settings, choose All Stores.
all stores in magento 2
All Stores
  1. Click Create Store View. After that, follow these tips:
store view information in magento 2
Store View Information

Configure Store to the parent store of this view.

  • Input a Name for this store view. The name displays in the language chooser in the store header. For example Spanish.
  • To identify the view, input a Code in lowercase characters. For example: spanish.
  • To activate the view, change Status to “Enabled.”
  • To decide the sequence in which this view is listed with other views, input a Sort Order number. (Optional)
  1. Click Save Store View after completed.

Above is a complete tutorial about adding store views in Magento 2 backend. We hope that you can manage to create multiple store views using this guideline. Feel free to leave a comment if you have any question, and remember to subscribe Magestandard to read more Magento 2 tutorial articles.