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, including saving, deleting, and duplicating option prices and titles across different store views.

Developers use this class when working with customizable product options that allow customers to personalize products with additional choices, text fields, or file uploads.

It handles multi-store pricing with currency conversion and store-specific option titles.

Public Methods

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