VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: guardiano78 on June 17, 2016, 12:15:30 PM

Title: virtuemart pagination
Post by: guardiano78 on June 17, 2016, 12:15:30 PM
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
Title: Re: virtuemart pagination
Post by: guardiano78 on June 17, 2016, 20:33:08 PM
you can not use the virtuemart pagination into another component?
Title: Re: virtuemart pagination
Post by: Studio 42 on June 17, 2016, 20:51:33 PM
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.