Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Increase number of products in category Selector.

Increase number of products in category Selector. 11 years 2 months ago #2661

I'm sorry if ive missed this in documentation or a mis setting on my part, but is there away to dictate the number of products that are shown in category view when using the category view buttons at the top of the template - See screenshot.

I have set my categories to show 3 products and there is 15 products per page as default, so when viewing them in category view this shows a 1 product per line, 3 per line or 4 per line when I click through the category view buttons.

But is there a way to have these show 1, 3 & 5 per line?

Its the last button that I want to change to show up 5 products per line.

Also is there some CSS I can change for each of these 3 views? I want to set a min-height for each of them, so they all show up nice & neat, regardless of title length, product discount, etc

Thanks

Andy
Attachments:
The topic has been locked.

Increase number of products in category Selector. 11 years 2 months ago #2693

Hi,

Yes it is possible to make them 1,3 and 5
Normally the "MultiGrid" is +1 of what ever for the normal view. If it is 3 already, the multiGrid become 3+1=4,

You just need to change this +plus number from 1 to 2. So it will become
1,3, and 5

To do it,
open this PHP file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/category/default.php
(default.php, defaultlist.php, flexv2.php, flexv2list.php or what ever you are currently using, there are 6 different category browse page layouts and you are using only one of them depends on what ever you chose from VM Configuration)


Find this line: (around 724th line)
$this->perRow = $this->perRow + 1;

And change with this:
$this->perRow = $this->perRow + 2;

you will get 1, 3 and 5 product per line.

About your second question, you can add this CSS rule:
.FlexibleBrowseThumbProductInner {
    height: 370px;
}

To the bottom of this CSS file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/assets/css/flexibleVM2Global.css

So the category boxes will have the fixed height of 370px

Regards.
Forum Support.
Last Edit: 11 years 2 months ago by Support.
The topic has been locked.

Increase number of products in category Selector. 11 years 2 months ago #2899

Thanks, Ive done this and all works fine!

Mark Solved if you wish!
The topic has been locked.

Increase number of products in category Selector. 11 years 2 months ago #2902

Thanks for letting us know!
The topic has been locked.
Time to create page: 0.157 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo