- Posts: 42
- Thank you received: 0
Pagnation issues
-
csimmo
Inactive member - Topic Author
- Member
Less
More
12 years 1 month ago #23469
by csimmo
Replied by csimmo on topic Pagnation issues
Do I replace the existing page /* page navigation */ or add to it?
Thank you for telling me about joomla's change, this will make it easy to correct the problem!
Thank you for telling me about joomla's change, this will make it easy to correct the problem!
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 1 month ago #23473
by ivan.milic
Replied by ivan.milic on topic Pagnation issues
just add it
Please Log in to join the conversation.
-
csimmo
Inactive member - Topic Author
- Member
Less
More
- Posts: 42
- Thank you received: 0
12 years 1 month ago - 12 years 1 month ago #23487
by csimmo
Replied by csimmo on topic Pagnation issues
I am afraid it didn't work. at the same time I added the class for vm-pagination.
I managed to find other virtuemart users suffering the same issue, and there is a possible fix too.
Thank you very much for the time you have spent with me on this project
EDIT: Fixed.
need to edit the product.php file
\administrator\components\com_virtuemart\models
Find line 567 and add this:
$prod_per_page = explode(",",VmConfig::get('pagination_sequence'));
if($limit <= $prod_per_page && array_key_exists('0',$prod_per_page)){
$limit = $prod_per_page;
}
The entire section should then look like this:
$catModel= VmModel::getModel('category');
$category = $catModel->getCategory();
if(empty($limit)){
if(!empty($category->limit_list_initial)){
$suglimit = $category->limit_list_initial;
} else {
if(empty($category->limit_list_step)){
$suglimit = VmConfig::get ('list_limit', 20);
} else {
$suglimit = $category->limit_list_step;
}
}
if(empty($category->products_per_row)){
$category->products_per_row = VmConfig::get ('products_per_row', 3);
}
$rest = $suglimit%$category->products_per_row;
$limit = $suglimit - $rest;
}
$prod_per_page = explode(",",VmConfig::get('pagination_sequence'));
if($limit <= $prod_per_page && array_key_exists('0',$prod_per_page)){
$limit = $prod_per_page;
}
//vmdebug('my cat',$category);
I managed to find other virtuemart users suffering the same issue, and there is a possible fix too.
Thank you very much for the time you have spent with me on this project
EDIT: Fixed.
need to edit the product.php file
\administrator\components\com_virtuemart\models
Find line 567 and add this:
$prod_per_page = explode(",",VmConfig::get('pagination_sequence'));
if($limit <= $prod_per_page && array_key_exists('0',$prod_per_page)){
$limit = $prod_per_page;
}
The entire section should then look like this:
$catModel= VmModel::getModel('category');
$category = $catModel->getCategory();
if(empty($limit)){
if(!empty($category->limit_list_initial)){
$suglimit = $category->limit_list_initial;
} else {
if(empty($category->limit_list_step)){
$suglimit = VmConfig::get ('list_limit', 20);
} else {
$suglimit = $category->limit_list_step;
}
}
if(empty($category->products_per_row)){
$category->products_per_row = VmConfig::get ('products_per_row', 3);
}
$rest = $suglimit%$category->products_per_row;
$limit = $suglimit - $rest;
}
$prod_per_page = explode(",",VmConfig::get('pagination_sequence'));
if($limit <= $prod_per_page && array_key_exists('0',$prod_per_page)){
$limit = $prod_per_page;
}
//vmdebug('my cat',$category);
Last edit: 12 years 1 month ago by csimmo. Reason: Added code to help others
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 1 month ago #23493
by ivan.milic
Replied by ivan.milic on topic Pagnation issues
Ok, thank you or sharing that with us
Please Log in to join the conversation.
Time to create page: 0.078 seconds