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.
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.
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
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:
and see if that is what you are looking for ...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>'; ?>
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!
thanks Linda, I'll give it a try. :-)
yes your code does return the page to the top - thanks again.
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!