VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: tomarmst on January 10, 2013, 13:19:55 PM

Title: Category page layout problem
Post by: tomarmst on January 10, 2013, 13:19:55 PM
I have recently created an online shop with virtuemart latest version with joomla 2.5.8. The problem is that the products listing in the category page is not normal. How can i correct it. The link of the page is: http://www.triyom.com/index.php/triyomshop/treatment-packages


[attachment cleanup by admin]
Title: Re: Category page layout problem
Post by: bettondesign on January 10, 2013, 13:30:02 PM
The problem lies in your css, each product is set to be 10% of the total width of the page.
Title: Re: Category page layout problem
Post by: bettondesign on January 10, 2013, 13:31:40 PM
In viruemart go to configuration->templates and change the setting 'Default number of products in a row'.
Title: Re: Category page layout problem
Post by: tomarmst on January 10, 2013, 15:24:31 PM
I have already set "default number of products in a row" to 3, but not worked and also I never altered default virtuemart css file.
Title: Re: Category page layout problem
Post by: Peter Pillen on January 10, 2013, 18:17:29 PM
If you did so, probably the page is still loaded from your cache. When adapting your site lay-out, it is good practice to disable all cache plugins and extensions temporarily. First disable all cache plugins and clean your cache in the administrator plugin.

In my browser I see that the css file is loaded from a cached and gzipped file with the help of JCHoptimize. Turn it off to be sure that your changes in the backend have effect on the frontend.
Title: Re: Category page layout problem
Post by: PRO on January 10, 2013, 19:34:27 PM
http://forum.virtuemart.net/index.php?topic=102850.0
Title: Re: Category page layout problem
Post by: Peter Pillen on January 11, 2013, 08:33:27 AM
It was with firebug that I discovered the use of JCHoptimize and the cached files. I couldn't see any weird html that could cause the 10 products on 1 line.
Title: Re: Category page layout problem
Post by: tomarmst on January 11, 2013, 08:37:30 AM
Quote from: P2 Peter on January 10, 2013, 18:17:29 PM
If you did so, probably the page is still loaded from your cache. When adapting your site lay-out, it is good practice to disable all cache plugins and extensions temporarily. First disable all cache plugins and clean your cache in the administrator plugin.

In my browser I see that the css file is loaded from a cached and gzipped file with the help of JCHoptimize. Turn it off to be sure that your changes in the backend have effect on the frontend.

Thank you for your advise, i did as per your saying, but not helped me  :(
Title: Re: Category page layout problem
Post by: Peter Pillen on January 11, 2013, 08:50:10 AM
well... in that case. Find your vmlite-ltr.css file in the template you are using and look for

.width10 {
    width: 10%;
}


change it to 33% for a three column layout, but I would use 50% (two-column lay-out) It works better in your site layout in my opinion.

It is still weird that your template automatically goes to a ten column layout and ignores the settings in the backend. This could be caused by a faulty programming in your template.
Title: Re: Category page layout problem
Post by: tomarmst on January 11, 2013, 09:17:37 AM
Quote from: P2 Peter on January 11, 2013, 08:50:10 AM
well... in that case. Find your vmlite-ltr.css file in the template you are using and look for

.width10 {
    width: 10%;
}


change it to 33% for a three column layout, but I would use 50% (two-column lay-out) It works better in your site layout in my opinion.

It is still weird that your template automatically goes to a ten column layout and ignores the settings in the backend. This could be caused by a faulty programming in your template.

bingo... thanks a lot... worked for me. As per your opinion I changed default product list to 2 and used 50%. The file was vmsite-ltr.css (not vmlite-ltr.css) in my case. Thank you again.