Thứ Ba, 13 tháng 12, 2011

Sửa lỗi phân trang trong module VirtueMart pagination

That's relatively easy to get rid of:
File \administrator\components\com_virtuemart\classes\pageNavigation.class.php
Add in line 118: if ($total_pages==1) {return "";};

Now I'm working on how to always show the limit box, because on the top it disappears when there's only one page.

EDIT: To always show the top navigation / results per page for was slightly more difficult:
In \components\com_virtuemart\themes\ja_larix\templates\browse\includes\browse_orderbyform.tpl.php
line change line 36 to
if( true ) {

(or remove "if" completely, of course ...)

Không có nhận xét nào:

Đăng nhận xét