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-offline-shipping
Model
Source
SalesRule
FreeShippingOptions.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\OfflineShipping\Model\Source\SalesRule
;
7
8
use
Magento\Framework\Data\OptionSourceInterface
;
9
use
Magento\OfflineShipping\Model\SalesRule\Rule
;
10
15
class
FreeShippingOptions
implements
OptionSourceInterface
16
{
22
public
function
toOptionArray
()
23
{
24
return
[
25
[
26
'value'
=> 0,
27
'label'
=>
__
(
'No'
)
28
],
29
[
30
'value'
=>
Rule::FREE_SHIPPING_ITEM
,
31
'label'
=>
__
(
'For matching items only'
)
32
],
33
[
34
'value'
=>
Rule::FREE_SHIPPING_ADDRESS
,
35
'label'
=>
__
(
'For shipment with matching items'
)
36
]
37
];
38
}
39
}
Magento\OfflineShipping\Model\Source\SalesRule\FreeShippingOptions\toOptionArray
toOptionArray()
Definition:
FreeShippingOptions.php:22
Magento\OfflineShipping\Model\SalesRule\Rule
Definition:
Rule.php:18
__
__()
Definition:
__.php:13
Magento\OfflineShipping\Model\Source\SalesRule\FreeShippingOptions
Definition:
FreeShippingOptions.php:15
Magento\Framework\Data\OptionSourceInterface
Definition:
OptionSourceInterface.php:14
Magento\OfflineShipping\Model\SalesRule\Rule\FREE_SHIPPING_ADDRESS
const FREE_SHIPPING_ADDRESS
Definition:
Rule.php:28
Magento\OfflineShipping\Model\SalesRule\Rule\FREE_SHIPPING_ITEM
const FREE_SHIPPING_ITEM
Definition:
Rule.php:23
Magento\OfflineShipping\Model\Source\SalesRule
Definition:
FreeShippingOptions.php:6