version of zencart: v1.3.8a/v1.3.8
When using the display_links function within the split_page_results, the function does not correctly use the page_name that you set. This only occurs on the next link.
This code is around line 126
PHP Code:
// next button
if (($this->current_page_number < $this->number_of_pages) && ($this->number_of_pages != 1)) $display_links_string .= ' <a href="' . zen_href_link($_GET['main_page'], $parameters . 'page=' . ($this->current_page_number + 1), $request_type) . '" title=" ' . PREVNEXT_TITLE_NEXT_PAGE . ' ">' . PREVNEXT_BUTTON_NEXT . '</a> ';
This line needs to be changed to the following to prevent the display_links from being broken.
PHP Code:
// next button
if (($this->current_page_number < $this->number_of_pages) && ($this->number_of_pages != 1)) $display_links_string .= ' <a href="' . zen_href_link($_GET['main_page'], $parameters .$this->page_name . '=' . ($this->current_page_number + 1), $request_type) . '" title=" ' . PREVNEXT_TITLE_NEXT_PAGE . ' ">' . PREVNEXT_BUTTON_NEXT . '</a> ';
This problem will only occur when you try using a page_name in the split_page_results other then "page". So for instance, the following line of code will result in the next button failing to work properly.
PHP Code:
$result = new splitPageResults($query, MAX_DISPLAY_PRODUCTS_LISTING, 'pages_id', 'diffpage');
Bookmarks