Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

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

Odoberať

Get notified when there's activity on this post

This question has been flagged
1 Odpoveď
2832 Zobrazenia
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
Zrušiť
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
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
Zrušiť
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!

Registrácia
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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