New answers tagged

0 votes

Where's the order item custom options labels in the REST API?

You can retrieve the option labels from the catalog product endpoint like this: GET /rest/default/V1/products/{sku}/options/{optionId} The label will be returned in the response under title.
0 votes

M2 - Check if product has custom options

For Magento 2.4 the following checks (in this order) if a product is configurable or if it has options if ($_product->getTypeId() == \Magento\ConfigurableProduct\Model\Product\Type\Configurable::...

Top 50 recent answers are included