Hi I'm pretty new to odoo, regarding the title I would like to check is there any possible way to hide product attribute/variant in product detail page but display the attribute/variant when select product comparison and display the attribute/variant in comparison page?
This question has been flagged
Hello Vicky Wu,
I hope the following explanation will help you
Hiding Attributes/Variants on Product Detail Page:
Override Product Template View: Depending on the version of Odoo you're using, you might need to create a custom module or override an existing view to modify the product template's display. You'll need to look for the template responsible for displaying the product details.
Modify the Template: Inside the template, you would need to conditionally exclude the rendering of attributes/variants. This can be done using Odoo's templating language
Display Attributes/Variants in Comparison Page:
Create a Comparison Page: You might need to create a custom page for product comparison or modify the existing comparison functionality to accommodate your requirements.
Include Attributes/Variants: In the custom comparison page, include the attributes/variants display section. You can reuse the standard Odoo template for displaying attributes.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up