1
0
mirror of synced 2025-02-21 17:33:13 +03:00

Fix option 'Activate the binding via sku (xml)'

This commit is contained in:
Dima Uryvskiy 2021-06-28 18:36:07 +03:00 committed by GitHub
parent e1df68f209
commit fca30cb4f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -415,7 +415,7 @@ if ( ! class_exists( 'WC_Retailcrm_History' ) ) :
isset($this->retailcrmSettings['bind_by_sku'])
&& $this->retailcrmSettings['bind_by_sku'] == WC_Retailcrm_Base::YES
) {
$offerId = $item['offer']['article'];
$offerId = $item['offer']['xmlId'];
} elseif ($orderItem['variation_id'] != 0 ) {
$offerId = $orderItem['variation_id'];
} else {