Pular para o conteúdo
Odoo Menu
  • Entrar
  • Experimente grátis
  • Aplicativos
    Finanças
    • Financeiro
    • Faturamento
    • Despesas
    • Planilhas (BI)
    • Documentos
    • Assinar Documentos
    Vendas
    • CRM
    • Vendas
    • PDV Loja
    • PDV Restaurantes
    • Assinaturas
    • Locação
    Websites
    • Criador de Sites
    • e-Commerce
    • Blog
    • Fórum
    • Chat ao Vivo
    • e-Learning
    Cadeia de mantimentos
    • Inventário
    • Fabricação
    • PLM - Ciclo de Vida do Produto
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Funcionários
    • Recrutamento
    • Folgas
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Redes Sociais
    • Marketing por E-mail
    • Marketing por SMS
    • Eventos
    • Automação de Marketing
    • Pesquisas
    Serviços
    • Projeto
    • Planilhas de Horas
    • Serviço de Campo
    • Central de Ajuda
    • Planejamento
    • Compromissos
    Produtividade
    • Mensagens
    • Aprovações
    • Internet das Coisas
    • VoIP
    • Conhecimento
    • WhatsApp
    Aplicativos de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Varejo
    • Loja de livros
    • Loja de roupas
    • Loja de móveis
    • Mercearia
    • Loja de ferramentas
    • Loja de brinquedos
    Comida e hospitalidade
    • Bar e Pub
    • Restaurante
    • Fast Food
    • Hospedagem
    • Distribuidor de bebidas
    • Hotel
    Imóveis
    • Imobiliária
    • Escritório de arquitetura
    • Construção
    • Administração de propriedades
    • Jardinagem
    • Associação de proprietários de imóveis
    Consultoria
    • Escritório de Contabilidade
    • Parceiro Odoo
    • Agência de marketing
    • Escritório de advocacia
    • Aquisição de talentos
    • Auditoria e Certificação
    Fabricação
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Presentes corporativos
    Saúde e Boa forma
    • Clube esportivo
    • Loja de óculos
    • Academia
    • Profissionais de bem-estar
    • Farmácia
    • Salão de cabeleireiro
    Comércio
    • Handyman
    • Hardware e Suporte de TI
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência Ambiental
    • Aluguel de outdoors
    • Fotografia
    • Aluguel de bicicletas
    • Revendedor de software
    Navegar por todos os setores
  • Comunidade
    Aprenda
    • Tutoriais
    • Documentação
    • Certificações
    • Treinamento
    • Blog
    • Podcast
    Empodere a Educação
    • Programa de educação
    • Scale Up! Jogo de Negócios
    • Visite a Odoo
    Obtenha o Software
    • Baixar
    • Comparar edições
    • Releases
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Cadastre seu escritório contábil
    Obtenha os serviços
    • Encontre um parceiro
    • Encontre um Contador
    • Conheça um consultor
    • Serviços de Implementação
    • Referências de Clientes
    • Suporte
    • Upgrades
    Github YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Faça uma demonstração
  • Preços
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Financeiro
  • Inventário
  • PoS
  • Projeto
  • MRP
All apps
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
Ajuda

How to Dynamically Display Product Attributes (e.g., Vendor or Custom Fields) on Website Frontend ?

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
1 Responder
2804 Visualizações
Avatar
Wiry

Hi everyone,

I'm trying to find a way to dynamically use product attributes—such as the vendor (provider) or any custom fields defined in the backend—and display them on the website product pages without having to manually edit each page.

The goal is to define these fields once in the backend and have them automatically appear on the frontend, ideally in a way that persists even after version upgrades.

So far, I haven't found an easy or upgrade-safe method to achieve this.

Is there a recommended approach or best practice to make this work using Odoo's website module or templating system?

Thanks in advance for your help!

0
Avatar
Cancelar
Christoph Farnleitner

Product Attributes assigned to Products are displayed on Product detail pages in eCommerce by default. A single-value Attribute (an Attribute with just one value assigned in the Product Template) is listed beneath the price or add to cart section, one with multiple values assigned in the Product Template is rendered as selectable options. That being said, I'm unsure what exactly you are asking about.

Wiry
Autor

Hi Christoph,

Thanks for the explanation. You're right that product attributes are shown by default beneath the price or as selectable options, depending on how they're configured. What I’m specifically trying to achieve is to have more control over where and how these product details are displayed on the product page.

For example, I want to be able to show certain product attributes—like the vendor (or any custom fields I’ve added in the backend)—in a custom position on the product page, not just beneath the price or in the variant selection.

My question is:

Is there a way to dynamically pull these attributes (or any custom product fields) in the website templates so I can place them exactly where I want using a code snippet (e.g., in QWeb templates or XML views), in a way that is upgrade-safe?

I want to avoid having to hard-code product information or manually update it per product. Ideally, I’d like a generic snippet or template edit that references the backend fields and renders them on the frontend wherever I include the code.

Thanks again for any insights or pointers!

Best,

Tom Anderson

Hi, 
Also following along with this. I've found it quite hard to be able to customize the positions of information on the website which can be a little frustrating. It looks like we can hard code in SH however updating the version we probably lose it all.

Additionally, when selecting to display additional information I'm finding that a lot of fields do not show up. I made 9 custom fields and of that only 1 was available. Char in type was the field that worked, the others were all selection or float.

Cheers,
Tom

faOtools

Maybe, this third-party module - https://apps.odoo.com/apps/modules/18.0/product_custom_fields_website_sale - might partially help with your requirements

Wiry
Autor

Thanks for the answer. 

In finally decide to go with the QWeb editor included, where you can inherit web view and modify the XML / HTML code and get product data. You create new "view" of the product, then redirect the shop to these pages. It may create an issue when upgrading version, but it's the only way I found for now to have a total control of the page. 

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Melhor resposta

Hi,

Activate Developer Mode to add some of the backend fields to the list of Product Page Extra Fields.


Hope it helps

0
Avatar
Cancelar
Xavier Brochard

Do you know why it doesn't work with variants (Odoo 16) ?

Está gostando da discussão? Não fique apenas lendo, participe!

Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!

Inscreva-se
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Open Source
  • Baixar
  • Github
  • Runbot
  • Traduções
Serviços
  • Odoo.sh Hosting
  • Suporte
  • Upgrade
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um Contador
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • Nossa empresa
  • Ativos da marca
  • Contato
  • Empregos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidade
  • Segurança
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo é um conjunto de aplicativos de negócios em código aberto que cobre todas as necessidades de sua empresa: CRM, comércio eletrônico, contabilidade, estoque, ponto de venda, gerenciamento de projetos, etc.

A proposta de valor exclusiva Odoo é ser, ao mesmo tempo, muito fácil de usar e totalmente integrado.

Site feito com

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now