code text correction
This commit is contained in:
parent
c83869f9ec
commit
9cd0f833aa
@ -32,8 +32,8 @@ if (!class_exists('WC_Retailcrm_Inventories')) :
|
|||||||
$this->retailcrm_settings = get_option(WC_Retailcrm_Base::$option_key);
|
$this->retailcrm_settings = get_option(WC_Retailcrm_Base::$option_key);
|
||||||
$this->retailcrm = $retailcrm;
|
$this->retailcrm = $retailcrm;
|
||||||
|
|
||||||
if (isset($this->retailcrm_settings['bind_by_sky'])
|
if (isset($this->retailcrm_settings['bind_by_sku'])
|
||||||
&& $this->retailcrm_settings['bind_by_sky'] == WC_Retailcrm_Base::YES
|
&& $this->retailcrm_settings['bind_by_sku'] == WC_Retailcrm_Base::YES
|
||||||
) {
|
) {
|
||||||
$this->bind_field = 'xmlId';
|
$this->bind_field = 'xmlId';
|
||||||
}
|
}
|
||||||
|
@ -90,8 +90,8 @@ function retailcrm_get_delivery_service($method_id, $instance_id) {
|
|||||||
* @return false|WC_Product|null
|
* @return false|WC_Product|null
|
||||||
*/
|
*/
|
||||||
function retailcrm_get_wc_product($id, $settings) {
|
function retailcrm_get_wc_product($id, $settings) {
|
||||||
if (isset($settings['bind_by_sky'])
|
if (isset($settings['bind_by_sku'])
|
||||||
&& $settings['bind_by_sky'] == WC_Retailcrm_Base::YES
|
&& $settings['bind_by_sku'] == WC_Retailcrm_Base::YES
|
||||||
) {
|
) {
|
||||||
$id = wc_get_product_id_by_sku($id);
|
$id = wc_get_product_id_by_sku($id);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user