Storing a collection of recently viewed products for each visitor to your website is a great way to increase engagement and sales for your store. We will look at two different ways you can easily add this feature to a Sitecore SXA website. First, we’ll see how you can do this on the server side, using the SXA API to quickly generate the product data.
In our last post we created a server-side component to store and display recently viewed products in Sitecore. This quick approach got the job done, but doesn’t quite line up with the other SXA components, which use client-side rendering with Knockout JS. In this post we’ll create this same component using an approach more aligned with the other components in SXA.
Using a mobile device with a rear-facing camera, and a modern browser, I'll show you how we built a bar code scanner that automatically loads CC Products (by SKU or UPC) into a CC Cart.