Widget that displays a specified number of best sellers in the same category.
This widget only works on a Woocommerce single product page. When it is placed there, it will parse the
Category location (set in the widget's settings) for the any subcategories of the parent category. It will then list the best sellers, by subcategory, in widget form.
Here is an example case: We have mutliple authors that each have tons of products. Product categories are as follows: - Books - fiction - nonfiction - Authors - Author 1 - Author 2 - Author 3
In our case, our widget's
Category location is
Authors (the category). When you go to a product filed in
Author 1, in the sidebar, all of Author 1's other products are listed in order of best selling.
If there is more than one category that it falls under, it will list them all. It ignores the current product. It also hide itself if this is the only product in that subcategory.