Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1625 Widoki

Hello, I would like to know how can I create some product categories et then put the breadscrumb ? Please help me ;/, 


thank you

Awatar
Odrzuć

Your question tag is for eCommerce, so please clarify if you want to create categories for the eCommerce shop or the products in Odoo because both are different.

Najlepsza odpowiedź

Hi,

Try the below.

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="categ_breadcumb" inherit_id="website_sale.product">
<xpath expr="//li[hasclass('active')]" position="before">
<li t-if="len(product.public_categ_ids)==1" class="breadcrumb-item">
<a t-att-href="keep('/shop/category/%s' % slug(product.public_categ_ids))">
<span t-field="product.public_categ_ids.name"/>
</a>
</li>
</xpath>
</template>
</odoo>

Regards

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sie 25
1551
2
lip 25
3241
0
sty 25
1531
0
paź 24
1663
1
mar 24
3134