İçereği Atla
Menü
Bu soru işaretlendi
5 Cevaplar
6104 Görünümler

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!!!

 

 
Avatar
Vazgeç

Very good question!

Üretici

We will find the solution.

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/

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.

En İyi Yanıt

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>

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Kas 23
2893
0
Eyl 19
3056
0
Nis 16
3074
0
Mar 15
3917
3
Şub 24
12747