Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default manufacturer & alpha filter

    I need to add an anchor to both the manufacturer & the alpha filter. I did this many years ago and can't seem to find the "note"

    any ideas?

    simply want the page to return to the #productListing div after a filter is selected.

  2. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: manufacturer & alpha filter

    ok - maybe should explain a little better

    I have coded the index_product_list

    gallery_view
    grid_view
    &
    list_view

    allows the customer to choose their viewing option for the product listing page (works great!)

    however if the customer uses the manufacturer and/or alpha filter in any view other than list_view it reverts to list_view

    example
    say while a customer is on product_listing page (default is list_view)
    index.php?main_page=index&cPath=3_10

    customer clicks link to view product_listing as grid
    index.php?main_page=index&cPath=3_10&changePage=_grid#productListing

    now if customer chooses manufacturer A from dropdown
    index.php?main_page=index&cPath=3_10&changePage=_grid#productListing

    page returns
    index.php?main_page=index&cPath=3_10&sort=&filter_id=4&alpha_filter_id=1

    reverting back to list_view (default)

    is their anyway to get the manufacturer and alpha filter to pick up full URL
    index.php?main_page=index&cPath=3_10&changePage=_grid#productListing&sort=&filte r_id=4&alpha_filter_id=1


    As of right now I have it set so

    if customer chooses manufacturer then clicks alternate view
    index.php?main_page=index&cPath=3_10&filter_id=3&alpha_filter_id=1&changePage=_g allery#productListing

    it works as intended
    I disabled filters while in alternate view also, which suck cause you have to click back on default (list_view) to reset

    just fyi - hoping someone has attempted this and could give a little input

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

    Default Re: manufacturer & alpha filter

    You could try this with your templates and overrides for the file:
    /includes/templates/template_default/templates/tpl_index_product_list.php

    above last line that reads:
    </div>

    at bottom of file add:

    Code:
    <?php
    //echo '<a class="main" href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $_GET['cPath']) . "#productListHeading" . '">' . 'Return to TOP' . '</a>';
    echo '<div class="centeredContent"><a href="' . zen_href_link(FILENAME_DEFAULT, zen_get_all_get_params('cPath', 'sort', 'filter_id', 'alpha_filter_id')  . "#productListHeading" ) . '">' . 'Return to TOP' . '</a></div>';
    ?>
    and see if that is what you are looking for ...
    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!

  4. #4
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: manufacturer & alpha filter

    thanks Linda, I'll give it a try. :-)

  5. #5
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: manufacturer & alpha filter

    yes your code does return the page to the top - thanks again.

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

    Default Re: manufacturer & alpha filter

    Thanks for the update that this is working for you ...
    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!

 

 

Similar Threads

  1. v154 Converting Alpha Filter to UL-List
    By rbarbour in forum General Questions
    Replies: 5
    Last Post: 9 Feb 2016, 10:11 AM
  2. v153 Alpha Filter
    By rbarbour in forum General Questions
    Replies: 3
    Last Post: 7 Oct 2014, 11:51 PM
  3. modified product filter / alpha filter help please
    By bn17311 in forum General Questions
    Replies: 1
    Last Post: 5 Oct 2011, 09:43 PM
  4. Filter by attributes -- exactly like the manufacturer filter
    By Goldlion in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 16 Jan 2010, 03:59 PM
  5. Alpha Sorter - Category/Manufacturer Filter
    By joe90 in forum General Questions
    Replies: 0
    Last Post: 26 Mar 2007, 11:16 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