Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2005
    Location
    ATX
    Posts
    111
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...

    Bad news is that I have just a few more threads posted than the average bear ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Apr 2005
    Location
    ATX
    Posts
    111
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...

    Glad you were able to wade through all of the posts and find it!
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Apr 2005
    Location
    ATX
    Posts
    111
    Plugin Contributions
    0

    Default Re: view all in category

    Quote Originally Posted by Ajeh View Post
    Thanks for posting the link to the thread for the View All Products ... this is always of help to others ...

    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 .= '&nbsp;<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>&nbsp;';


    I added:

    //AD Mod - include a view all in category if more than one page
    if ($this->number_of_pages != 1) $display_links_string .= '&nbsp;<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>&nbsp;';

    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....x&cPath=1_5_12

    </shameless self-promo>

 

 

Similar Threads

  1. How to get a "View All" link per category?
    By cchan in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Feb 2011, 06:15 PM
  2. All images in category view stopped displaying in IE7/IE8..help!
    By buddhaflow in forum General Questions
    Replies: 5
    Last Post: 16 Dec 2010, 04:05 PM
  3. Cand admin category view to show all products
    By dasonix in forum Basic Configuration
    Replies: 4
    Last Post: 21 Apr 2007, 05:43 PM
  4. View all products in top level category?
    By doodlebee in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 15 Nov 2006, 11:53 PM
  5. Category tree: "View All" ?
    By knitwerk in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 1 Nov 2006, 11:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg