Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
As far as I understand, such functionality is done through attributes!
prntscr.com/7m9nve
prntscr.com/7m9o2s
$prod = Mage::getModel('catalog/product')->loadByAttribute('sku', $sku);
echo $prod->getSize() . ' - ' . $prod->getAttributeText('size');
It highly depends on how it is implemented, Magento is so flexible that the same thing can be done in almost 2-4 ways, but in the end only 1-2 will be correct with further changes, improvements, refactoring, scope expansion, etc.
In this case, this should be implemented through the superattributes of a custom product, and the output will be tied to Stock Inventory, because it makes no sense for us to display the sizes of which are not, ended or did not exist at all.
Written just above will only help for a specific simple product, your option is to modify the catalog/product/list.phtml product listing template and it will look something like this:
Next, we display the attributes in the foreach loop and filter if only 1 needs to be selected.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question