News:

Looking for documentation? Take a look on our wiki

Main Menu

virtuemart pagination

Started by guardiano78, June 17, 2016, 12:15:30 PM

Previous topic - Next topic

guardiano78

Hello,
how can I integrate the paging virtuemart in my component?

I tried to insert the following code in my part of the file ../component/name_component/name_component.php:

require(JPATH_ADMINISTRATOR .DS.'components'.DS.'com_virtuemart'.DS.'helpers'.DS.'vmmodel.php');

and in ../tmpl/default.php the following code:

echo $this->vmPagination->getPagesLinks ();


but it does not work!
do you think it is possible to integrate it?
thanks

guardiano78

you can not use the virtuemart pagination into another component?

Studio 42

If you use vmmodel as parent or a child class eg the product model, then you can.
But joomla have it's own pagination. We don't have enought information to give you the right answer.