Skip to content

Commit

Permalink
Add promotable column to variant element indexes #3571
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Jul 11, 2024
1 parent a22ceaf commit d616ef2
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 d616ef2

Please sign in to comment.