Manufacturer Product list Pagination Not Work After Upgrade to 2.0.22a

Started by copierx, August 01, 2013, 06:33:17 AM

Previous topic - Next topic

copierx

Hello,

1- When click on show all manufacturer products i can only view the first page of products, click on other page listing return me to first page,
I have check both with sef and orginal links no changes. still i can not browse over pagination.

2- Sometimes only shows a few products from manufacturer or it is completely empty.

When i have check source code of page ; link is one of the category page from shop.

"index.php?option=com_virtuemart&view=category&virtuemart_category_id=159" rel="canonical"

Vm debug for empty manufacturer products page:
------------------------------------------------------------------------------------------------------------------
vmdebug My selected language by JFactory::getLanguage()->getTag() tr-TR
vmdebug self::$_jpConfig->lang tr_tr
vmdebug vmTime: loadConfig db no: 0.0060000419616699
vmdebug Start used Ram 7.25M
vmdebug checkValidOrderingField:VirtueMartModelProduct programmer choosed invalid ordering mf_name, use product_name
vmdebug setPaginationLimits is site and $cateid,$manid Var1: -1

Var2: 26


vmdebug Calculated $limit Var1: 10

Var2: 10


vmdebug vmTime: VirtuemartControllerCategory Finished task : 0.54903101921082
vmdebug End used Ram 10.25M
vmdebug Peak memory peak 10.5M
-----------------------------------------------------------------------------------------------------------------
The interesting thing is no problem when trying to browse over categories pages. Shows full products and no pagination problem.

Joomla! 2.5.13
VM: 2.0.22a
Php: 5.3.26 / i have also test on 5.4
Mysql: 5.5.32-cll / i have also test on 5.3

sandstorm

I have a very similar problem - did you figure out a solution?

Categories all work fine, but pagination for manufacturers doesnt work so well. When we click on page 2 to view the 2nd page of manufacturer products, the page just seems to refresh?

J3.6.4 / PHP7.0.12
VM3.0.16


Milbo

Maxim, copierx wrote very detailed and I assume sandstorm has the same version ;-) Thanks for doing your job, happens.

I just tried to reproduce the error. Works for me. But as you can see we had to work on this. Maybe the 2.0.24c fixes it already for you. 2.0.25 is on the way.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

sandstorm

Thanks Maxim, very helpful.  :-X
I was merely responding to copierx, to see if he/she had found a solution themselves, as my post suggested.

I have already discussed further here with full details of Joomla, PHP version, VM versions tried, etc http://forum.virtuemart.net/index.php?topic=120197.msg411238#msg411238
J3.6.4 / PHP7.0.12
VM3.0.16

nickmixservos

Quote from: copierx on August 01, 2013, 06:33:17 AM
Hello,

1- When click on show all manufacturer products i can only view the first page of products, click on other page listing return me to first page,
I have check both with sef and orginal links no changes. still i can not browse over pagination.

2- Sometimes only shows a few products from manufacturer or it is completely empty.

When i have check source code of page ; link is one of the category page from shop.

"index.php?option=com_virtuemart&view=category&virtuemart_category_id=159" rel="canonical"

Vm debug for empty manufacturer products page:
------------------------------------------------------------------------------------------------------------------
vmdebug My selected language by JFactory::getLanguage()->getTag() tr-TR
vmdebug self::$_jpConfig->lang tr_tr
vmdebug vmTime: loadConfig db no: 0.0060000419616699
vmdebug Start used Ram 7.25M
vmdebug checkValidOrderingField:VirtueMartModelProduct programmer choosed invalid ordering mf_name, use product_name
vmdebug setPaginationLimits is site and $cateid,$manid Var1: -1

Var2: 26


vmdebug Calculated $limit Var1: 10

Var2: 10


vmdebug vmTime: VirtuemartControllerCategory Finished task : 0.54903101921082
vmdebug End used Ram 10.25M
vmdebug Peak memory peak 10.5M
-----------------------------------------------------------------------------------------------------------------
The interesting thing is no problem when trying to browse over categories pages. Shows full products and no pagination problem.

Joomla! 2.5.13
VM: 2.0.22a
Php: 5.3.26 / i have also test on 5.4
Mysql: 5.5.32-cll / i have also test on 5.3
The problem is /public_html/administrator/components/com_virtuemart/models/product.php
  if ($lastCatId != $manid ) {// Condition is only True
       $limitStart = 0;
       } else
       {          $limitStartString = 'com_virtuemart.' . $view . 'm' . $manid . '.limitstart';
                   $limitStart = $app->getUserStateFromRequest($limitStartString, 'limitstart', JRequest::getInt('limitstart', 0), 'int');
                }