This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user has a view that is listing their products but wanted to filter this view to only list the featured woocommerce products.
Solution:
For this to work you must first create a view that would list all the products.
Then you would add the following to your functions.php file
I am trying to: create view loop for featured items in toolset. I have marked a couple of woocommerce products as featured, and went to toolset > settings > front-end content > select custom fields (From hidden custom fields) and the "_featured" field is not showing
Second thing is TOOLSET provide template for single product. Is there anyway I can customize product category page? (Which shows products when click to any category)
If yes please mention the steps.
Thank you for the solution, but I do not wanted to check if a product is featured or not. My products are showing featured I just need to show featured product in FIELD and VIEW so that I can show featured products on any page.
You have defined these products as featured in woocommerce correct?
Perhaps i'm not understanding correctly. However since woocommerce have changed how featured products are defined, we needed to use a custom shortcode to know if a product is featured or not.
This solution is just to check if a product is featured. This way you can use our conditional code to display only those that are featured.
Let me clear out.
1. I want to show featured products on a page designed in DIVI.
2. I seen that featured products tab is not in the Fields and Views shortcodes (see image 1). When I search for this issue this is the solution I've found https://toolset.com/forums/topic/toolset-views-not-showing-_featured-in-view-gui-for-woocommerce/.
3. But when I went to toolset > settings > front-end content > select custom fields (From hidden custom fields), I've noticed the "_featured" field is not showing up.(see image 2)
4. You are mentioning the ticket for the solution if I'm able to tell if a product is feature or not.
5. I've checked the product is featured and shown up in featured but by DIVI shop module. (see image 4)
6. It must be by shown by shortcodes or anything similar to it because I only have access to this see image 5.
7. I just want to show the product on my page that are ticked as Featured by using TOOLSET.(see image 3)
Furthermore, I have added code in the function.php that you have shared. (Image 1)
and then call for the featured Products (image 2)
but still not fetching the Featured products (image 3)
If you already have a view that is listing products then you need to replace the 10 in this code to the ID of your view. This will cause the view to only list the products that are marked as featured.