Skip to content
Advertisement

Magento get the SKU of the first simple product in configurable

I need to get the SKU for a simple product that is part of a configurable in Magento.

Something along the lines of:

JavaScript

Also how can I check for the product type?

Thanks.

Advertisement

Answer

Magento 1

Did not tested but should work:

JavaScript

You can use:

JavaScript

To check type of product.

Magento 2

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement