diff --git a/src/include/class-wc-retailcrm-inventories.php b/src/include/class-wc-retailcrm-inventories.php index a2e5406..01846ba 100644 --- a/src/include/class-wc-retailcrm-inventories.php +++ b/src/include/class-wc-retailcrm-inventories.php @@ -32,8 +32,8 @@ if (!class_exists('WC_Retailcrm_Inventories')) : $this->retailcrm_settings = get_option(WC_Retailcrm_Base::$option_key); $this->retailcrm = $retailcrm; - if (isset($this->retailcrm_settings['bind_by_sky']) - && $this->retailcrm_settings['bind_by_sky'] == WC_Retailcrm_Base::YES + if (isset($this->retailcrm_settings['bind_by_sku']) + && $this->retailcrm_settings['bind_by_sku'] == WC_Retailcrm_Base::YES ) { $this->bind_field = 'xmlId'; } diff --git a/src/include/functions.php b/src/include/functions.php index 570b093..f15eb41 100644 --- a/src/include/functions.php +++ b/src/include/functions.php @@ -90,8 +90,8 @@ function retailcrm_get_delivery_service($method_id, $instance_id) { * @return false|WC_Product|null */ function retailcrm_get_wc_product($id, $settings) { - if (isset($settings['bind_by_sky']) - && $settings['bind_by_sky'] == WC_Retailcrm_Base::YES + if (isset($settings['bind_by_sku']) + && $settings['bind_by_sku'] == WC_Retailcrm_Base::YES ) { $id = wc_get_product_id_by_sku($id); }