Hide category if logged-in user already bought a product from a category WooCommerce - php

I want to hide all the products from a specific category for a user if he already bought a product from that category.
Example: Andreea bought a T-shirt from the Clothes category. Now, in the shop page, Andreea won't be able to see products from the Clothes category.
I need a code for functions.php not a plugin
Thanks :)

Related

Is it possible to show in woocommerce products admin panel the aggregate rating of a product?

I am trying to figure out if it is possible, when I display my product list in woocommerce admin next to the name of the product to show the stars and rating of those products which have ratings.
thank you

Woo-commerce Product Parent category then show child categories and then products related to child categories

i am trying to show on my custom template name (Brands.php) all brands from brand category(i-e Acson,samsung,lg,eco-star etc)when click on any of brand category it will show appliances related to that brand(e.g if i click samsung it will show me airconditioner,LCD's,refrigrator etc etc)and in each sub-category it will show products like. The product should be shown like woocommerce shop layout. Any help would be appriciated. Need effective query or woocommerce hook or filter for doing work like this.

How to show sub category inside parent category for woo commerce products

I'm building woo commerce online store i'm facing one problem that i'm unable to show sub-categories inside parent category. I try to find plugin or any other solution but i didn't get any thing. All categories are displaying in the main product page i want to show only parent category in the main product page and all sub-categories inside the parent/main category page.
E.g
I have two main categories
Men
Women
And both have subcategories such as t-shirt , apparels , pants etc.
I need to know how to show sub-category inside parent category page.
I have found the solution just add parent="0" in woo commerce product short code at shop page.
[product_categories number="12" parent="0"]

Display All simple products of a grouped product as list view in magento product page

i had a catalog with 29 products and when the catalog is clicked its products are to be displayed as list view as all grouped products are displayed, is there any extension for this or any help is to be appreciated
Make it a related product.
Go to admin
select a product
Go to related product
then reset the filter and select all the rest 28 products that you want to link to that product.
all the related products of a product are then displayed on the product view page.
do clean your cache before testing

Magento Category Manufacturer setup

I need a help with Magento Category Manufacturer.
Currently, the Main category is divided into two sub-categories - Manufacturer and Product category.
Root category
-Manufacturer
--M1
--M2
--M3
-Category
--Cat1
--Cat2
--Cat3
When a product is added, the admin selects the Manufacturer and also the category type.
What we need is - from the Frontend, when user click on a Manufacturer link, it will 1st show available Categories under that Manufacturer, then when clicked on the Category, it will show the products under that Category by that Manufacturer.
Currently, when we click on the manufacturer link, it shows all it products.
Some times might be you are some missing configuration or not assign product to specific category.
just go throw below two links to manage product and category
How to Manage Category
How to Manage Product
i hope it will sure help you to solve your problem.
Check this,
http://www.templatemonster.com/help/magento-listing-sub-categories-on-a-category-page.html
it will list sub-categories on specific category page.

Categories