Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / view all in category

view all in category

Locked

Views: 980

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 Jun 2007, 10:15 PM
#1
billc108 avatar

billc108

Zen Follower

Join Date:
Apr 2005
Location:
ATX
Posts:
108
Plugin Contributions:
0

view all in category

Hi folks

quick question:

One of my clients wants to include a "view all" button near the page selection when there are more products than are normally displayed on one page.

I vaguely remember having seen that in Zen once, but it may just have been on the designer's mockup.

Is there an easy way to do this? I've done a fair bit of thread searching and haven't run into any solutions yet, or even any discussions.

Thanks

30 Jun 2007, 10:49 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: view all in category

Somewhere I have posted the code to make a View All ... you may need to do some searching or perhaps someone recalls the thread ...

Good news is that it is under my name ... :smile:

Bad news is that I have just a few more threads posted than the average bear ... :cry:

1 Jul 2007, 6:47 AM
#3
billc108 avatar

billc108

Zen Follower

Join Date:
Apr 2005
Location:
ATX
Posts:
108
Plugin Contributions:
0

Re: view all in category

Found it, thanks:

http://www.zen-cart.com/forum/showthread.php?t=38551

And btw, I'm very appreciative of your massive volume of useful posts.

1 Jul 2007, 7:31 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: view all in category

Thanks for posting the link to the thread for the View All Products ... this is always of help to others ... :smile:

Glad you were able to wade through all of the posts and find it!

1 Jul 2007, 8:37 PM
#5
billc108 avatar

billc108

Zen Follower

Join Date:
Apr 2005
Location:
ATX
Posts:
108
Plugin Contributions:
0

Re: view all in category

Ajeh:

Thanks for posting the link to the thread for the View All Products ... this is always of help to others ... :smile:

Glad you were able to wade through all of the posts and find it!

No problem. I figured it might increase the chances of someone else finding the answer.

BTW, I did it a little differently than you described. In order to insert the link on the page, I went to /includes/classes/split_page_results.php and just after lines 128-129 where it has:

// 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> ';

I added:

//AD Mod - include a view all in category if more than one page
if ($this->number_of_pages != 1) $display_links_string .= ' <a href="' . zen_href_link($_GET['main_page'], $parameters . 'override=more' , $request_type) . '" title=" ' . PREVNEXT_TITLE_NEXT_PAGE . ' "><img src="images/btn_viewall.gif" alt="View All" height="19" width="61" border="0" valign="bottom" /></a> ';

I've still got to play with the layout a little as the image is riding a bit high, but functionally it's doing fine.

<shameless self-promo> You can see it at:

http://austindiamondstore.com/index.php?main_page=index&cPath=1_5_12

</shameless self-promo>