Skip to main content

Mobile view - display 2 products side by side

More
11 years 11 months ago #177876 by lt635
-- url of the page with the problem -- : www.fsfightgear.com.au/
-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.33
-- Browser(s) name and version -- : any

Hello,

I am using Hikashop and Bootstrap. Is there a way for the shop products to fall into 2 products in a row on mobile view and not just one? It is a lot of scrolling with only one product in a row.

Thank you
Kind regards
Lene

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #177897 by lt635
Sorry, this should have been in the 'product and category' topic.

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #177879 by nicolas
Hi,

There is no option for that.
With custom CSS you should be able to achieve that:
Code:
@media (max-width: 767px){ [class*="span"], .uneditable-input[class*="span"], .row-fluid [class*="span"] { width: 49.5% !important; } }

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #179918 by lt635
I will try that.

Thank you
Kind regards
Lene

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #201445 by river
Joomla 3.4.1
Hikashop 2.4.0
Yootheme template Unity version 1.0.8 (latest version)
URL: kvikki.no

I also want my stores products to fall into 2 products in a row on mobile view.

I tried the above code. But it only moves the products to the left, using 50 % of the screen, and displaying one product pr. row.

Any more advice ?

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #201557 by nicolas
Hi,

In your case, you want to use such code:
Code:
@media (max-width: 767px){ [class*="span"], .uneditable-input[class*="span"], .row-fluid [class*="span"] { width: 49.5% !important; float: left !important; } }

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #201576 by river
This is excellent. I looks very good on my HTC mobile phone.

There is only on small problem. That is when the product name is a little long, and it becomes a big gap under the product. (see picture below).



Is it a way that I can make the "product name" font size a little bit smaller when I hold to mobile in narrow view ?

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #201589 by nicolas
You want to force the height of the area with such CSS:
.hikashop_products .hikashop_subcontainer { height: 350px !important; }
The following user(s) said Thank You: river

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #201641 by river
Perfect, it works like a charm =)

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago - 10 years 11 months ago #218859 by river
Code:
@media (max-width: 767px){ [class*="span"], .uneditable-input[class*="span"], .row-fluid [class*="span"] { width: 49.5% !important; float: left !important; } }

Is it possible to apply this css code so it is only used on the "categories listning" with all the products, and not on the product page ?

The reason for this is that when I apply the code is put's (in mobile view)the "add to cart" button on the right side off the image, and not below where it should be.
Last edit: 10 years 11 months ago by river.

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #218863 by Mohamed Thelji
Hello,
A solution can be to use that kind of CSS code :
Code:
@media (max-width: 767px){ .hikashop_category_information [class*="span"], .hikashop_category_information .uneditable-input[class*="span"], .hikashop_category_information .row-fluid [class*="span"] { width: 49.5% !important; float: left !important; } }

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #237958 by ralph024
Hi,

I also want to show my products in a row of 2 products on mobile view.
I tried the codes above, but it does not work for each line (See attachment)

Any advice ?

Thanks

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #237975 by nicolas
Hi,

Please provide a link to the page with that modification in place so that we can have a look at what's going on there.
The following user(s) said Thank You: ralph024

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago - 10 years 5 months ago #238004 by ralph024
Hi Nicolas,

send the links as a private message to you!

And when i enable the Bootstrap option, the loginform in the checkout isn't working correctly

Thanks!
Last edit: 10 years 5 months ago by ralph024.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago - 10 years 5 months ago #238009 by lionel75
each first item of row ( the item of the first column) is not manage by the same css code compare to item of other column ( colé and col3) .
this behaviour is explain by this code

.hikashop_product_column_1, .row-fluid .hikashop_category_column_1, .row-fluid-7 .hikashop_product_column_1, .row-fluid-7 .hikashop_category_column_1, .row-fluid-8 .hikashop_product_column_1, .row-fluid-8 .hikashop_category_column_1, .row-fluid-10 .hikashop_product_column_1, .row-fluid-10 .hikashop_category_column_1, .row .hikashop_product_column_1, .row .hikashop_category_column_1 {
margin-left: 0 !important;
clear: left;
}
so each time hiakshop or css guy ll use !important ; there ll be some area where the default rules of CSS ll not apply and you ll have toknow this area or ask t othe developper howto override this behaviour .

best l lbe e documentation page where hikashop css guy explain how the layout is design or look at the php code .
I do this many months ago ....

Attachment not found

Last edit: 10 years 5 months ago by lionel75.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #238021 by nicolas
Hi,

Add that CSS and it will work like you want:
Code:
.row-fluid .hikashop_product_column_1, .row-fluid .hikashop_category_column_1, .row-fluid-7 .hikashop_product_column_1, .row-fluid-7 .hikashop_category_column_1, .row-fluid-8 .hikashop_product_column_1, .row-fluid-8 .hikashop_category_column_1, .row-fluid-10 .hikashop_product_column_1, .row-fluid-10 .hikashop_category_column_1, .row .hikashop_product_column_1, .row .hikashop_category_column_1 { clear:none !important; }
The following user(s) said Thank You: ralph024

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #238147 by ralph024
Hi Nicolas,

Thanks that works perfect! :woohoo:

Is this also possible without Bootstrap? Because when i enable the Bootstrap option, my buttons at the checkout look as in the attachment 1. It first looked always like attachment 2

Thanks!

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #238148 by nicolas
The CSS of your template is quite messy.

Then you can turn off bootstrap, and use such CSS to make the listing responsive wtihout bootstrap:
www.hikashop.com/forum/product-category-...p-option.html#211235
The following user(s) said Thank You: ralph024

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #239606 by ralph024
Thanks it works ;)

Please Log in or Create an account to join the conversation.

Time to create page: 0.305 seconds
Powered by Kunena Forum