I want to show product1 is only to the logged in customers and this product is not visible in STORE view.

Does anyone have a solution for this?



First you have to create one attribute to product for its visibility condition.

use catalog_product_collection_load_before event to filter the product collection based on user is logged in or not.

take a look at this question for more detail.

probably not best solution but can be helpful to start.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.