Reorder adding of page layout handles #12807
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add type-dependent layout handles before more specific ID/SKU layout
handles.
When updating a product page layout for a specific ID with
catalog_product_view_id_<product_ID>.xmlsome changes may be overwritten by a less specificcatalog_product_view_type_<product_type>.xml.Description
Change the order of loading the layout handles in
\Magento\Catalog\Helper\Product\Viewand\Magento\Review\Controller\Product\ListActionto add the type specific layout handles BEFORE more specific ID/SKU specific layout handles.In
\Magento\Catalog\Controller\Category\Viewthe updates are already loaded in the above suggested order.Fixed Issues (if relevant)
--
Manual testing scenarios
catalog_product_view_id_<product_ID>.xml)product.info.options.configurableblock with a custom template in referenced blockproduct.info.options.wrapperExample override
Contribution checklist