Repository
ProductCustomOptionRepositoryInterface
Magento\Catalog\Api\ProductCustomOptionRepositoryInterface
What it does
This interface defines methods for managing custom product options in Magento 2, such as dropdown fields, text inputs, or file uploads that customers can configure when purchasing a product.
Developers use this repository to programmatically retrieve, create, update, delete, or duplicate custom options for products, either by product SKU or by passing product objects directly.
Public Methods
- getList()
- getProductOptions()
- get()
- delete()
- duplicate()
- save()
- deleteByIdentifier()