From 4eb9605067ebb0462d19258f8357235f001ef58f Mon Sep 17 00:00:00 2001 From: Josh Crawford Date: Tue, 28 Feb 2017 23:32:38 +1100 Subject: [PATCH] Products - Fix existing element-matching on core attributes --- .../FeedMe/ElementTypes/Commerce_ProductFeedMeElementType.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feedme/FeedMe/ElementTypes/Commerce_ProductFeedMeElementType.php b/feedme/FeedMe/ElementTypes/Commerce_ProductFeedMeElementType.php index 9d63b602..f0526afb 100644 --- a/feedme/FeedMe/ElementTypes/Commerce_ProductFeedMeElementType.php +++ b/feedme/FeedMe/ElementTypes/Commerce_ProductFeedMeElementType.php @@ -79,7 +79,8 @@ public function matchExistingElement(&$criteria, $data, $settings) $criteria->id = $variants[0]->productId; } } else { - $criteria->$handle = DbHelper::escapeParam($data[$handle]); + $feedValue = Hash::get($data, $handle . '.data', $data[$handle]); + $criteria->$handle = DbHelper::escapeParam($feedValue); } } }