-
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
Product layout based on attribute_set #36244
Product layout based on attribute_set #36244
Conversation
@magento run all tests |
Hi @in-session. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
1 similar comment
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento give me 2.4-develop instance |
Hi @in-session. Thank you for your request. I'm working on Magento instance for you. |
Hi @in-session, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Functional Tests B2B,Functional Tests CE,Functional Tests EE,Static Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
As the linked issue is marked as feature request, moving the PR to On hold till we get PO confirmation. Thank you. |
Can this field be configurable? As the existing layout handle for sku/id based is already increasing the load on the layout cache... Please see: #102 (comment) |
RIP cache performance. This and the sku/id layout handle should indeed be off by default and have a field in sysconfig to activate it. |
As we got the confirmation from Product Owner on this feature request issue, moving it back to Extended testing.
|
@magento run all tests |
@magento run all tests |
@magento run Functional Tests EE, Functional Tests B2B |
17f6230
into
magento:2.4-develop
@engcom-Charlie or @engcom-Dash: have these 2 comments been taken into consideration and/or have been verified if true?
If this change causes caching storage to increase significantly, it may not have been a good idea to merge it, unless there is an easy way to disable this. |
There is definitely going to be a lot of issues in future for Redis cache being blown up, unless we completely change Magento Layout building mechanism like I did before for Magento 1 (compile layouts handles into own files and then include them) |
@engcom-Charlie @engcom-Dash agencies are even implementing fixes to be able to disable the handles. Please reconsider this. https://github.com/Vendic/module-optimize-cache-size/tree/main |
Hi @in-session, Thank you for the contribution! @hostep @toonvd @IvanChepurnyi @MaximGns thank you for providing your valuable thoughts on this. I have gone through all the comments about making this change as a configurable one. As this PR is already merged, requesting the community to raise a Pull Request to address this new change. We will see to take it further as per the process. |
@engcom-Charlie after some consideration I think the catalog_product_view_attribute_set_{id}.xml would certainly be used more than the catalog_product_view_id_{id}.xml. Still, in terms of feedback, it wouldn't be a bad idea to make it an optional future. I have therefore made another PR, which makes it possible to activate or deactivate this, as well as the layout of the products id. |
Thank you @in-session. Thank you for raising a new Pull Request to take care of this new configuration feature. We will take #39718 PR further as per our regular process. |
Currently there is only the possibility to adjust the layout by SKU or by types of the product. In most productive cases, however, this is only partly practical. because it then only refers to many articles or one article. With the integration the layout can be used based on the attribute set similar to an article group, which is more needed in most cases. The display of the articles are controlled in the backend by attribute_set, so there should be a way to pass this to the frontend store as well.
https://developer.adobe.com/commerce/frontend-core/guide/layouts/product-layouts/
Example: catalog_product_view_attribute_set_15.xml
Controls the front-end display of all items that are within the Bags group.
Resolved issues: