-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorder adding of page layout handles #12807
Reorder adding of page layout handles #12807
Conversation
Add type-dependent layout handels before more specific id/sku layout handles.
Hi @aschrammel, thank you very much for your contribution! I will process your PR. I hope to able to do this before the holidays. If not please be a little bit patient with me. :-) |
Hi @mzeis, thank you for your reply. Of course - enjoy your holidays. 😃 |
@aschrammel I will discuss your PR with the core team. The change makes sense in my opinion but we have to consider that 3rd party integrators might rely on the current behaviour and it might not be good to change this in a patch release. |
@mzeis Thanks for the feedback. Of course there may be issues with 3rd party integrations and it's clear that a merge in a patch release may not be the best. |
@aschrammel I think so too and am awaiting for approval from the core team. Thanks for your patience! |
Hi @aschrammel, thank you again for your contribution! It has been merged into |
Hi @mzeis, was me a pleasure ;) |
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>.xml
some 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\View
and\Magento\Review\Controller\Product\ListAction
to add the type specific layout handles BEFORE more specific ID/SKU specific layout handles.In
\Magento\Catalog\Controller\Category\View
the 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.configurable
block with a custom template in referenced blockproduct.info.options.wrapper
Example override
Contribution checklist