VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: illambi on June 14, 2012, 01:06:23 AM

Title: Product Pagination Style in Category View
Post by: illambi on June 14, 2012, 01:06:23 AM
Hello collegues!
I am using VirtueMart 2.0.6 on Joomla 1.5.25, with  rt_Gantry Template. My web site is in http://v3.agroperfil.com/categorias/2/frutas2012-05-30-20-24-10.html (http://v3.agroperfil.com/categorias/2/frutas2012-05-30-20-24-10.html)

The issue is when I go to a category with several products, and it needs pagination, show me the pagination block in vertical mode. When take a look at the source code, I can see that instead <ul><li>, I have a <div> structure.

Then I changed the template for the default one, and it works like a charm. I tried to edit the default.php in \templates\rt_gantry_j15\html\com_virtuemart\category , but in line169 it call to the function vmPagination->getPagesLinks(); who writes the Divs structure.
Do you know what file I need to change? Where is getPagesLinks function definition? and Why works well in the default template if the Divs structure isn't related to the template?

                               
Thanks in advance!
Greetings from Patagonia Argentina!

Ines.-
Title: Re: Product Pagination Style in Category View
Post by: illambi on June 18, 2012, 02:27:41 AM
I still have the problem... someone there  :'(?
I need the pagination block in horizontal style, not vertical. Take a look at the screenshot

thanks!

Ines.-

[attachment cleanup by admin]
Title: Re: Product Pagination Style in Category View
Post by: illambi on June 21, 2012, 22:12:29 PM
I solved this!the problem was in the joomla template (rt_gantry).
The page pagination.php in templates\rt_gantry_j15\html re writes de <ul><li> menu, like <div> structure.
I replaced these lines with the same one from other template, and it works like a charm!

thanks anyway!

Ines.-
Title: Re: Product Pagination Style in Category View
Post by: antogkez on February 22, 2013, 08:02:36 AM
hello!
i have the same problrm, but i can't find anyware the pagination.php file. could you please help? ore attach the file here and tell me where to place it?
thanks in advance..
Title: Re: Product Pagination Style in Category View
Post by: jenkinhill on February 22, 2013, 10:15:27 AM
Are you using that same RocketTheme template? That's where that file is.
Title: Re: Product Pagination Style in Category View
Post by: antogkez on February 22, 2013, 11:49:48 AM
hello!
thanks for your response! i use this template: http://www.awesomejoomlatemplates.com/business13/index.php
i can't find anyware the  pagination.php file. Although i think that problem must be in gantry.css or joomla.css files. At least that's what i can tell from firebug. any idea? I've been forced to show 200 products/page to avoid that vertical pagination style...
thanks again in advace for any help
Title: Re: Product Pagination Style in Category View
Post by: jenkinhill on February 22, 2013, 15:18:42 PM
See http://forum.virtuemart.net/index.php?topic=110509.msg370448#msg370448   

Either create an override css file or add the style to the last template css file to load.
Title: Re: Product Pagination Style in Category View
Post by: antogkez on February 22, 2013, 17:32:41 PM
nothing with the following code:
.vm-pagination ul li {
    display: inline;
    margin: 5px !important;
  }
i put it ether in gantry.css, template.css but nothing. how can i create an override css file? how sould i name it, what to write and in which folder to place it?
i remind that i just want my pagination in virtuemart products to be (normal) horizontal instead of vertical...
Title: Re: Product Pagination Style in Category View
Post by: jenkinhill on February 22, 2013, 18:02:46 PM
Override css could be custom.css (for example) and add the code to load it  to your Joomla template's index.php immediately before the </head> tag
Title: Re: Product Pagination Style in Category View
Post by: antogkez on February 22, 2013, 18:28:41 PM
well, i created a custom.css file with the code:
.vm-pagination ul li {
    display: inline;
    margin: 5px !important;
  }
then i added the file in the css folder of the template
and in index.php added my css at this line:
$gantry->addStyles(array('template.css','joomla.css','style.css', 'custom.css'));

but nothing again
Title: Re: Product Pagination Style in Category View
Post by: jenkinhill on February 23, 2013, 00:12:49 AM
I don't use Gantry on any of my sites, so don't have an example to look at. Can you post the site url or if not, the output code from the page, just the part with pagination & surrounding div?
Title: Re: Product Pagination Style in Category View
Post by: antogkez on February 23, 2013, 08:18:48 AM
here's the code:

<div id="bottom-pagination">
               <ul><li class="pagination-start"><span class="pagenav">Start</span></li><li class="pagination-prev"><span class="pagenav">Previous</span></li><li><span class="pagenav">1</span></li><li><a title="2" href="/index.php/servirisma-kafe-tsai/flytzania-tsagioy-cappoucino/results,49-48" class="pagenav">2</a></li><li class="pagination-next"><a title="Next" href="/index.php/servirisma-kafe-tsai/flytzania-tsagioy-cappoucino/results,49-48" class="pagenav">Next</a></li><li class="pagination-end"><a title="End" href="/index.php/servirisma-kafe-tsai/flytzania-tsagioy-cappoucino/results,49-48" class="pagenav">End</a></li></ul>               <span style="float:right">Page 1 of 2</span>
            </div>

         <div class="clear"></div>
Title: Re: Product Pagination Style in Category View
Post by: jenkinhill on February 23, 2013, 13:52:07 PM
That looks like it is using a template override.

So the css required is probably

#bottom-pagination ul li {
    display: inline;
    margin: 5px !important;
  }
Title: Re: Product Pagination Style in Category View
Post by: antogkez on February 25, 2013, 07:54:02 AM
Hello again!
thank you very much! that was what was needed! everything ok now! thanks for all your replies... you're great!
to sum up for any other:

i created a custom.css file with the code:
#bottom-pagination ul li {
    display: inline;
    margin: 5px !important;
  }
then i added the file in the css folder of the template
and in index.php of the template added my css at this line:
$gantry->addStyles(array('template.css','joomla.css','style.css', 'custom.css'));