Recently Viewed / Compared Products

The Recently Viewed and Recently Compared blocks usually appear in the right sidebar of a catalog page. The number of products listed in each block can be configured for each website, store, or store view.

Configure Recently Viewed/Compared Products

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel, expand Catalog and choose Catalog underneath.

  3. Expand Expansion selector the Recently Viewed/Compared Products section and do the following:

    Catalog configuration - recently viewed/compared products Recently Viewed/Compared Products

    • Set Synchronize widget products with backend storage to synchronize product widget information, such as product ID, with your current product storage availability in the database and reuse this information on different devices.

    • Set Show for Current to the website, store, or store view where the configuration applies.

    • In the Default Recently Viewed Products Count field, enter the number of recently viewed products to appear in the list.

    • For Default Recently Compared Products Count, enter the number of recently compared products to appear in the list.

    • For Lifetime of products in Recently Viewed Widget, enter any time range in seconds, greater than zero. This setting determines how long the viewed products will be shown in the recently viewed list.

    • For Lifetime of products in Recently Compared Widget, enter any time range in seconds, greater than zero. This setting determines how long the compared products will be shown in the recently compared list.

  4. When complete, click Save Config.