Skip to content

Commit 4c56602

Browse files
authored
Merge pull request #3577 from craftcms/feature/pt-1930-5x-new-productsvariants-are-not-promotable-by-default
Add `promotable` column to variant element indexes #3571
2 parents 1a13c2e + b42b2e6 commit 4c56602

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Added `craft\commerce\elements\Variant::availableShippingCategories()`.
1010
- Added `craft\commerce\elements\Variant::availableTaxCategories()`.
1111
- Added `craft\commerce\events\PdfRenderEvent::$sourcePdf`. ([#3543](https://github.com/craftcms/commerce/issues/3543))
12+
- It’s now possible to show the "Promotable" property on varaint element indexes. ([#3571](https://github.com/craftcms/commerce/issues/3571))
1213
- Fixed a SQL error that occurred when reordering order statuses on PostgreSQL. ([#3554](https://github.com/craftcms/commerce/issues/3554))
1314
- Fixed a SQL error that could occur when saving a payment currency. ([3563](https://github.com/craftcms/commerce/issues/3563))
1415
- Fixed a bug where it was possible to select shipping and tax categories not associated to the current product type. ([#3557](https://github.com/craftcms/commerce/issues/3557))

src/elements/Variant.php

+1
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,7 @@ protected static function defineTableAttributes(): array
11681168
return array_merge(parent::defineTableAttributes(), [
11691169
'product' => Craft::t('commerce', 'Product'),
11701170
'isDefault' => Craft::t('commerce', 'Default'),
1171+
'promotable' => Craft::t('commerce', 'Promotable'),
11711172
]);
11721173
}
11731174

0 commit comments

Comments
 (0)