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
magento2-base
dev
tests
api-functional
testsuite
Magento
Catalog
Api
_files
product_options_negative.php
Go to the documentation of this file.
1
<?php
7
return
[
8
'empty_required_field'
=> [
9
'title'
=>
null
,
10
'type'
=>
'field'
,
11
'sort_order'
=> 1,
12
'is_require'
=> 1,
13
'price'
=> 10.0,
14
'price_type'
=>
'fixed'
,
15
'sku'
=>
'sku1'
,
16
'max_characters'
=> 10,
17
],
18
'negative_value_of_image_size'
=> [
19
'title'
=>
'file option'
,
20
'type'
=>
'file'
,
21
'sort_order'
=> 3,
22
'is_require'
=> 1,
23
'price'
=> 30,
24
'price_type'
=>
'percent'
,
25
'sku'
=>
'sku3'
,
26
'file_extension'
=>
'jpg'
,
27
'image_size_x'
=> -10,
28
'image_size_y'
=> -20,
29
],
30
'option_with_type_select_without_options'
=> [
31
'title'
=>
'drop_down option'
,
32
'type'
=>
'drop_down'
,
33
'sort_order'
=> 4,
34
'is_require'
=> 1,
35
],
36
'title_is_empty'
=> [
37
'title'
=>
'radio option'
,
38
'type'
=>
'radio'
,
39
'sort_order'
=> 5,
40
'is_require'
=> 1,
41
'values'
=> [
42
[
43
'price'
=> 10.0,
44
'price_type'
=>
'fixed'
,
45
'sku'
=>
'radio option 1 sku'
,
46
'title'
=>
null
,
47
'sort_order'
=> 1,
48
],
49
],
50
],
51
'option_with_non_existing_price_type'
=> [
52
'title'
=>
'checkbox option'
,
53
'type'
=>
'checkbox'
,
54
'sort_order'
=> 6,
55
'is_require'
=> 1,
56
'values'
=> [
57
[
58
'price'
=> 10.0,
59
'price_type'
=>
'fixed_one'
,
60
'sku'
=>
'checkbox option 1 sku'
,
61
'title'
=>
'checkbox option 1'
,
62
'sort_order'
=> 1,
63
],
64
],
65
],
66
'option_with_non_existing_option_type'
=> [
67
'title'
=>
'multiple option'
,
68
'type'
=>
'multiple_some_value'
,
69
'sort_order'
=> 7,
70
'is_require'
=> 1,
71
'values'
=> [
72
[
73
'price'
=> 10.0,
74
'price_type'
=>
'fixed'
,
75
'sku'
=>
'multiple option 1 sku'
,
76
'title'
=>
'multiple option 1'
,
77
'sort_order'
=> 1,
78
],
79
],
80
],
81
];