category layout change amount of rows and columns

  • superdre
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 7 months ago #18599 by superdre
Hi, i bought the Virtuemart template Hot Cosmetics, sorry about posting in this category but i couldn´t find Hot Cosmetics on the list.
I´m having troubles trying to modify the amount of categories shown when you click CATALOGO button, you can see it here:
www.cyclos-demo2.com.ar/index.php/catalogo
Now i have two columns i need to have 3 or 4 columns can anybody help me from where i can modify it? Do i need to hack the code?
Thanks!

Andrea.

Please Log in to join the conversation.

  • superdre
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 7 months ago #18600 by superdre
I found where to set the amount of categories shown in a row:
in the backend Components/Virtuemart/Configuration/Templates/Shopfront Settings / Default numbers of categories in a row.. and you set the desire number.
The problem is it creates an extra row, for example if i enter 4 (show 4 categories in a row) it creates a row below the one set, so i end having:

first row: 4 categories
second row: 1 category (don´t know why)
third row: 4 categories
forth row: 1 category (don´t know why)

I attached an image.
thanks for any help you can give.
Attachments:

Please Log in to join the conversation.

More
12 years 7 months ago #18623 by ivan.milic
Look in:

templates\hot_cosmetics\html\com_virtuemart\categories\default.php
and
templates\hot_cosmetics\html\com_virtuemart\category\default.php

line you need to find in this files:

$categories_per_row = VmConfig::get ( 'categories_per_row', 3 );

you can do:

$categories_per_row = 4;

Please Log in to join the conversation.

  • superdre
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 7 months ago #18632 by superdre
But the problem i´m facing is that i always get a row with only one category, i could change from backend (without altering the code) the amount of categories but if i enter 4 per row as a result i get

4
1
4
1

as you can se in www.cyclos-demo2.com.ar/index.php/catalogo , if i put 3 per row i get:

3
1
3
1

any clue?

Please Log in to join the conversation.

  • superdre
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 7 months ago #18639 by superdre

Please Log in to join the conversation.

  • superdre
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 7 months ago #18647 by superdre
though i change the code i´m having the same problem. If i set 4 per row i get 4 categories in the first row, 1 category in the second, 4 categories in the third and again 1 category in the forth row, this will vary according the number of categories. It´s like the template shows the categories in a messy way.
Pleas people at Support i need a little help on this.
regard.s
Andrea.
Attachments:

Please Log in to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum