-
Notifications
You must be signed in to change notification settings - Fork 3
Widget
Also Viewed Products module provides a widget that could be used in multiple scenarios:
- Show suggestions for currenlty viewed product
- Show suggestions for recently viewed products
- Show suggestions for recently compared products
- Show suggestions for products in shopping cart
- Show suggestions for any combinations of previously mentioned products
This tutorial can be used to add widget to any other page or container.
You can choose the page and container you need, at the bottom of "Storefront properties" tab.
-
Navigate to "Content > Widgets" page and press "Add Widget" button.
-
Select "Also Viewed Products" widget, your theme and press "Continue":
-
Fill form values as shown on the screenshots below:
Storefront properies tab:
Layout updates:
Widget options tab (Choose listing mode between "list" and "grid"):
-
Save widget, clear cache and navigate to your store frontend:
This tutorial can be used to add widget to any other cms page or block.
-
Navigate to "Content > Pages" (Or "Content > Blocks", if you are using Luma theme) and open Homepage (Or Block) to edit.
-
Press "Insert Widget" button:
-
Select "Also Viewed Widget" and fill form values as shown below:
Title value is not used. See next point screenshot for explanation.
-
Add additional markup:
-
Save page, clear cache and navigate to frontend: