| @@ -265,8 +265,35 @@ | ||
| 265 | 265 | ), |
| 266 | 266 | ), |
| 267 | 267 | |
| 268 | 268 | array( |
| 269 | + 'id' => 'include_subcategories', | |
| 270 | + 'type' => 'switcher', | |
| 271 | + 'title' => esc_html__( 'Include subcategories', 'merchant' ), | |
| 272 | + 'desc' => esc_html__( 'When enabled, selecting a parent category also applies to all of its child categories.', 'merchant' ), | |
| 273 | + 'default' => 0, | |
| 274 | + 'conditions' => array( | |
| 275 | + 'relation' => 'OR', | |
| 276 | + 'terms' => array( | |
| 277 | + array( | |
| 278 | + 'field' => 'trigger_on', | |
| 279 | + 'operator' => '===', | |
| 280 | + 'value' => 'category', | |
| 281 | + ), | |
| 282 | + array( | |
| 283 | + 'field' => 'exclude_categories_toggle', | |
| 284 | + 'operator' => '===', | |
| 285 | + 'value' => true, | |
| 286 | + ), | |
| 287 | + ), | |
| 288 | + ), | |
| 289 | + 'ai_meta' => array( | |
| 290 | + 'semantic_group' => 'product_targeting', | |
| 291 | + 'usage_hint' => 'Enable so selected parent categories also cover their child categories, for both targeting and exclusion. Off by default, which matches only the exact categories chosen.', | |
| 292 | + ), | |
| 293 | + ), | |
| 294 | + | |
| 295 | + array( | |
| 269 | 296 | 'id' => 'exclude_tags_toggle', |
| 270 | 297 | 'type' => 'switcher', |
| 271 | 298 | 'title' => esc_html__( 'Exclude tags', 'merchant' ), |
| 272 | 299 | 'desc' => esc_html__( 'Exclude specific tags from this pre-order campaign.', 'merchant' ), |