Giter VIP home page Giter VIP logo

Comments (3)

Vinai avatar Vinai commented on June 12, 2024

Hi Alex, thanks for your report.
To summarize, I'm sorry to say the extension is working as intended.
Here the background information if you are interested:
Products are independent of categories. The following scenario might clarify:

  • Product A is associated to category CatA and also to category CatB
  • Product A is visible to the current customer
  • CatB is hidden to the current customer
  • CatA is visible to the current customer

Now, if category visibility would be applied to associated products, would ProductA be visible to the current customer or hidden? There is no right answer.
Even if a product is associated with only a single hidden category, should that product then be visible when viewed as a simple product in a grouped or configurable product, or through the search?

The only real solution is to re-think the catalog structure to not use category visibility do define product visibility.

from groupscatalog2.

Zifius avatar Zifius commented on June 12, 2024

You are right, should be done more properly but I can't see a feasible solution without duplicating products. Problem was
Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($linkCollection);
in Enterprise_TargetRule_Block_Catalog_Product_List_Abstract::_getPreparedTargetLinkCollection which joins default category of the store view besides applying visibility. I've hacked it a bit by adding second level categories from Group Catalog index, seems to work, but not ideal solution
Thanks for the reply!

from groupscatalog2.

Vinai avatar Vinai commented on June 12, 2024

I can't think of a way without duplicating the products, either. Except for a "apply-to-products" flag on the category settings or something like that.
But that would make some things a lot more complex, so I'd rather not implement that, unless it's needed by many users.
Thanks for your thoughts!

from groupscatalog2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.