Odoo Help

0

Hide some attributes webshop

By
stefano
on 3/13/18, 7:29 AM 387 views

Hi,

i've set to show attribute's filters on webshop but i've some attribute that i would hide.

For ex i have:

Color, size, lenght etc.. how can i hide color and size only?

my website test is on: http://188.213.166.234:8069/shop


thank's

1

Ermin Trevisan

--Ermin Trevisan--
8271
| 6 5 7
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan
On 3/13/18, 9:45 AM

Use the corresponding attribute type (empty or "hidden") depending on your Odoo version.


odoo 11

stefano
on 3/13/18, 9:46 AM

Check it yourself, it is obvious.

Ermin Trevisan
on 3/13/18, 9:50 AM

how can i hidden attribute?

stefano
on 3/13/18, 9:51 AM

As I said, by selecting the corresponding attribute type for the attribute you want to hide.

Ermin Trevisan
on 3/13/18, 9:56 AM

I did not understand where to do this thing

stefano
on 3/13/18, 10:00 AM

Go to "Sales/Configuration/Attributes".

Ermin Trevisan
on 3/13/18, 10:04 AM

aa ok easy but it give the description without values, there is a method to hide also the description?

stefano
on 3/13/18, 10:11 AM

I didn't know about that option, nice !

Xavier Brochard
on 3/13/18, 3:22 PM

but if i'll do this Use the corresponding attribute type (empty or "hidden") depending on your Odoo version. odoo hide attribute also in the product not only in the search

stefano
on 3/15/18, 1:08 PM
0
Xavier Brochard
On 3/13/18, 9:12 AM

You need to hack the emplate website_sale.products_attributes (in website_sale addon). Curently the template contain a  t-foreach="attributes" loop. This should be change to select wanted attributes only.

thank you very much for the answer, but could you explain the procedure to me?

stefano
on 3/13/18, 9:46 AM
0

Hilar AK

--Hilar AK--
--Hilar AK--
  Blog:-
        https://hilarlive.wordpress.com/
  StackOverflow:
        http://stackoverflow.com/users/7561347/burmese-pythis

Qoura:
    

            https://www.quora.com/profile/Hilar-Ak-1



Hilar AK
On 3/14/18, 2:44 AM

Make condition to fetch attributes as

<t t-foreach="attributes" t-as="a">
<li t-if="a.value_ids and len(a.value_ids) &gt; 1 and not a.name in ['size', 'color']" >
....



About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 3/13/18, 7:29 AM
Seen: 387 times
Last updated: 3/15/18, 1:07 PM