Mobile view - display 2 products side by side

  • Posts: 191
  • Thank you received: 5
10 years 5 months ago #177876

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

  • Posts: 191
  • Thank you received: 5
10 years 5 months ago #177897

Sorry, this should have been in the 'product and category' topic.

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
10 years 5 months ago #177879

Hi,

There is no option for that.
With custom CSS you should be able to achieve that:

@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.

  • Posts: 191
  • Thank you received: 5
10 years 5 months ago #179918

I will try that.

Thank you
Kind regards
Lene

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

  • Posts: 344
  • Thank you received: 3
9 years 11 months ago #201445

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.

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
9 years 11 months ago #201557

Hi,

In your case, you want to use such 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.

  • Posts: 344
  • Thank you received: 3
9 years 11 months ago #201576

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 ?

Attachments:

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
9 years 11 months ago #201589

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.

  • Posts: 344
  • Thank you received: 3
9 years 11 months ago #201641

Perfect, it works like a charm =)

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

  • Posts: 344
  • Thank you received: 3
9 years 5 months ago #218859

@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: 9 years 5 months ago by river.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 5 months ago #218863

Hello,
A solution can be to use that kind of CSS 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.

  • Posts: 39
  • Thank you received: 1
8 years 11 months ago #237958

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

Attachments:

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
8 years 11 months ago #237975

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.

  • Posts: 39
  • Thank you received: 1
8 years 11 months ago #238004

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: 8 years 11 months ago by ralph024.

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

  • Posts: 846
  • Thank you received: 92
8 years 11 months ago #238009

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

Attachments:
Last edit: 8 years 11 months ago by lionel75.

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
8 years 11 months ago #238021

Hi,

Add that CSS and it will work like you want:

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

  • Posts: 39
  • Thank you received: 1
8 years 11 months ago #238147

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!

Attachments:

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
8 years 11 months ago #238148

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.

  • Posts: 39
  • Thank you received: 1
8 years 11 months ago #239606

Thanks it works ;)

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

Time to create page: 0.143 seconds
Powered by Kunena Forum