After creating the foundation of the website, we need to set up a catalog structure. Setting up a catalog structure is not difficult but needs to be well thought out.
Some websites have an easy setup using two levels, while others sometimes use five or more subcategories. Always keep in mind user experience: your customer needs to crawl the pages easily. Keep it simple! The following image shows a simple catalog structure:
To step through this recipe, you will use a Droplet created in Chapter 2, Magento 2 System Tools, at DigitalOcean (https://www.digitalocean.com/). We will be using an NGINX, PHP-FPM, Composer-based setup with Magento 2 preinstalled. No other prerequisites are required.
For the purpose of this recipe, let's assume that we need to set up a catalog including subcategories. The following steps will guide you through this:
Since we have already created Root Catalogs, we start with using the Root English catalog first.
Name |
|
Is Active |
|
Page Title |
|
Name |
|
Is Active |
|
Page Title |
|
Name |
|
Is Active |
|
Page Title |
|
Name |
|
Is Active |
|
Page Title |
|
yourdomain.com
, yourdomain.de
, and yourdomain.fr
. Your categories should now look as follows:Let's recap and find out what we did throughout this recipe. In steps 1 through 4, we created subcategories for the English, German, and French stores. In this recipe, we created a dedicated Root Catalog for every website. This way, every store can be configured using their own tax and shipping rules.
In our example, we only submitted Name, Is Active, and Page Title. You may continue to commit the Description, Image, Meta Keywords, and Meta Description fields. By default, the URL key is similar to the Name field; you can change this depending on your SEO needs.
Every category or subcategory has a default page layout defined by the theme. You may need to override this. Go to the Custom Design tab and click the Page Layout drop-down menu. We can choose from the following options: 1 column, 2 columns with left bar, 2 columns with right bar, 3 columns, and Empty layout.
3.14.131.212