How could I add recently viewed products grid to customer account page?
Hi @Baggio ,
This is Kate from PageFly - Landing page builder.
To add a recently viewed products grid to the customer account page in Shopify, you can use the following steps:
- Create a new section in your theme’s code for the recently viewed products grid.
- Use JavaScript to store the recently viewed products in a cookie or local storage on the customer’s device.
- Use Liquid to retrieve and display the stored products in the recently viewed products grid section.
- Customize the layout and style of the recently viewed products grid to match the look and feel of your store.
Here is an example of the Liquid code you can use to display the recently viewed products:
## Recently Viewed Products
{% for product in recently_viewed_products %}
- {{ product.title }}
{% endfor %}
This code is just an example and may need to be adjusted based on your specific requirements. Hope my answer will help you
Hello Baggio. Did you find a solution?