@@ -2,32 +2,98 @@ sylius_fixtures:
2
2
suites :
3
3
default :
4
4
fixtures :
5
+
6
+ catalog_promotion_taxons :
7
+ name : taxon
8
+ options :
9
+ custom :
10
+ taxon_santa_caps :
11
+ code : " santa_caps"
12
+ slug : " santa-caps"
13
+ children :
14
+ - code : " pompon_santa_caps"
15
+ slug : " santa-caps/pompon"
16
+ name : " Santa caps with pompon"
17
+
5
18
product :
6
19
options :
7
20
custom :
21
+ product_cap_with_pompon :
22
+ code : " pompon_cap"
23
+ name : " Cap with pompon"
24
+ main_taxon : " caps"
25
+ taxons :
26
+ - ' caps'
27
+ - ' caps_with_pompons'
28
+ images :
29
+ - { path: '@SyliusCoreBundle/Resources/fixtures/caps/cap_01.jpg', type: 'main' }
30
+ channels :
31
+ - " FASHION_WEB"
32
+
8
33
product_santa_cap :
9
- code : " santa-cap"
34
+ code : " santa_cap"
35
+ slug : " santa-cap"
10
36
name : " Santa cap"
11
37
main_taxon : " caps"
12
38
taxons :
13
39
- ' caps'
40
+ - ' santa_caps'
14
41
images :
15
42
- { path: '@SyliusCoreBundle/Resources/fixtures/caps/cap_03.jpg', type: 'main' }
16
43
channels :
17
44
- " FASHION_WEB"
18
45
46
+ product_santa_cap_with_pompon :
47
+ code : " pompon_santa_cap"
48
+ slug : " pompon-santa-cap"
49
+ name : " Santa cap with pompon"
50
+ main_taxon : " caps"
51
+ taxons :
52
+ - ' caps'
53
+ - ' santa_caps'
54
+ - ' pompon_santa_caps'
55
+ images :
56
+ - { path: '@SyliusCoreBundle/Resources/fixtures/caps/cap_01.jpg', type: 'main' }
57
+ channels :
58
+ - " FASHION_WEB"
59
+
19
60
catalog_promotion_random :
20
61
name : catalog_promotion
21
62
options :
22
63
random : 10
23
64
prototype :
24
65
rules :
25
- - type : " has_taxon"
26
- configuration :
27
- taxons :
28
- - " jeans"
66
+ - type : " has_taxon"
67
+ configuration :
68
+ taxons :
69
+ - " jeans"
70
+
71
+ catalog_promotion_tshirts :
72
+ name : catalog_promotion
73
+ options :
74
+ custom :
75
+ thirts :
76
+ code : " thirts_50_off"
77
+ name : " -90% for tshirts (except mens)"
78
+ priority : 1000
79
+ exclusive : true
80
+ starts_at : " now"
81
+ ends_at : " +14 day"
82
+ enabled : true
83
+ discount : 90.00
84
+ rules :
85
+ - type : " has_taxon"
86
+ configuration :
87
+ taxons :
88
+ - " t_shirts"
89
+ - type : " has_not_taxon"
90
+ configuration :
91
+ taxons :
92
+ - " mens_t_shirts"
93
+ channels :
94
+ - " FASHION_WEB"
29
95
30
- catalog_promotion_custom :
96
+ catalog_promotion_caps :
31
97
name : catalog_promotion
32
98
options :
33
99
custom :
@@ -39,10 +105,10 @@ sylius_fixtures:
39
105
enabled : true
40
106
discount : 20.00
41
107
rules :
42
- - type : " has_taxon"
43
- configuration :
44
- taxons :
45
- - " caps"
108
+ - type : " has_taxon"
109
+ configuration :
110
+ taxons :
111
+ - " caps"
46
112
accidentally_disabled :
47
113
code : " accidentally_disabled"
48
114
name : " Accidentally disabled catalog promotion"
@@ -51,10 +117,10 @@ sylius_fixtures:
51
117
enabled : false
52
118
discount : 10.00
53
119
rules :
54
- - type : " has_taxon"
55
- configuration :
56
- taxons :
57
- - " caps"
120
+ - type : " has_taxon"
121
+ configuration :
122
+ taxons :
123
+ - " caps"
58
124
59
125
ny_caps_50_off :
60
126
code : " ny_caps_50_off"
@@ -67,12 +133,16 @@ sylius_fixtures:
67
133
enabled : true
68
134
discount : 50.00
69
135
rules :
70
- - type : " has_taxon"
71
- configuration :
72
- taxons :
73
- - " caps"
136
+ - type : " has_taxon"
137
+ configuration :
138
+ taxons :
139
+ - " caps"
140
+ - type : " has_not_taxon"
141
+ configuration :
142
+ taxons :
143
+ - " pompon_santa_caps"
74
144
channels :
75
- - " FASHION_WEB"
145
+ - " FASHION_WEB"
76
146
77
147
ny_santa_cap_75_off :
78
148
code : " ny_santa_cap_75_off"
@@ -85,11 +155,11 @@ sylius_fixtures:
85
155
enabled : true
86
156
discount : 75.00
87
157
rules :
88
- - type : " contains_product"
89
- configuration :
90
- product : " santa-cap "
158
+ - type : " contains_product"
159
+ configuration :
160
+ product : " santa_cap "
91
161
channels :
92
- - " FASHION_WEB"
162
+ - " FASHION_WEB"
93
163
94
164
bf_santa_cap_75_off :
95
165
code : " bf_santa_cap_75_off"
@@ -102,9 +172,9 @@ sylius_fixtures:
102
172
enabled : true
103
173
discount : 75.00
104
174
rules :
105
- - type : " contains_products"
106
- configuration :
107
- products :
108
- - " santa-cap "
175
+ - type : " contains_products"
176
+ configuration :
177
+ products :
178
+ - " santa_cap "
109
179
channels :
110
- - " FASHION_WEB"
180
+ - " FASHION_WEB"
0 commit comments