Category listing does not work on VM2.0.18 to VM2.0.26D

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

Category listing does not work on VM2.0.18 to VM2.0.26D

Postby admin » Wed Jan 22, 2014 3:05 pm

Hello friends, we had discovered a bug within VM versions that prevents listing of the products on category pages other then the first one. if you experience this issue we recommend to update this part of the VM core code:

file:
\administrator\components\com_virtuemart\models\product.php

search for function:
public function setPaginationLimits () {

and update from
Code: Select all
if ((!empty($lastCatId) and $lastCatId != $cateid) or $lastManId != $manid) {
            //We are in a new category or another manufacturer, so we start at page 1
            $limitStart = 0;
         }
         else {


to:
Code: Select all
if ((!empty($lastCatId) and $lastCatId != $cateid) or $lastManId != $manid) {
            //We are in a new category or another manufacturer, so we start at page 1
            $limitStart = JRequest::getInt('limitstart', 0);
         }
         else {


This code should have update the limit start per change of a category, but it's not what is happening on some installations.

After further investigation the actual issue was not caused by VM itself, but by a 3rd party extension which improperly set the last visited category. This update may be needed when categories are rendered outside the VM default pages. It should get included in the next VM versions.

Best Regards,
Stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Return to One Page Checkout for Virtuemart 2

cron