Author Topic: Reset pagination?  (Read 12228 times)

ugriecu

  • Beginner
  • *
  • Posts: 27
Re: Reset pagination?
« Reply #15 on: February 01, 2009, 11:37:33 am »
solved....just insert:

$limitstart = intval (mosGetParam($_REQUEST,'limitstart',0));

in the top of page in wich is the problem....
I' using vm/joomla 1.0.15, so if you use the new version have to change some parameters...
If you have problem in showing item number, you can add this line:
$limit = intval (mosGetParam($_REQUEST,'limit',30));
to force # 30 item per page.
In my case I modified only shop.browse.php.

hellodave

  • Jr. Member
  • **
  • Posts: 100
Re: Reset pagination?
« Reply #16 on: February 02, 2009, 03:42:49 am »
Great work ugriecu, it seems to have fixed the problem for me as well.
The equivalent fix for joomla 1.5.* is this -

Code: [Select]
$limitstart = intval(JArrayHelper::getValue($_REQUEST,'limitstart',0));
At least thats what worked for me.
Another one bites the dust :)
Thanks for all the help.
currently working with -
Joomla 2.5.8
VM 2.0.18a

mginop

  • Beginner
  • *
  • Posts: 4
    • Michigan Website Design
Re: Reset pagination?
« Reply #17 on: February 24, 2009, 22:20:12 pm »
I tried hellodave's solution above but it did not seem to help. I placed it atop of my main template file, so this may not be correct. Anyone else get the above (or any other) solution to work? Thanks in advance.

hellodave

  • Jr. Member
  • **
  • Posts: 100
Re: Reset pagination?
« Reply #18 on: February 24, 2009, 22:40:43 pm »
Try putting it at the top of

administrator\components\com_virtuemart\html\shop.browse.php

Its line 20 in my file, just after this -

Code: [Select]
mm_showMyFileName( __FILE__ );
currently working with -
Joomla 2.5.8
VM 2.0.18a

mginop

  • Beginner
  • *
  • Posts: 4
    • Michigan Website Design
Re: Reset pagination?
« Reply #19 on: February 24, 2009, 22:58:35 pm »
Thanks Dave! Works beautifully now.

gorans

  • Guest
Re: Reset pagination?
« Reply #20 on: July 22, 2009, 19:17:04 pm »
Great solution! Works here on Joomla 1.5.12 and Virtuemart 1.1.3.

Thanks a lot mate.