Answer the question
In order to leave comments, you need to log in
How to select available super-attributes of a configurable product?
The task was to build an optimal selection of super attributes available in the stock.
Approximate functionality: you hover over a product in the catalog grid and get a popup like "available colors: red, green; available sizes: S, M". getConfigurableAttributeAsArray is not suitable for eating, they advised joinAttribute, but I did not find normal manuals for use. I would be grateful if you poke your nose or give an idea.
Answer the question
In order to leave comments, you need to log in
Everything turned out to be much simpler, it is enough to get the super-attributes of the product, and then attach them in the request via joinAttribute
Will it be for the admin? not very resource-intensive to pull out such data for the admin panel for each product in the grid, also taking into account the stock inventory?
more or less like this
Next, through foreach, we iterate
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question