BricksUltimate added the Recently Viewed Products query loop provider for the Bricks site and synced it with the WooCommerce Recently Viewed cookie. So you can easily create the Recently Viewed Products section on the single product page or any other page or sidebar.
We created the loop provider, so you can create the custom layout quickly.
Steps:
- Open the Bricks editor and add a container on the canvas
- Enable the Query Loop option
- Click on the Query icon and select the Ultimate Woo Query Builder from the Type dropdown
- Turn off the Query popup and you will get some extra options below the Query option
- Select the Recently Viewed Products from the Woo Query Type dropdown
- Select the other option as per your need
- Add the nested elements like image, heading, add to cart button, price, etc inside the loop query container and create your layout
- All done
When the user visits the single product page, this loop will be executed and show the recently viewed products on the site.
Preview
Element Condition: Has recently viewed products?
There is an element condition “Has recently viewed products?”. You can toggle your recently viewed products section based on this element condition.
How do we disable the WooCommerce recently viewed cookie?
BricksUltimate automatically registers the WooCommerce recently viewed cookie when you are visiting the single product page. It is triggering all the time and tracking the visited product details. You can disable it if you are not using this feature on your shop site.
- Go to your dashboard
- Click on the Bricks -> BricksUltimate -> Misc Tab
- Enable the “Disable Recently Viewed Cookie” option
Now BricksUltimate will not register this cookie for your site.