View Code? Open in Web Editor
NEW
Magento2 get Configurable product by child (Simple) sku or id
Home Page: https://www.amitbera.com
mse-get-parent-product-configurable-by-child-product's Introduction
- ๐ Hi, Iโm Amit Bera
- ๐ Iโm interested in Technology
- ๐ฑ Iโm currently learning AWS
- ๐๏ธ Iโm looking to collaborate
- ๐ซ How to reach me ...
mse-get-parent-product-configurable-by-child-product's People
Contributors
Stargazers
Watchers
mse-get-parent-product-configurable-by-child-product's Issues
line 68
instead " if ($child->getTypeId() != \Magento\ConfigurableProduct\Model\Product\Type\Configurable::TYPE_CODE) {"
change to
if ($child->getTypeId() == \Magento\ConfigurableProduct\Model\Product\Type\Configurable::TYPE_CODE) {
(sign "!=" replace with "==")
;)
the endpoint always returning an empty array, whatever I passed for it (child, Parent, simple nonchild)