Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog
Api
ProductCustomOptionRepositoryInterface.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Api
;
8
13
interface
ProductCustomOptionRepositoryInterface
14
{
21
public
function
getList
($sku);
22
29
public
function
getProductOptions
(
30
\
Magento
\Catalog\Api\Data\
ProductInterface
$product
,
31
$requiredOnly =
false
32
);
33
41
public
function
get
($sku,
$optionId
);
42
49
public
function
delete
(
\Magento\Catalog\Api\Data\ProductCustomOptionInterface
$option
);
50
59
public
function
duplicate
(
60
\
Magento
\Catalog\Api\Data\
ProductInterface
$product
,
61
\
Magento
\Catalog\Api\Data\
ProductInterface
$duplicate
62
);
63
70
public
function
save
(\
Magento
\Catalog\Api\Data\
ProductCustomOptionInterface
$option
);
71
77
public
function
deleteByIdentifier
($sku,
$optionId
);
78
}
Magento\Catalog\Api
Definition:
AttributeSetManagementTest.php:7
Magento\Catalog\Api\ProductCustomOptionRepositoryInterface\save
save(\Magento\Catalog\Api\Data\ProductCustomOptionInterface $option)
Magento\Catalog\Api\ProductCustomOptionRepositoryInterface\getProductOptions
getProductOptions(\Magento\Catalog\Api\Data\ProductInterface $product, $requiredOnly=false)
Magento\Catalog\Api\ProductCustomOptionRepositoryInterface\getList
getList($sku)
Magento\Catalog\Api\ProductCustomOptionRepositoryInterface\duplicate
duplicate(\Magento\Catalog\Api\Data\ProductInterface $product, \Magento\Catalog\Api\Data\ProductInterface $duplicate)
Magento\Catalog\Api\ProductCustomOptionRepositoryInterface
Definition:
ProductCustomOptionRepositoryInterface.php:13
Magento
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
$optionId
$optionId
Definition:
product_with_custom_option.php:53
Magento\Catalog\Api\Data\ProductInterface
Definition:
ProductInterface.php:14
Magento\Catalog\Api\ProductCustomOptionRepositoryInterface\deleteByIdentifier
deleteByIdentifier($sku, $optionId)
$option
$option
Definition:
product_configurable_with_single_child.php:38
Magento\Catalog\Api\Data\ProductCustomOptionInterface
Definition:
ProductCustomOptionInterface.php:13