Syncing from upstream OCA/e-commerce (19.0) - #1005
Merged
Merged
Conversation
Currently translated at 100.0% (8 of 8 strings) Translation: e-commerce-15.0/e-commerce-15.0-website_sale_product_matrix Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_product_matrix/es/
…product matrix TT61122
Currently translated at 100.0% (8 of 8 strings) Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_matrix Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_matrix/ca/
Currently translated at 100.0% (8 of 8 strings) Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_matrix Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_matrix/es/
Currently translated at 100.0% (7 of 7 strings) Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_matrix Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_matrix/it/
Currently translated at 100.0% (8 of 8 strings) Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_matrix Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_matrix/es/
Currently translated at 100.0% (8 of 8 strings) Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_matrix Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_matrix/ca/
Currently translated at 100.0% (7 of 7 strings) Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_matrix Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_matrix/it/
…atrix products The matrix add mode was hiding the standard variant selector by adding a `t-if` on the `select` placeholder. This removed the whole block from the DOM, including the hidden `product_id` / `product_template_id` inputs and the standard variant selection data. This breaks features that rely on the selected variant being available in the website product page, such as the dynamic alternative products filter. When the selector is not rendered, there is no selected variant/product context for the filter to use, so alternative products are not found. Instead of removing the selector, keep it rendered and only add `d-none` to the variant list through `ul_class` when the product uses matrix mode. This keeps the standard website_sale data available for frontend widgets while preserving the matrix UI as the visible product configurator. TT62939
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
bt_gitbot