Post by deCorvett » Thu Jan 05, 2012 7:03 pm

Hi,

I'm working on an idea, and I was willing to know if it's possible to get this data without modifiying more than the templates.

Now, when you want to show pagination links on your template, you simply need to do something like:

Code: Select all

<div class="pagination"><?php echo $pagination; ?></div>
and $pagination is therendered code for the pagination links. It's cool, but that's the opposite I need. I need any of the following:

a) The pagination data (total pages, current page, items per page)
b) Just the urls for the next/previous pages.

It's something I can get without overriding anything outside the templates?

Newbie

Posts

Joined
Thu Jan 05, 2012 6:58 pm

Post by Xsecrets » Thu Jan 05, 2012 9:12 pm

no. as a matter of fact you'll have to work quite hard to get just that data. The html for the pagination is written in the system/library/pagination.php file, so if you mess with it there you'll have to change it in every location where it's used throughout the store.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by deCorvett » Fri Jan 06, 2012 2:23 am

It seems I'll need to patch some files, then. vQMod can do the job without severe performance impact, or I must use an alternative method?

Newbie

Posts

Joined
Thu Jan 05, 2012 6:58 pm

Post by marujobhz » Wed Mar 21, 2012 2:28 am

hi, i need to put all of my products in homepage (with pagination), thats list all products in alphabetical order. any idea how i can do it? any module or extension? thanks.

Newbie

Posts

Joined
Wed May 12, 2010 5:47 am
Who is online

Users browsing this forum: No registered users and 116 guests