Totally Zenned
- Join Date:
- Feb 2009
- Location:
- UK
- Posts:
- 1,326
- Plugin Contributions:
- 0
"View All" link
A big thumbs up for Ajeh's method - works fine in v1.51
http://www.zen-cart.com/showthread.php?38551-View-All-link&p=229225#post229225
Views: 24,241
Totally Zenned
A big thumbs up for Ajeh's method - works fine in v1.51
http://www.zen-cart.com/showthread.php?38551-View-All-link&p=229225#post229225
Totally Zenned
Scrub that premature praise - still some work to do as sorting by price clears the view all selection
New Zenner
ive used your code and it works like a charm in my categories. but for some reason it cannot work in feature,special pages giving me a error with no description when clicked. Therefore is there a way to disable the button when you click on those pages ?
the code is this:
Totally Zenned
This might be one for Ajeh - Although obviously any help is welcome
I am wanting to implement a view all button on the Products Listing. I had something similar working which you can see here on this site https://www.tapes-direct.co.uk/index.php?main_page=index&cPath=131_156
You will see a View All Products Button.
I added this by adjusting the code in split_pages_results.php
Just after
if (zen_not_null($parameters) && (substr($parameters, -1) != '&')) $parameters .= '&';
I added:
if (!$this->page_all) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . 'all', $request_type) . '" title=" ' . SHOW_ALL_TITLE . ' ">' . SHOW_ALL_BUTTON . '</a> ';
else $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters, $request_type) . '" title=" ' . SHOW_PAGEVIEW_TITLE . ' ">' . SHOW_PAGEVIEW_BUTTON . '</a> ';
This works fine on Tapes Direct, which is running 1.5.4. However on 1.5.5e it doesn't work, in fact doesn't show the button at all.
I have also tried some of the methods in this thread, but none of them seem to work with 1.5.5e
Totally Zenned
Nick1973:
This might be one for Ajeh - Although obviously any help is welcome
I am wanting to implement a view all button on the Products Listing. I had something similar working which you can see here on this site https://www.tapes-direct.co.uk/index.php?main_page=index&cPath=131_156
You will see a View All Products Button.
I added this by adjusting the code in split_pages_results.php
Just after
if (zen_not_null($parameters) && (substr($parameters, -1) != '&')) $parameters .= '&';
I added:
if (!$this->page_all) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . 'all', $request_type) . '" title=" ' . SHOW_ALL_TITLE . ' ">' . SHOW_ALL_BUTTON . '</a>####';
else $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters, $request_type) . '" title=" ' . SHOW_PAGEVIEW_TITLE . ' ">' . SHOW_PAGEVIEW_BUTTON . '</a>####';This works fine on Tapes Direct, which is running 1.5.4. However on 1.5.5e it doesn't work, in fact doesn't show the button at all.
I have also tried some of the methods in this thread, but none of them seem to work with 1.5.5e
This is in english.php as well:
define('SHOW_ALL_TITLE', 'Show All Products on One Page');
define('SHOW_ALL_BUTTON', '<div class="pageViewButton">View All Products</div>');
define('SHOW_PAGEVIEW_TITLE', 'Show 6 Products Per Page');
define('SHOW_PAGEVIEW_BUTTON', '<div class="pageViewButton">View as Split Pages</div>');
Totally Zenned
Got this working in the end using the code supplied by asdf on page 3
Tell staff why this post should be reviewed.