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-rule
Model
Rule
Action
SimpleActionOptionsProvider.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\CatalogRule\Model\Rule\Action
;
7
8
class
SimpleActionOptionsProvider
implements
\Magento\Framework\Data\OptionSourceInterface
9
{
13
public
function
toOptionArray
()
14
{
15
return
[
16
[
17
'label'
=>
__
(
'Apply as percentage of original'
),
18
'value'
=>
'by_percent'
19
],
20
[
21
'label'
=>
__
(
'Apply as fixed amount'
),
22
'value'
=>
'by_fixed'
23
],
24
[
25
'label'
=>
__
(
'Adjust final price to this percentage'
),
26
'value'
=>
'to_percent'
27
],
28
[
29
'label'
=>
__
(
'Adjust final price to discount value'
),
30
'value'
=>
'to_fixed'
31
]
32
];
33
}
34
}
Magento\CatalogRule\Model\Rule\Action\SimpleActionOptionsProvider\toOptionArray
toOptionArray()
Definition:
SimpleActionOptionsProvider.php:13
__
__()
Definition:
__.php:13
Magento\CatalogRule\Model\Rule\Action
Definition:
Collection.php:6
Magento\Framework\Data\OptionSourceInterface
Definition:
OptionSourceInterface.php:14
Magento\CatalogRule\Model\Rule\Action\SimpleActionOptionsProvider
Definition:
SimpleActionOptionsProvider.php:8