New answers tagged custom-options
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.
- 901
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::...
- 1
Top 50 recent answers are included
Related Tags
custom-options × 1055magento2 × 298
magento-1.9 × 246
product × 142
configurable-product × 90
price × 72
cart × 68
magento-1.7 × 47
addtocart × 47
magento-2.1 × 43
product-attribute × 42
attributes × 41
magento-1.8 × 38
event-observer × 32
orders × 30
magento-1 × 28
custom × 27
products × 25
module × 24
php × 21
magento2.3 × 20
ce-1.7.0.2 × 20
simple-product × 19
checkout × 18
programmatically × 16