Keyword

[solved] subcategories column problems

  • alfredopacino
  • alfredopacino's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 8 months ago - 10 years 8 months ago #123864 by alfredopacino
[solved] subcategories column problems was created by alfredopacino
link:

Part of the message is hidden for the guests. Please log in or register to see it.


in home page i have catalog mode
the category listed (product) has ~30 subtategories, if i set Sub-category handling to 6 column the 6th makes a new line alone!

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #123865 by Yiota
Replied by Yiota on topic Re: subcategories column problems
This has to do with the template you are using. Maybe the 6th column doesn't fit the available space.

You need to advise your template provider/developer in order to help you with this.

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

  • alfredopacino
  • alfredopacino's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 8 months ago #123866 by alfredopacino
Replied by alfredopacino on topic Re: subcategories column problems
the box has width=16.7%
16.7x6=100.2

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #123867 by Yiota
Replied by Yiota on topic Re: subcategories column problems
Could you enable the sixth column in order to check it out?

Thank you.

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

  • alfredopacino
  • alfredopacino's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 8 months ago - 10 years 8 months ago #123868 by alfredopacino
Replied by alfredopacino on topic Re: subcategories column problems
now it's enabled, it's happen the same if i set 7 cols: the 7th col goes to a new line

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #123869 by Yiota
Replied by Yiota on topic Re: subcategories column problems
Hmm, this seems to happen because the number 16.7 is being rounded from 16.6667.

Open the category.php file in your template overrides and locate this line:
<div class="subCategoryContainer<?php echo $lastContainer; ?>"<?php echo (count($this->subCategories)==1) ? '' : ' style="width:'.number_format(100/$this->params->get('subCatColumns'), 1).'%;"'; ?>>

and replace it with this one
<div class="subCategoryContainer<?php echo $lastContainer; ?>"<?php echo (count($this->subCategories)==1) ? '' : ' style="width:'.number_format(100/$this->params->get('subCatColumns'), 4).'%;"'; ?>>

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

  • alfredopacino
  • alfredopacino's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 8 months ago #123870 by alfredopacino
Replied by alfredopacino on topic Re: subcategories column problems
thanks a lot :cheer:

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #123871 by Yiota
Replied by Yiota on topic Re: subcategories column problems
You are welcome :)

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


Powered by Kunena Forum