Step 2: Create the widget
The code that determines the content of the New Products list and its placement in your store is generated by the Widget tool.
-
On the Admin sidebar, go to Content > Elements > Widgets.
-
In the upper-right corner, click Add Widget.
-
In the Settings section, do the following:
-
Set Type to
Catalog New Products List
. -
Choose the Design Theme that is used by the store.
-
-
Click Continue.
-
In the Storefront Properties section, do the following:
-
For Widget Title, enter a descriptive title for the widget. (This title is visible only from the Admin.)
-
For Assign to Store Views, select the store views where the widget is visible.
You can select a specific store view, or
All Store Views
. To select multiple views, hold down the Ctrl key (PC) or the Command key (Mac) and click each option. -
(Optional) For Sort Order, enter a number to determine the order this item appears with others in the same part of the page. (
0
= first,1
= second,3
= third, and so on.)
-
Step 3: Choose the location
-
In the Layout Updates section, click Add Layout Update.
-
Set Display On to
Specified Page.
-
Set Page to
CMS Home Page
. -
Set Block Reference to
Main Content Area
. -
Set Template to one of the following:
-
New Product List Template
-
New Products Grid Template
-
-
Click Save and Continue Edit.
For now, you can ignore the message to refresh the cache.
Step 4: Configure the List
-
In the left panel, choose Widget Options.
-
Set Display Products to one of the following:
All Products
- Lists products in sequence, starting with the most recently added.New Products
- Lists only the products that are identified as new. A product is considered to be new during the date range that is specified in Set Product As New From/To. The list is empty if the date range expires without any new products defined.
-
To provide navigation control for lists with multiple pages, set Display Page Control to
Yes
.For Number of Products per Page, enter the number of products you want to appear on each page.
-
Set the Number of Products to Display option to the number of new products that you want to include in the list.
The default setting is
10
. -
For Cache Lifetime (Seconds), choose how often you want to refresh the list of new products.
By default, the cache is set to 86,400 seconds (24 hours).
-
When complete, click Save.
-
When prompted to refresh the cache, click the link in the message at the top of the page and follow the instructions.