Log in
Repository

ProductCustomOptionRepositoryInterface

Magento\Catalog\Api\ProductCustomOptionRepositoryInterface

What it does

This repository interface manages custom product options in Magento 2's catalog system.

Developers use it to retrieve, create, update, delete, and duplicate custom options (like text fields, dropdowns, file uploads) that customers can configure when purchasing products.

It provides methods to work with options by product SKU or product object, including filtering for required options only.

Public Methods

  • getList()
  • getProductOptions()
  • get()
  • delete()
  • duplicate()
  • save()
  • deleteByIdentifier()