Skip to content

Commit

Permalink
Merge pull request #3577 from craftcms/feature/pt-1930-5x-new-product…
Browse files Browse the repository at this point in the history
…svariants-are-not-promotable-by-default

Add `promotable` column to variant element indexes  #3571
  • Loading branch information
nfourtythree authored Jul 11, 2024
2 parents 1a13c2e + b42b2e6 commit 4c56602
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Added `craft\commerce\elements\Variant::availableShippingCategories()`.
- Added `craft\commerce\elements\Variant::availableTaxCategories()`.
- Added `craft\commerce\events\PdfRenderEvent::$sourcePdf`. ([#3543](https://github.com/craftcms/commerce/issues/3543))
- It’s now possible to show the "Promotable" property on varaint element indexes. ([#3571](https://github.com/craftcms/commerce/issues/3571))
- Fixed a SQL error that occurred when reordering order statuses on PostgreSQL. ([#3554](https://github.com/craftcms/commerce/issues/3554))
- Fixed a SQL error that could occur when saving a payment currency. ([3563](https://github.com/craftcms/commerce/issues/3563))
- 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))
Expand Down
1 change: 1 addition & 0 deletions src/elements/Variant.php
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,7 @@ protected static function defineTableAttributes(): array
return array_merge(parent::defineTableAttributes(), [
'product' => Craft::t('commerce', 'Product'),
'isDefault' => Craft::t('commerce', 'Default'),
'promotable' => Craft::t('commerce', 'Promotable'),
]);
}

Expand Down

0 comments on commit 4c56602

Please sign in to comment.