Plugin Directory

Changeset 2979697


Ignore:
Timestamp:
10/16/2023 06:05:21 PM (2 years ago)
Author:
ascendedcrow
Message:

Version = 1.0.27.2 =

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

Legend:

Unmodified
Added
Removed
  • shop-2-api/trunk/includes/Api/Shop2ApiConnect.php

    r2962006 r2979697  
    326326        $connections = wp_remote_retrieve_body($this->get_wc_connection_info());
    327327        $json_connections = json_decode($connections, true);
     328
     329        if (!(is_array($json_connections))) {
     330            wp_redirect(admin_url('/admin.php?page=shop2api_plugin'));
     331            exit;
     332        }
    328333
    329334        return wp_remote_post(
  • shop-2-api/trunk/includes/Tables/WcCategorySelection.php

    r2825412 r2979697  
    2424        $shop_2_api_connection = new Shop2ApiConnect();
    2525        $api_response_data = $shop_2_api_connection->get_bol_category_info();
    26         if (array_key_exists('body', $api_response_data)) {
    27             $this->bol_category_dropdown_data = json_decode($api_response_data['body'], true);
     26        if (!(is_array($api_response_data))) {
     27            $this->bol_category_dropdown_data = [];
     28        } else {
     29            if (array_key_exists('body', $api_response_data)) {
     30                $this->bol_category_dropdown_data = json_decode($api_response_data['body'], true);
     31            }
    2832        }
    2933        $api_response_data = $shop_2_api_connection->get_bol_wc_mapping_info();
    30         if (array_key_exists('body', $api_response_data)) {
    31             $this->saved_bol_values = json_decode($api_response_data['body'], true);
     34        if (!(is_array($api_response_data))) {
     35            $this->saved_bol_values = [];
     36        } else {
     37            if (array_key_exists('body', $api_response_data)) {
     38                $this->saved_bol_values = json_decode($api_response_data['body'], true);
     39            }
    3240        }
    3341
  • shop-2-api/trunk/readme.txt

    r2979381 r2979697  
    33Plugin URI: https://wordpress.org/plugins/shop-2-api/
    44Tags: WooCommerce, Bol
    5 Stable Tag: 1.0.27.1
     5Stable Tag: 1.0.27.2
    66Requires at least: 5.0
    77Requires PHP: 7.2
     
    1521523) Updated dashboard.
    1531534) Added hook for update product variations.
     1545) Fix bug which can cause a php error.
    154155
    155156== Instructions ==
  • shop-2-api/trunk/shop-2-api.php

    r2979381 r2979697  
    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.27.1
     7Version: 1.0.27.2
    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.27.1');
     36define ('VERSION', '1.0.27.2');
    3737
    3838// Register items in the project.
Note: See TracChangeset for help on using the changeset viewer.