Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/magento/module-sales-rule/Test/Unit/Model/Rule/Metadata/_files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/magento/module-sales-rule/Test/Unit/Model/Rule/Metadata/_files/MetaData.php
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

return [
    'rule_information' => [
        'children' => [
            'website_ids' => ['arguments' => ['data' => ['config' => ['options' => []]]]],
            'is_active' => [
                'arguments' => [
                    'data' => [
                        'config' => [
                            'options' => [
                                [
                                    'label' => __('Active'),
                                    'value' => '1',
                                ],
                                [
                                    'label' => __('Inactive'),
                                    'value' => '0',
                                ],
                            ],
                        ],
                    ],
                ],
            ],
            'customer_group_ids' => ['arguments' => ['data' => ['config' => ['options' => []]]]],
            'coupon_type' => [
                'arguments' => [
                    'data' => [
                        'config' => [
                            'options' => [
                                [
                                    'label' => 'couponType1',
                                    'value' => 'key1',
                                ],
                                [
                                    'label' => 'couponType2',
                                    'value' => 'key2',
                                ],
                            ],
                        ],
                    ],
                ],
            ],
            'is_rss' => [
                'arguments' => [
                    'data' => [
                        'config' => [
                            'options' => [
                                [
                                    'label' => __('Yes'),
                                    'value' => '1',
                                ],
                                [
                                    'label' => __('No'),
                                    'value' => '0',
                                ],
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
    'actions' => [
        'children' => [
            'simple_action' => [
                'arguments' => [
                    'data' => [
                        'config' => [
                            'options' => [
                                [
                                    'label' => __('Percent of product price discount'),
                                    'value' => 'by_percent',
                                ],
                                [
                                    'label' => __('Fixed amount discount'),
                                    'value' => 'by_fixed',
                                ],
                                [
                                    'label' => __('Fixed amount discount for whole cart'),
                                    'value' => 'cart_fixed',
                                ],
                                [
                                    'label' => __(
                                        'Buy X get Y free (discount amount is Y)'
                                    ),
                                    'value' => 'buy_x_get_y',
                                ],
                            ],
                        ],
                    ],
                ],
            ],
            'discount_amount' => ['arguments' => ['data' => ['config' => ['value' => '0']]]],
            'discount_qty' => ['arguments' => ['data' => ['config' => ['value' => '0']]]],
            'apply_to_shipping' => [
                'arguments' => [
                    'data' => [
                        'config' => [
                            'options' => [
                                [
                                    'label' => __('Yes'),
                                    'value' => '1'
                                ],
                                [
                                    'label' => __('No'),
                                    'value' => '0'
                                ],
                            ],
                        ],
                    ],
                ],
            ],
            'stop_rules_processing' => [
                'arguments' => [
                    'data' => [
                        'config' => [

                            'options' => [
                                [
                                    'label' => __('Yes'),
                                    'value' => '1'
                                ],

                                [
                                    'label' => __('No'),
                                    'value' => '0'
                                ],
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
    'labels' => ['children' => ['store_labels[0]' => ['arguments' => ['data' => ['config' => ['value' => 'label0']]]]]],
];

Spamworldpro Mini