Skip to Content
Menú
This question has been flagged
4 Respostes
3939 Vistes

Is there a way for the internal code or SKU to be show under the product name on the website or do you have to do this manually for each product

Avatar
Descartar
Best Answer

To do this without code and keep it supported via updates:
-Enable developer mode
-Go to Website > Configuration > Websites
-Go to the "Product Page Extra Fields" and add "Internal Reference" here
It will be displayed on all products in the shop.

Avatar
Descartar
Best Answer

this didnot work for me .. donot know what i am missing

Avatar
Descartar
Best Answer

How would this work for variants? 

Avatar
Descartar

Got the same problem with variants. It's not showing up.

Best Answer

Hi,

To display the internal code (SKU) under the product name on your Odoo website, follow these steps:

1) Activate developer mode and Go to Technical > User Interface > Views.
2) Search for the key 'website_sale.product'.
3) Open the appropriate view template and place the default_code in the desired location. For example:

<p t-if="product.default_code">
    <span t-esc="product.default_code"/>
</p>


Save your changes, and the SKU will now display under the product name on your website.


Hope it helps

Avatar
Descartar

When update module it will be lost :))

this didnot work and taking help from chatgpt i found product.default_code is not passed on by odoo

Related Posts Respostes Vistes Activitat
1
de jul. 25
923
2
de des. 24
1132
1
de set. 24
1159
2
de gen. 23
6587
0
de febr. 21
2344