Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

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

Naroči se

Get notified when there's activity on this post

This question has been flagged
1 Odgovori
2821 Prikazi
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
Opusti
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
Avtor

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
Avtor

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
Best Answer

Hi,

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


Hope it helps

0
Avatar
Opusti
Xavier Brochard

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

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Prijavi
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

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