Odoo Help

Welcome!

This community 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.

1

How could I get product categories on the mobile shop?

By
Pascal Tremblay
on 10/23/15, 8:48 AM 799 views

Hello guys,

I have categories at the left when I browse the shop on a computer.

But I don't have categories when I browse the shop on a mobile (iphone).

How could I get the product categories on the mobiles too?

Thanks all!!!

 

 

Very good question!

Ermin Trevisan
on 10/23/15, 10:41 AM

We will find the solution.

Pascal Tremblay
on 10/23/15, 10:51 AM

It is first and foremost a user design problem, some solutions are sketched here in this interesting post: http://bradfrost.com/blog/web/complex-navigation-patterns-for-responsive-design/

Ermin Trevisan
on 10/25/15, 3:09 AM

And a similar (additional) problem: what, if I also would like to have text and images as a description of a category itself??? This feature is not addressed at all by Odoo.

Ermin Trevisan
on 10/25/15, 3:13 AM
1
Roberto Barreiro
On 2/5/16, 12:19 PM

It is entirely possible, website_sale.products_categories view must be edited, by removing hidden-xs parameter:

<?xml version="1.0"?> <data inherit_id="website_sale.products" active="False" customize_show="True" name="Product Categories"> <xpath expr="//div[@id='products_grid_before']" position="inside"> <ul class="nav nav-pills nav-stacked mt16"> <li t-att-class=" '' if category else 'active' "><a t-att-href="keep('/shop',category=0)">All Products</a></li> <t t-foreach="categories" t-as="c"> <t t-call="website_sale.categories_recursive"/> </t> </ul> </xpath> <xpath expr="//div[@id='products_grid_before']" position="attributes"> <attribute name="class">col-md-3 hidden-xs</attribute> <!-- remove hidden-xs from this line --> </xpath> <xpath expr="//div[@id='products_grid']" position="attributes"> <attribute name="class">col-md-9</attribute> </xpath> </data>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/23/15, 8:48 AM
Seen: 799 times
Last updated: 2/5/16, 12:19 PM