تبلیغات
تبلیغات
CHAPTER 69: All Stores Adding Stores
Adding Stores
A single installation of Magento can have multiple stores that share the same Admin. Stores that are under the same website have the same IP address and domain, use the same security certificate, and share a single checkout process.
The important thing to understand is that the stores use the same Magento code, and share the same Admin. Each store can have a separate catalog, or share the same catalog. Each store can have a separate
, which makes it possible to have a different main menu for each store. Stores can have different branding, presentation, and content. Before you begin, take some time to plan your store hierarchy with future growth in mind, because it is used throughout the configuration.
Multiple Stores
Here are some examples of how URLs can be configured for multiple stores: yourdomain.com/store1 yourdomain.com/store2 store1.yourdomain.com
store2.yourdomain.com
Each store has a different path, but shares the same domain.
Each store has a different subdomain of the primary domain.
Process Overview:
Step 1:
Step 2:
Step 3:
Step 4:
Magento Community Edition 2.1 User Guide 893
Adding Stores CHAPTER 69: All Stores
Step 1:
Choose the Store Domain
The first step is to choose how you want to position the store. Will the stores share the same domain, each have a subdomain, or have distinctly different domains? For each store, do one of the following: l
To place the store one level below the primary domain, you don’t have to do anything.
l
Set up a subdomain of your primary domain.
l
Set up a different primary domain.
Step 2:
Create the New Store
1.
On the Admin sidebar, tap Stores. Then under Settings, choose All Stores.
2.
Tap
Create Store
. Then, do the following:
a.
Choose the Web Site that is to be the parent of the new store. If the installation has only one web site, accept the default, “Main Website.”
b.
Enter a Name for the new store. The name is for internal reference only.
c.
Set Root Category to the
that defines the category structure for the main menu of the new store. If you have already created a specific root category for the store, select it. Otherwise, select “Default Category.” You can come back later and update the setting.
3.
When complete, tap
Save Store
.
Store Information
894
New Store
Magento Community Edition 2.1 User Guide
CHAPTER 69: All Stores Adding Stores
Step 3:
Create a Default Store View
1.
Tap
Create Store View
. Then, do the following:
a.
Set Store to the new store you created.
b.
Enter a Name for the view. For example, "English."
c.
Enter a Code for the view in lowercase characters.
d.
Set Status to "Enabled."
e.
In the Sort Order field, enter a number to determine the store's position when listed with other stores.
2.
Tap
Save Store View
.
If you were to open your store in edit mode, you would see that it now has a default view.
New Store with Default View
Step 4:
Configure the Store URL
1.
On the menu bar, tap Stores. Then under Settings, choose Configuration.
2.
In the panel on the left under General, choose Web.
3.
In the upper-left corner, set Store View to the view that you created for the new store. When prompted to confirm
switching, tap
OK
.
Magento Community Edition 2.1 User Guide 895
Adding Stores
Choose the New Store View
4.
Expand the Base URLs section. Then, do the following:
a.
After the Base URL field, clear the Use Website checkbox.
b.
Enter the Base URL for the store.
CHAPTER 69: All Stores
896
Base URLs
5.
Expand the Secure Base URLs section, and repeat the previous step as needed to configure the store’s
.
6.
When complete, tap
Save Config
.
Magento Community Edition 2.1 User Guide
دانلود
تبلیغات