Author Topic: VM 3.0.3 pagination not working right  (Read 11100 times)

MAD King

  • Jr. Member
  • **
  • Posts: 465
  • Supporter Membership - Gold
  • VirtueMart Version: Always the Latest
Re: VM 3.0.3 pagination not working right
« Reply #15 on: January 31, 2015, 16:34:57 pm »
But I need categories to list my products. How else would you list them?
Joomla! 3.10.11
VirtueMart 4.0.6 10690

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28395
  • Always on vacation
    • Jenkin Hill Internet
Re: VM 3.0.3 pagination not working right
« Reply #16 on: January 31, 2015, 16:57:47 pm »
It is not just VM where pagination problems show. http://bit.ly/1BIA8uQ
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 4.0.8 10748  J3.10.11 PHP 7.4.30

MAD King

  • Jr. Member
  • **
  • Posts: 465
  • Supporter Membership - Gold
  • VirtueMart Version: Always the Latest
Re: VM 3.0.3 pagination not working right
« Reply #17 on: January 31, 2015, 17:04:00 pm »
That was a great animation on the link.
This pagination problem seems to exists for a while on joomla. Why aren't they able to fix this?
Joomla! 3.10.11
VirtueMart 4.0.6 10690

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10638
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: VM 3.0.3 pagination not working right
« Reply #18 on: January 31, 2015, 17:41:40 pm »
as has been said many many times - fixed on J3.4 .. when it is released stable update
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MGHollander

  • Beginner
  • *
  • Posts: 9
Re: VM 3.0.3 pagination not working right
« Reply #19 on: January 31, 2015, 17:49:02 pm »
It's not about listing your products but it's about creating menu items to those categories. And as sad before. It is fixed in Joomla! 3.4.

For the time being I wrote my own fix.

Create a file in you active templates html directory with the name pagination.php. For example: /template/my-awesome-template/html/pagination.php.
Paste this code in it. It may not be the most beautiful solution, but it worked for me.

Don't forget to remove it after you update to Joomla! 3.4.

Code: [Select]
<?php
// no direct access
defined('_JEXEC') or die;

function 
pagination_list_render($list)
{
    
// A less beautiful bugfix for pagination in Joomla! 3.3.6 witch will be fixed in Joomla! 3.4
    // http://forum.virtuemart.net/index.php?topic=127793.0
    // More about pagination overrides: https://docs.joomla.org/Understanding_Output_Overrides#Pagination_Links_Overrides
    
$search '/href="(.*)">/';
    
$replace 'href="$1?limitstart=0">';

    
$list['start']['data'] = preg_replace($search$replace$list['start']['data']);
    
$list['pages'][1]['data'] = preg_replace($search$replace$list['pages'][1]['data']);


    
$html "<ul>";
    
$html .= $list['start']['data'];

    
$pages null;
    foreach (
$list['pages'] as $pagenumber => $page) {
        if (
$page['active'] === false && $pagenumber === 2) {
            
$previous preg_replace($search$replace$list['previous']['data']);
        }
        
$pages .= $page['data'];
    }

    
$html .= isset($previous) ? $previous $list['previous']['data'];
    
$html .= $pages;
    
$html .= $list['next']['data'];
    
$html .= $list['end']['data'];
    
$html .= "</ul>";

    return 
$html;

}

MAD King

  • Jr. Member
  • **
  • Posts: 465
  • Supporter Membership - Gold
  • VirtueMart Version: Always the Latest
Re: VM 3.0.3 pagination not working right
« Reply #20 on: February 01, 2015, 00:02:45 am »
Thank you, but it did not change anything.
Joomla! 3.10.11
VirtueMart 4.0.6 10690

mediacompadova

  • Beginner
  • *
  • Posts: 7
  • Skype Name: n.bondesan1
Re: VM 3.0.3 pagination not working right
« Reply #21 on: February 09, 2015, 17:25:57 pm »
I'm using joomla 3.3.6 with virtuemart 3.0.2 and I've tested on my live site. If SEF is enabled, it doesn't work, only with sef disabled it works. Any suggestions or fix?

MAD King

  • Jr. Member
  • **
  • Posts: 465
  • Supporter Membership - Gold
  • VirtueMart Version: Always the Latest
Re: VM 3.0.3 pagination not working right
« Reply #22 on: February 09, 2015, 17:31:53 pm »
Wait until February 17th. Joomla 3.4 will be released then and it should be fixed, I hope.
Joomla! 3.10.11
VirtueMart 4.0.6 10690

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28395
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 4.0.8 10748  J3.10.11 PHP 7.4.30