1
0
mirror of synced 2025-02-21 09:23:14 +03:00

code text correction

This commit is contained in:
Frosin 2019-07-10 11:52:58 +03:00
parent c83869f9ec
commit 9cd0f833aa
2 changed files with 4 additions and 4 deletions

View File

@ -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';
}

View File

@ -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);
}