Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
214 Vistas

Hello everyone,

I'm looking for some guidance on how to display a "Sold Out" ribbon or label on product cards for items that are out of stock. Currently, customers can only see that a product is out of stock after clicking on it and viewing the product page.

I would like for this information to be visible directly on the main shop page (the catalog view). This would help our customers see which products are unavailable at a glance without needing to click on each one.

Could you please explain the best way to achieve this? I would appreciate any advice, whether it involves modifying existing Odoo files or using specific configurations.

Any help or examples would be greatly appreciated.

Thank you!

Avatar
Descartar
Mejor respuesta

To display a "Sold Out" label on out-of-stock products on the main shop page, follow these steps:



  1. Navigate to the website module and access the product template view.

  2. Customize the product card template by adding a condition to check the product's stock level.

  3. Use QWeb to insert a "Sold Out" label when the stock quantity is zero.


If you’d like to explore this further for your use case, you’re welcome to connect with us at Pragmatic Techsoft.

Avatar
Descartar
Mejor respuesta

Enable developer mode to view and set Ribbon on the product form

Avatar
Descartar