Skip to content

Commit fdd0e55

Browse files
committed
Merge branch '5.x' into 6.x
# Conflicts: # CHANGELOG.md
2 parents a289e39 + de8f672 commit fdd0e55

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Added the ability to map the Promotional Price when importing Commerce Products. ([#1665](https://github.com/craftcms/feed-me/pull/1665))
66
- Fixed a PHP error that could occur when importing an array of elements into a related field when using the Debug option. ([#1667](https://github.com/craftcms/feed-me/pull/1667))
7+
- Fixed a bug where you could not import Commerce Variant data into a field that specified Product Type sources. ([#1652](https://github.com/craftcms/feed-me/pull/1652))
78

89
## 6.9.0 - 2025-08-10
910

src/fields/CommerceVariants.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use craft\feedme\base\FieldInterface;
1111
use craft\feedme\helpers\DataHelper;
1212
use craft\feedme\Plugin;
13+
use craft\helpers\Db;
1314
use craft\helpers\Json;
1415

1516
/**
@@ -83,7 +84,7 @@ public function parseField(): mixed
8384
if (is_array($sources)) {
8485
foreach ($sources as $source) {
8586
[, $uid] = explode(':', $source);
86-
$typeIds[] = $uid;
87+
$typeIds[] = Db::idByUid('{{%commerce_producttypes}}', $uid);
8788
}
8889
} elseif ($sources === '*') {
8990
$typeIds = null;

0 commit comments

Comments
 (0)