Plugin Directory

Changeset 2868951


Ignore:
Timestamp:
02/21/2023 06:29:59 PM (3 years ago)
Author:
ascendedcrow
Message:

Version = 1.0.21 =

Location:
shop-2-api/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • shop-2-api/trunk/assets/shop2api_order.js

    r2858515 r2868951  
    4141
    4242        // Select change
    43         $(document).on( 'change', '#orders-ean', handle_cat_change);
     43        $(document).on( 'change', '#orders-ean', handle_cat_change_ean);
     44        $(document).on( 'change', '#orders-combideal-ean', handle_cat_change_ean_combi);
    4445    })
    4546
    46     function handle_cat_change(e, ) {
     47    function handle_cat_change_ean() {
    4748        $('#orders-ean-value').children().remove()
    4849        if ($(this).val() === 'Product') {
    49             populate_product_dropdown();
     50            populate_product_dropdown($('#orders-ean-value'));
    5051        }
    5152        if ($(this).val() === 'MetaData') {
    52             populate_metadata_dropdown();
     53            populate_metadata_dropdown($('#orders-ean-value'));
     54        }
     55    }
     56
     57    function handle_cat_change_ean_combi() {
     58        $('#orders-combideal-ean-value').children().remove()
     59        if ($(this).val() === 'Product') {
     60            populate_product_dropdown($('#orders-combideal-ean-value'));
     61        }
     62        if ($(this).val() === 'MetaData') {
     63            populate_metadata_dropdown($('#orders-combideal-ean-value'));
    5364        }
    5465    }
     
    6980    }
    7081
    71     function populate_product_dropdown() {
     82    function populate_product_dropdown(_select_ean) {
    7283        let woocommerce_option_properties = settings.wc_field_options.success.schema.properties;
    73         let _select = $('#wc-price-field');
    74         let _select_ean = $('#orders-ean-value');
    7584
    7685        for (const item in woocommerce_option_properties) {
     
    8291                    let value_text = item + '|' + sub_item;
    8392                    let dropdown_values = {"value": value_text, "text": value_text}
    84                     $('<option />', dropdown_values).appendTo(_select);
    8593                    $('<option />', dropdown_values).appendTo(_select_ean);
    8694                }
    8795            } else {
    8896                let dropdown_values = {"value": item, "text": item}
    89                 $('<option />', dropdown_values).appendTo(_select);
    9097                $('<option />', dropdown_values).appendTo(_select_ean);
    9198            }
     
    100107
    101108            $('#orders-active').prop('checked', order_data.active);
     109            $('#orders-combideals-active').prop('checked', order_data.combi_deal_active);
    102110            $('#orders-status').val(order_data.status);
    103111            $('#orders-paid').prop('checked', order_data.paid);
    104112
    105113            document.getElementById("orders-ean").value = order_data.woocommerce_ean_category;
     114            document.getElementById("orders-combideal-ean").value = order_data.combi_deal_ean_category;
     115
    106116            if (order_data.woocommerce_ean_category === 'Product') {
    107                 populate_product_dropdown();
    108                 document.getElementById("orders-ean-value").value = order_data.woocommerce_ean_field;
     117                populate_product_dropdown($('#orders-ean-value'));
     118                populate_product_dropdown($('#orders-combideal-ean-value'));
    109119            }
    110120
    111121            if (order_data.woocommerce_ean_category === 'MetaData') {
    112                 populate_metadata_dropdown();
    113                 document.getElementById("orders-ean-value").value = order_data.woocommerce_ean_field;
     122                populate_metadata_dropdown($('#orders-ean-value'));
     123                populate_metadata_dropdown($('#orders-combideal-ean-value'));
    114124            }
    115125
     126            document.getElementById("orders-ean-value").value = order_data.woocommerce_ean_field;
     127            document.getElementById("orders-combideal-ean-value").value = order_data.combi_deal_ean_field;
    116128            return
    117129        }
     
    120132    }
    121133
    122     // function populate_attribute_dropdown() {
    123     //     for (let i in settings.wc_metadata_dropdown_values.success) {
    124     //         let wc_metadata_val = settings.wc_metadata_dropdown_values.success[i];
    125     //         let _select_ean_dropdown = $('#orders-ean-value');
    126     //
    127     //         let dropdown_values = {
    128     //             'value': wc_metadata_val['bol_category'],
    129     //             'text': wc_metadata_val['woocommerce_field']
    130     //         }
    131     //
    132     //         $('<option />', dropdown_values).appendTo(_select_ean_dropdown);
    133     //     }
    134     // }
    135 
    136     function populate_metadata_dropdown() {
    137         for (i in settings.wc_metadata_dropdown_values.success) {
     134    function populate_metadata_dropdown(_select_ean_dropdown) {
     135        for (let i in settings.wc_metadata_dropdown_values.success) {
    138136            let wc_metadata_val = settings.wc_metadata_dropdown_values.success[i];
    139             let _select_ean_dropdown = $('#orders-ean-value');
    140137
    141138            let dropdown_values = {
  • shop-2-api/trunk/includes/Api/Shop2ApiConnect.php

    r2858515 r2868951  
    456456
    457457    // Set Order data
    458     public function set_order_data($active, $status, $paid, $woocommerce_ean_field, $woocommerce_ean_category)
     458    public function set_order_data(
     459        $active, $status, $paid, $woocommerce_ean_field, $woocommerce_ean_category, $combideal_active,
     460        $combideal_ean_field, $combideal_ean_category
     461    )
    459462    {
    460463        $order = $this->get_order();
     
    476479            "product" => $order["id"],
    477480            "woocommerce_ean_field" => $woocommerce_ean_field,
    478             "woocommerce_ean_category" => $woocommerce_ean_category
     481            "woocommerce_ean_category" => $woocommerce_ean_category,
     482            "combi_deal_active" => ($combideal_active != ''),
     483            "combi_deal_ean_field" => $combideal_ean_field,
     484            "combi_deal_ean_category" => $combideal_ean_category,
    479485        ];
    480486
  • shop-2-api/trunk/includes/Base/AjaxButtonActions.php

    r2858515 r2868951  
    1919    }
    2020
    21     public function register() 
    22     {
     21    public function register(): void
     22    {
    2323        //Bol Api Information
    2424        add_action( 'wp_ajax_get_shop_2_api_information_bol', array( $this, 'get_shop_2_api_information_bol' ) );
     
    7777    }
    7878
    79     private function check_nonce()
    80     {
     79    private function check_nonce(): void
     80    {
    8181        // check the nonce
    8282        if ( ! wp_verify_nonce( $_POST['nonce'], 'ajax-nonce' ) )
     
    8686    }
    8787
    88     public function get_wc_summary_report_offer()
     88    public function get_wc_summary_report_offer(): void
    8989    {
    9090        require_once SHOP2API_PLUGIN_PATH . '/includes/Api/Shop2ApiConnect.php';
     
    9494    }
    9595
    96     public function get_wc_summary_report_product()
     96    public function get_wc_summary_report_product(): void
    9797    {
    9898        require_once SHOP2API_PLUGIN_PATH . '/includes/Api/Shop2ApiConnect.php';
     
    102102    }
    103103
    104     public function get_wc_summary_report_order()
     104    public function get_wc_summary_report_order(): void
    105105    {
    106106        require_once SHOP2API_PLUGIN_PATH . '/includes/Api/Shop2ApiConnect.php';
     
    110110    }
    111111
    112     public function get_wc_order_report_data()
     112    public function get_wc_order_report_data(): void
    113113    {
    114114        require_once SHOP2API_PLUGIN_PATH . '/includes/Api/Shop2ApiConnect.php';
     
    118118    }
    119119
    120     public function set_wc_order_status()
     120    public function set_wc_order_status(): void
    121121    {
    122122        $new_status = $_POST['status'];
     
    129129    }
    130130
    131     public function start_stop_sync_for_wc_id()
     131    public function start_stop_sync_for_wc_id(): void
    132132    {
    133133        $this->check_nonce();
     
    158158    }
    159159
    160     public function remove_ean_from_bol()
     160    public function remove_ean_from_bol(): void
    161161    {
    162162        $this->check_nonce();
     
    165165    }
    166166
    167     public function set_shop_2_api_information_bol() 
    168     {
     167    public function set_shop_2_api_information_bol(): void
     168    {
    169169        $this->check_nonce();
    170170
     
    178178    }
    179179
    180     public function set_shop_2_api_information_wc() 
    181     {
     180    public function set_shop_2_api_information_wc(): void
     181    {
    182182        $this->check_nonce();
    183183
     
    191191    }
    192192
    193     public function get_shop_2_api_information_bol() 
    194     {
     193    public function get_shop_2_api_information_bol(): void
     194    {
    195195        $shop_2_api_response = $this->shop_2_api_connections->get_bol_connection_info();
    196196        $this->handle_api_response($shop_2_api_response);
    197197    }
    198198
    199     public function get_shop_2_api_information_wc() 
    200     {
     199    public function get_shop_2_api_information_wc(): void
     200    {
    201201        $shop_2_api_response = $this->shop_2_api_connections->get_wc_connection_info();
    202202        $this->handle_api_response($shop_2_api_response);
    203203    }
    204204
    205     public function set_shop_2_api_bol_wc_offer_mapping() 
    206     {
     205    public function set_shop_2_api_bol_wc_offer_mapping(): void
     206    {
    207207        $this->check_nonce();
    208208
     
    214214    }
    215215
    216     public function get_woocommerce_values() 
    217     {
     216    public function get_woocommerce_values(): void
     217    {
    218218        $shop_2_api_response = $this->shop_2_api_connections->get_wc_product_values($_POST['value']);
    219219        $this->handle_api_response($shop_2_api_response);
    220220    }
    221221
    222     public function get_bol_offer_info() 
    223     {
     222    public function get_bol_offer_info(): void
     223    {
    224224        $shop_2_api_response = $this->shop_2_api_connections->get_bol_offer_info();
    225225        $this->handle_api_response($shop_2_api_response);
    226226    }
    227227
    228     public function get_bol_category_info() 
    229     {
     228    public function get_bol_category_info(): void
     229    {
    230230        $shop_2_api_response = $this->shop_2_api_connections->get_bol_category_info();
    231231        $this->handle_api_response($shop_2_api_response);
    232232    }
    233233
    234     public function get_bol_category_info_by_value() 
    235     {
     234    public function get_bol_category_info_by_value(): void
     235    {
    236236        $this->check_nonce();
    237237
     
    240240    }
    241241
    242     public function register_shop_2_api_free_account()
    243     {
     242    public function register_shop_2_api_free_account(): void
     243    {
    244244        $shop_2_api_response = $this->shop_2_api_connections->register_shop_2_api_free_account($_POST['email']);
    245245
     
    259259    }
    260260
    261     public function get_bol_wc_mapping_info() 
    262     {
     261    public function get_bol_wc_mapping_info(): void
     262    {
    263263        $shop_2_api_response = $this->shop_2_api_connections->get_bol_wc_mapping_info();
    264264        $this->handle_api_response($shop_2_api_response);
    265265    }
    266266
    267     public function sync_woocommerce_to_bol() 
    268     {
     267    public function sync_woocommerce_to_bol(): void
     268    {
    269269        $shop_2_api_response = $this->shop_2_api_connections->sync_woocommerce_to_bol();
    270270        $this->handle_api_response($shop_2_api_response);       
    271271    }
    272272
    273     public function get_bol_connection_report() 
    274     {
     273    public function get_bol_connection_report(): void
     274    {
    275275        $shop_2_api_response = $this->shop_2_api_connections->get_bol_connection_report();
    276276        $this->handle_api_response($shop_2_api_response);       
    277277    }
    278278
    279     public function get_koopblok_data()
    280     {
     279    public function get_koopblok_data(): void
     280    {
    281281        $shop_2_api_response = $this->shop_2_api_connections->get_koopblok_data();
    282282        $this->handle_api_response($shop_2_api_response);
    283283    }
    284284
    285     public function set_koopblok_data()
    286     {
     285    public function set_koopblok_data(): void
     286    {
    287287        $this->check_nonce();
    288288        $shop_2_api_response = $this->shop_2_api_connections->set_koopblok_data(
     
    300300    }
    301301
    302     public function get_order_data()
     302    public function get_order_data(): void
    303303    {
    304304        $shop_2_api_response = $this->shop_2_api_connections->get_order_data();
     
    306306    }
    307307
    308     public function set_order_data()
     308    public function set_order_data(): void
    309309    {
    310310        $this->check_nonce();
    311311        $shop_2_api_response = $this->shop_2_api_connections->set_order_data(
    312312            $_POST['orders-active'], $_POST['orders-status'], $_POST['orders-paid'], $_POST['orders-ean-value'],
    313             $_POST['orders-ean']
     313            $_POST['orders-ean'], $_POST['orders-combideals-active'], $_POST['orders-combideal-ean-value'],
     314            $_POST['orders-combideal-ean']
    314315        );
    315316
     
    317318    }
    318319
    319     public function get_user_message()
     320    public function get_user_message(): void
    320321    {
    321322        $shop_2_api_response = $this->shop_2_api_connections->get_user_message();
     
    323324    }
    324325
    325     private static function handle_api_response($shop_2_api_response) 
    326     {
     326    private static function handle_api_response($shop_2_api_response): void
     327    {
    327328        $return = 'Error Reaching the Server';
    328329        if ( is_wp_error( $shop_2_api_response ) )
  • shop-2-api/trunk/includes/Base/Enqueue.php

    r2858515 r2868951  
    1111class Shop2Api_Enqueue
    1212{
    13     public function version_id()
     13    public function version_id(): string
    1414    {
    1515        if (WP_DEBUG)
     
    1818    }
    1919
    20     public function register()
     20    public function register(): void
    2121    {
    2222        add_action('admin_notices', array($this, 'get_server_user_message'));
     
    4141     * @param string $taxonomy Taxonomy Slug
    4242     */
    43     public function fire_update_events($term_id, $tt_id, $taxonomy)
     43    public function fire_update_events($term_id, $tt_id, $taxonomy): void
    4444    {
    4545        require_once SHOP2API_PLUGIN_PATH . '/includes/Api/Shop2ApiConnect.php';
     
    5353    }
    5454
    55     public function fire_update_events_attr($id)
     55    public function fire_update_events_attr($id): void
    5656    {
    5757        require_once SHOP2API_PLUGIN_PATH . '/includes/Api/Shop2ApiConnect.php';
     
    6868    }
    6969
    70     public function fire_sync_event($product_id)
     70    public function fire_sync_event($product_id): void
    7171    {
    7272        if (isset($_POST['shop2api_sync_called'])) {
     
    8383    }
    8484
    85     function get_server_user_message()
     85    function get_server_user_message(): void
    8686    {
    8787        require_once SHOP2API_PLUGIN_PATH . '/includes/Base/CommonFunctions.php';
     
    102102    }
    103103
    104     public function enqueue_items($hook)
     104    public function enqueue_items($hook): void
    105105    {
    106106        $this->add_wc_style_scripts();
     
    153153    }
    154154
    155     private function add_wc_style_scripts()
     155    private function add_wc_style_scripts(): void
    156156    {
    157157        wp_enqueue_style('bol2api_styles_wc', SHOP2API_PLUGIN_URL . '/assets/bol2api_styles_wc.css', [], $this->version_id());
    158158    }
    159159
    160     private function add_common_styles_scripts()
     160    private function add_common_styles_scripts(): void
    161161    {
    162162        wp_enqueue_style('google-icons', 'https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined', [], $this->version_id());
     
    165165    }
    166166
    167     private function add_dashboard_localize()
     167    private function add_dashboard_localize(): void
    168168    {
    169169        require_once SHOP2API_PLUGIN_PATH . '/includes/Api/Shop2ApiConnect.php';
     
    188188    }
    189189
    190     private function add_other_localize()
     190    private function add_other_localize(): void
    191191    {
    192192        $shop_2_api_connection = new Shop2ApiConnect();
     
    200200    }
    201201
    202     private function add_mapping_localize()
     202    private function add_mapping_localize(): void
    203203    {
    204204        require_once SHOP2API_PLUGIN_PATH . '/includes/Api/Shop2ApiConnect.php';
     
    227227    }
    228228
    229     private function add_orders_localize()
     229    private function add_orders_localize(): void
    230230    {
    231231        require_once SHOP2API_PLUGIN_PATH . '/includes/Api/Shop2ApiConnect.php';
     
    252252    }
    253253
    254     private function add_koopblock_localize()
     254    private function add_koopblock_localize(): void
    255255    {
    256256        require_once SHOP2API_PLUGIN_PATH . '/includes/Api/Shop2ApiConnect.php';
  • shop-2-api/trunk/includes/Base/EnqueueWC.php

    r2858515 r2868951  
    107107                //'description'   => __( 'An optional EAN Number that you can map on Shop-2-api or use for orders.', 'woocommerce' ),
    108108                'value'         => $shop2api_ean_number
     109            )
     110        );
     111        // Add COMBI EAN Number
     112        $shop2api_combi_ean_number = get_post_meta( $post->ID, 'shop2api_combi_ean_number', true);
     113        woocommerce_wp_text_input(
     114            array(
     115                'id'            => 'shop2api_combi_ean_number',
     116                'wrapper_class' => 'cfwc-custom-field',
     117                'label'         => __('Combideal EAN Number', 'woocommerce'),
     118                //'description'   => __( 'An optional EAN Number that you can map on Shop-2-api or use for orders.', 'woocommerce' ),
     119                'value'         => $shop2api_combi_ean_number
    109120            )
    110121        );
     
    214225        $shop2api_ean_number = $_POST['shop2api_ean_number'] ?? '';
    215226        update_post_meta($post_id, 'shop2api_ean_number', $shop2api_ean_number);
     227
     228        $shop2api_combi_ean_number = $_POST['shop2api_combi_ean_number'] ?? '';
     229        update_post_meta($post_id, 'shop2api_combi_ean_number', $shop2api_combi_ean_number);
    216230    }
    217231
     
    228242        $shop2api_ean_number = $_POST['shop2api_ean_number'] ?? '';
    229243        update_post_meta($variation_id, 'shop2api_ean_number', $shop2api_ean_number);
     244
     245        $shop2api_combi_ean_number = $_POST['shop2api_combi_ean_number'] ?? '';
     246        update_post_meta($variation_id, 'shop2api_combi_ean_number', $shop2api_combi_ean_number);
    230247    }
    231248
     
    275292                //'description'   => __( 'An optional EAN Number that you can map on Shop-2-api or use for orders.', 'woocommerce' ),
    276293                'value'         => $shop2api_ean_number ? $shop2api_ean_number : ''
     294            )
     295        );
     296
     297        // Combi EAN Number
     298        $shop2api_combi_ean_number = get_post_meta( $variation->ID, 'shop2api_combi_ean_number', true);
     299        woocommerce_wp_text_input(
     300            array(
     301                'id'            => 'shop2api_combi_ean_number',
     302                'wrapper_class' => 'cfwc-custom-field',
     303                'label'         => __('Combideal EAN Number', 'woocommerce'),
     304                //'description'   => __( 'An optional EAN Number that you can map on Shop-2-api or use for orders.', 'woocommerce' ),
     305                'value'         => $shop2api_combi_ean_number ? $shop2api_combi_ean_number : ''
    277306            )
    278307        );
  • shop-2-api/trunk/includes/Base/EnqueueWCAPI.php

    r2858517 r2868951  
    1414    {
    1515        // Custom API Endpoint for getting Metadata
    16         add_action( 'rest_api_init', array($this, 'register_meta_field_search_endpoint' ));
     16        add_action( 'rest_api_init', array($this, 'register_shop2api_woocommerce_endpoints' ));
    1717    }
    1818
    1919
    2020    //Add Custom API End-Point
    21 
    22     function register_meta_field_search_endpoint(): void
     21    function register_shop2api_woocommerce_endpoints(): void
    2322    {
    2423        register_rest_route( 'shop-2-api/v1', '/search-meta', array(
     
    2625            'callback' => array($this, 'meta_field_search_callback'),
    2726        ) );
     27        register_rest_route( 'shop-2-api/v1', '/search-meta-contains', array(
     28            'methods'  => 'GET',
     29            'callback' => array($this, 'meta_field_search_callback'),
     30        ) );
    2831    }
    2932
    30     function meta_field_search_callback( $request ) {
     33    function meta_field_search_callback($request) {
    3134        $meta_key   = $request->get_param( 'meta_key' );
    32         $meta_value = $request->get_param( 'meta_value' );
     35        $meta_value = esc_sql($request->get_param( 'meta_value' ));
     36        $compare_operator = $request->get_param( 'compare_operator' );
     37
    3338        $args = array(
    3439            'post_type' => 'product',
     
    3742                    'key' => $meta_key,
    3843                    'value' => $meta_value,
    39                     'compare' => '='
     44                    'compare' => $compare_operator
    4045                )
    4146            )
    4247        );
     48
    4349        $query = new WP_Query( $args );
    4450        if ( $query->have_posts() ) {
     
    5359                    'meta_key' => $meta_key,
    5460                    'meta_value' => $meta_value,
     61                    'stock_quantity' => $product->get_stock_quantity()
    5562                );
    5663            }
    5764            return rest_ensure_response( $products );
    5865        } else {
    59             return new WP_Error( 'no_products_found', 'No products found.', array( 'status' => 402 ) );
     66            return new WP_Error( 'no_products_found', 'No products found. (' . $meta_value . ')', array( 'status' => 402 ) );
    6067        }
    6168    }
  • shop-2-api/trunk/readme.txt

    r2858515 r2868951  
    1251252) Small WooCommerce API Changes
    126126
     127= 1.0.21 =
     1281) Implementation of Combo Deals
     129
    127130== Instructions ==
    1281311) After installing Shop2Api, a new menu item will be available in your WordPress installation, you can continue and click on it and enter you token which was mailed to you.
  • shop-2-api/trunk/shop-2-api.php

    r2858515 r2868951  
    55Plugin URI: https://wordpress.org/plugins/shop-2-api/
    66Description: The plugin Shop2Api will sync products between e-Commerce platforms. The current supported e-Commerce platforms are WooCommerce to Bol.com, and we are working on Amazon, Shopify and others.  We added a koopblok service so that you can check if you lower your price can you get koopblok.
    7 Version: 1.0.20
     7Version: 1.0.21
    88Requires at least: 5.0
    99Requires PHP:      7.2
     
    3434define('SHOP2API_PLUGIN_URL', plugin_dir_url( __FILE__ ));
    3535define('SHOP2API_PLUGIN', plugin_basename( __FILE__ ));
    36 define ('VERSION', '1.0.20');
     36define ('VERSION', '1.0.21');
    3737
    3838// Register items in the project.
  • shop-2-api/trunk/templates/bol-order-sync.php

    r2858515 r2868951  
    2929                </td>
    3030                <td>
    31                     <select name="orders-ean" id="orders-ean" >
     31                    <select name="orders-ean" id="orders-ean">
    3232                        <option value="Product" selected>WooCommerce Product Field</option>
    3333                        <option value="MetaData">WooCommerce Metadata Field</option>
     
    3535                    <span id="sku" class="error-message"></span>
    3636                </td>
    37                 <td><select name="orders-ean-value" id="orders-ean-value" ></select></td>
     37                <td><select name="orders-ean-value" id="orders-ean-value"></select></td>
    3838            </tr>
    3939            <tr>
     
    6969            </tr>
    7070            <tr>
    71                 <td title="I Have Combi Deals" style="padding: 15px 0px 0px 0px;">
     71                <td title="Activate the Combi Checks, when orders come in a check will be done if there is any combi deals related to the ean number" style="padding: 15px 0px 0px 0px;">
    7272                    <span class="dashicons dashicons-info-outline"></span>
    7373                </td>
    7474                <td>
    75                     <label for="orders-enable_combi">Enable Combi-Deals</label>
     75                    <label for="orders-combideals-active">Combi Deal Service Active</label>
    7676                </td>
    7777                <td>
    78                     <input type="checkbox" name="orders-enable_combi" id="orders-enable_combi"/>
    79                     <span id="enable_combi" class="error-message"></span>
     78                    <input type="checkbox" name="orders-combideals-active" id="orders-combideals-active"/>
     79                    <span id="combideals-active" class="error-message"></span>
    8080                </td>
    8181            </tr>
    8282            <tr>
    83                 <td title="The EAN Number field which combines all the Combi Deals." style="padding: 15px 0px 0px 0px;">
     83                <td title="EAN Number Field in WC" style="padding: 15px 0px 0px 0px;">
    8484                    <span class="dashicons dashicons-info-outline"></span>
    8585                </td>
    8686                <td>
    87                     <label for="orders-active">Combi EAN Number</label>
     87                    <label for="orders-combideal-ean">Combi EAN Field</label>
    8888                </td>
    8989                <td>
    90                     <input type="checkbox" name="orders-combideals" id="orders-active"/>
    91                     <span id="combideals" class="error-message"></span>
     90                    <select name="orders-combideal-ean" id="orders-combideal-ean">
     91                        <option value="Product" selected>WooCommerce Product Field</option>
     92                        <option value="MetaData">WooCommerce Metadata Field</option>
     93                    </select>
     94                    <span id="orders-combideal-ean" class="error-message"></span>
    9295                </td>
     96                <td><select name="orders-combideal-ean-value" id="orders-combideal-ean-value"></select></td>
    9397            </tr>
    9498            </tbody>
    9599        </table>
    96100        <br/>
    97         <button type='submit' class='btn primary'  title="Save the data to Shop-2-API" id="save-order-data">
     101        <button type='submit' class='btn primary' title="Save the data to Shop-2-API" id="save-order-data">
    98102            Save
    99103        </button>
Note: See TracChangeset for help on using the changeset viewer.