Log in
Model

Option

Magento\Catalog\Model\ResourceModel\Product\Option

What it does

This resource model manages database operations for product custom options in Magento 2.

Developers use this class when working with custom product options to handle saving, deleting, and duplicating option data including prices, titles, and searchable content across different store views.

It's particularly useful when creating custom functionality that needs to manipulate product options or when extending the catalog module.

Public Methods

  • deletePrices()
  • deleteTitles()
  • duplicate()
  • getSearchableData()
  • getPriceTypes()