Plugin Directory

Changeset 3245052


Ignore:
Timestamp:
02/22/2025 09:34:12 PM (13 months ago)
Author:
ascendedcrow
Message:

1.0.32

1) Update Tested version
2) Update url for buy message

Location:
shop-2-api
Files:
128 added
6 edited

Legend:

Unmodified
Added
Removed
  • shop-2-api/trunk/includes/Base/Enqueue.php

    r3055588 r3245052  
    164164            wp_enqueue_style('jquery-modal-min-css', SHOP2API_PLUGIN_URL . '/assets/external/jquery/jquery.modal.min.css', [], $this->version_id());
    165165            wp_enqueue_script('bol2api_scripts', SHOP2API_PLUGIN_URL . '/assets/bol2api_report_scripts.js', [], $this->version_id());
    166         } elseif ($hook == 'admin_page_shop2api_wc_to_bol_reports_detail') {
     166        } elseif ($hook == 'shop-2-api_page_shop2api_wc_to_bol_reports_detail') {
    167167            $this->add_other_localize();
    168168            wp_enqueue_script('jquery-modal-min', SHOP2API_PLUGIN_URL . '/assets/external/jquery/jquery.modal.min.js', [], $this->version_id());
  • shop-2-api/trunk/includes/Base/EnqueueWC.php

    r3055588 r3245052  
    5252        // Hook into the 'woocommerce_order_status_changed' action
    5353        add_action( 'woocommerce_order_status_changed',  array($this,'woocommerce_send_order'), 10, 3 );
     54
     55        // Search API Ean Number
     56        add_filter('pre_get_posts', array($this,'custom_ean_number_search_query'));
     57    }
     58
     59    function custom_ean_number_search_query( $query ) {
     60        if ( ! is_admin() && is_search() ) {
     61            $meta_query = [
     62                'key' => 'shop2api_ean_number',
     63                'value' => $query->query_vars['s'],
     64                'compare' => 'LIKE',
     65            ];
     66
     67            $query->set('meta_query', [$meta_query]);
     68        }
    5469    }
    5570
  • shop-2-api/trunk/includes/Pages/Admin.php

    r3055588 r3245052  
    122122//                );
    123123
    124                 $hook = add_submenu_page(
    125                     'shop2api_plugin', //Parent Slug
    126                     'Sync Report', // Page Title
    127                     'Sync Reports', // Menu Title
    128                     'manage_options', // Capability
    129                     'shop2api_wc_to_bol_reports', // Menu Slug
    130                     array($this, 'wc_to_bol_reports_page'), // Function
    131                 );
    132                 add_action("load-".$hook, array($this,'mp_add_product_screen_options'));
     124//              $hook = add_submenu_page(
     125//                  'shop2api_plugin', //Parent Slug
     126//                  'Sync Report', // Page Title
     127//                  'Sync Reports', // Menu Title
     128//                  'manage_options', // Capability
     129//                  'shop2api_wc_to_bol_reports', // Menu Slug
     130//                  array($this, 'wc_to_bol_reports_page'), // Function
     131//              );
     132//                add_action("load-".$hook, array($this,'mp_add_product_screen_options'));
    133133
    134134                $hook = add_submenu_page(
    135                     'shop2api_wc_to_bol_reports', //Parent Slug
     135                    'shop2api_plugin', //Parent Slug
    136136                    'Sync Detail Report', // Page Title
    137137                    'Sync Detail Report', // Menu Title
     
    182182            // Searching
    183183            echo wp_kses('<form method="GET">', $this->allowed_html);
    184             echo wp_kses('<input type="hidden" name="page" value="shop2api_wc_to_bol_reports" />', $this->allowed_html);
     184            echo wp_kses('<input type="hidden" name="page" value="shop2api_wc_to_bol_reports_detail" />', $this->allowed_html);
    185185            $ListTable->search_box('search', 'search_id');
    186186            echo wp_kses('</form>', $this->allowed_html);
  • shop-2-api/trunk/readme.txt

    r3058328 r3245052  
    33Plugin URI: https://wordpress.org/plugins/shop-2-api/
    44Tags: WooCommerce, Bol
    5 Stable Tag: 1.0.30.0
     5Stable Tag: 1.0.32.0
    66Requires at least: 5.0
    77Requires PHP: 7.2
    8 Tested up to: 6.4
     8Tested up to: 6.7
    99Author: Adriaan Coetzee
    1010Author URI: https://shop2API.com/
     
    83832) Some user management improvements
    8484
     85= 1.0.32 =
     861) Update Tested version
     872) Update url for buy message
     88
    8589== Instructions ==
    86901) After installing Shop2Api, a new menu item will be available in your WordPress installation, you can continue and click on it and enter your e-mail address.
  • shop-2-api/trunk/shop-2-api.php

    r3058328 r3245052  
    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.31.1
     7Version: 1.0.32.0
    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.31.1');
     36define ('VERSION', '1.0.31.2');
    3737
    3838// Register items in the project.
  • shop-2-api/trunk/translation/shop2api_dashboard.php

    r3058328 r3245052  
    1010$register_free_account_2 = wp_kses(__("Once connected the token will be linked to the url"), $allowed_html);
    1111$register_free_account_3 = wp_kses(__("Please use a different e-mail for each shop."), $allowed_html);
    12 $register_free_account_4 = wp_kses(__("If your trial expired click <a href='https://shop2api.com/products/checkout?add-to-cart=18' target='_blank'>here</a>"), $allowed_html);
     12$register_free_account_4 = wp_kses(__("If your trial expired click <a href='https://www.paypro.nl/product/Monthly_Plugin/117930' target='_blank'>here</a>"), $allowed_html);
    1313$bol_connection_info_hdr = wp_kses(__("Bol Connection Information"), $allowed_html);
    1414$bol_connection_info = wp_kses(__("You can find how to get/create your Bol Api information"), $allowed_html);
Note: See TracChangeset for help on using the changeset viewer.