Hello, I would like to know how can I create some product categories et then put the breadscrumb ? Please help me ;/,
thank you
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello, I would like to know how can I create some product categories et then put the breadscrumb ? Please help me ;/,
thank you
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
2
d’ag. 25
|
1408 | ||
|
2
de jul. 25
|
3088 | ||
|
0
de gen. 25
|
1477 | ||
|
0
d’oct. 24
|
1613 | ||
|
1
de març 24
|
3031 |
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.