Include the selected collection in the product collection block context (#43247)

* Include collection attribute in the block context

* add 'collection' to useContext for Product Template

* Changelog

---------

Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>
This commit is contained in:
Chris Lilitsas 2024-02-08 10:55:05 +02:00 committed by GitHub
parent c6e11562ac
commit 60c17eb126
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -40,7 +40,8 @@
"id": "id",
"queryId": "queryId",
"query": "query",
"displayLayout": "displayLayout"
"displayLayout": "displayLayout",
"collection": "collection"
},
"supports": {
"align": [ "wide", "full" ],

View File

@ -13,7 +13,8 @@
"query",
"queryContext",
"displayLayout",
"templateSlug"
"templateSlug",
"collection"
],
"supports": {
"inserter": false,

View File

@ -0,0 +1,4 @@
Significance: minor
Type: add
Added the selected collection name in the product collection block context