I
I
Ivan Cherny2015-08-26 21:32:27
PHP
Ivan Cherny, 2015-08-26 21:32:27

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

2 answer(s)
I
Ivan Cherny, 2015-09-30
@paalomnik

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

O
Oleg Batishchev, 2015-09-12
@z0rg

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 question

Ask a Question

731 491 924 answers to any question