Hi,
I installed VM 3.0.3 on a development site, I was trying to use the pagination. But when I go to page 2 I cannot go back to page one.
Demo: https://klant38.b-boom.nl/boeken (https://klant38.b-boom.nl/boeken)
Joomla 3.3.6
VirtueMart 3.0.3
As stated many times here, pagination is broken in Joomla 3.3.6 - testing with alpha/beta Joomla 3.4 shows it is repaired fpor that version.
Is there any update on this?
Thank you
Joomla have released Joomla 3.4 beta1 with "stable" release version expected on 17 February.
This has something to do with the menu. If a category is a menu item then the pagination breaks. Disable the menu items and it works again. I see you fixed it. Did you fix it yourself or have you installed Joomla 3.4?
I've installed joomla 3.4_dev, it is only a development site, I'll launch that site after the joomla 3.4 release.
Quote from: jenkinhill on January 30, 2015, 17:10:32 PM
Joomla have released Joomla 3.4 beta1 with "stable" release version expected on 17 February.
Thank you for the good news.
Quote from: MGHollander on January 30, 2015, 17:17:25 PM
This has something to do with the menu. If a category is a menu item then the pagination breaks. Disable the menu items and it works again. I see you fixed it. Did you fix it yourself or have you installed Joomla 3.4?
What do you exactly mean by that?
Quote from: MAD King on January 30, 2015, 17:25:55 PM
Quote from: MGHollander on January 30, 2015, 17:17:25 PM
This has something to do with the menu. If a category is a menu item then the pagination breaks. Disable the menu items and it works again. I see you fixed it. Did you fix it yourself or have you installed Joomla 3.4?
What do you exactly mean by that?
Well, if you test the pagination of the VirtueMart demo (http://demo.virtuemart.net/pagination-testarea (http://demo.virtuemart.net/pagination-testarea)) you'll notice it works. If you add a menu item with the type "VirtueMart > Category Layout" and you select the category "Pagination testarea" it breaks.
You are referring to VM 2 on Joomla 2.5
I have VM 3.0.3 on Joomla 3.3.6
The demo is VM3 on J2.5 so does not show the Joomla pagination problem.
Thank you jenkinhill for confirming.
I know the demo is on J2.5. I think you miss my point.
Install a J3.3.6 with VM3 including test data. Visit the "Pagination testarea" category and notice that pagination will work! Next add a menu item with the type "VirtueMart > Category Layout" and select the category "Pagination testarea". Visit the "Pagination testarea" category and notice that pagination will break... Unpublish the menu item and pagination will work again.
So, what you are saying is that VM 3 has the broken pagination and not Joomla?
No thats not what I'm saying. The menu item part is Joomla. What I try to say is the problem only appears when you create a menu item for a category neads pagination.
But I need categories to list my products. How else would you list them?
It is not just VM where pagination problems show. http://bit.ly/1BIA8uQ
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?
as has been said many many times - fixed on J3.4 .. when it is released stable update
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.
<?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;
}
Thank you, but it did not change anything.
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?
Wait until February 17th. Joomla 3.4 will be released then and it should be fixed, I hope.
@mediacompadova your VirtueMart is severely out of date and your Joomla version should be updated. Both are critcally insecure.
http://virtuemart.net/news/latest-news/473-security-release-virtuemart-3-0-12
http://virtuemart.net/news/latest-news/475-critical-security-leak-in-all-joomla-versions-please-update-immediatly
http://forum.virtuemart.net/index.php?topic=118683.0