News:

Looking for documentation? Take a look on our wiki

Main Menu

Limitbox issue

Started by randomdev, October 24, 2012, 09:43:10 AM

Previous topic - Next topic

randomdev

Using vm2.0.6 (cant upgrade)

Url before clicking limitbox:
index.php?option=com_virtuemart&view=category&virtuemart_category_id=130&Itemid=402

After clicking limitbox:
index.php?option=com_virtuemart&view=category&virtuemart_category_id=130&Itemid=402&limit=12

Modules that should load with itemid 402 are no longer loading, if I manually change &Itemid=402 to &Itemid=402 the modules load fine. How can I fix this?

I have also noticed if I click the limit box a number of times the link gets very long and doesnt look right to me?
e.g. after choosing 12, 24, then 36 from the limitbox
index.php?option=com_virtuemart&view=category&virtuemart_category_id=130&Itemid=402&limit=24&view=category&virtuemart_category_id=130&Itemid=&limit=36

randomdev

This is how I fixed it if anyone has the same issue (I don't understand how everyone does not have this issue?).

Edited vmmodel.php in helpers directory as follows and it seems to work:

   //$limits[]=JHtml::_('select.option', JRoute::_( $link.'&limit='. $items), $items);
   $limits[]=JHtml::_('select.option',htmlspecialchars_decode(JRoute::_( $link.'&limit='. $items)), $items);

   //$selected= JRoute::_( $link.'&limit='. $selected) ;
   $selected=htmlspecialchars_decode(JRoute::_( $link.'&limit='. $selected) );

jenkinhill

Quote from: randomdev on October 25, 2012, 04:01:09 AM
(I don't understand how everyone does not have this issue?).

Maybe they are all using the current version, not an old one......
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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