commit
a73d8ef737
@ -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';
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user