Show All Products in Catagory
I know there have been a couple of mods that do this but most of them require alot of hacking the system.
Heres a quick mod to give you a "Show All" link next to your page results. Quick and painless like. (Please note this mod is for 4.1.2! i do not know if this will work on older versions as I have never used them) Instructions: Locate this section in the init.php around line #329: Code:
# Add this right after the closing if statment: Code:
# Next open up /customer/main/navigation.tpl around line 4 locate: Code:
{if $total_pages gt 2} Add this right after the /td: Code:
{if $smarty.server.PHP_SELF ne '/manufacturers.php' && $smarty.server.PHP_SELF ne '/admin/orders.php && $smarty.server.PHP_SELF ne '/orders.php' } Hope this helps |
Nice one!
|
Works great in 4.1.0.
Thanks.! |
Did you get this to work in the admin side? It works in the customer side, but not in the admin side.
Thanks |
Works great in 4.0.17 if you order config.php instead of init.php
Thank you very much! |
hi folks. version 4.07. I cannnot find init.php.. i looked in config.php.. but the snippet of code is not the same as in init.php
can someone advise on how to make this work??? tia garz 4.07 php linux |
To get this to work in the admin screen... Change the following line from the mod:
Code:
# Show All Mod By Westin Shafer for Beach Bums Inc. To this: Code:
As for getting this to work in 4.0.7... I've never used it.. But all you should need to do is locate the section of code that pulls in the config info from the database... Right after it, change the varriable that sets the displayed products to some un-reachable number... I set it to 500 as I can't see how any more then that would even load on the page. But you're welcome to set this number to any number you wish. |
Re: Show All Products in Catagory
One more question -
Know how to either not show the "Show All" link on the manufacturers page or have it work on the manufacturers page? Thanks. |
Re: Show All Products in Catagory
Thanks for pointing this out...
Heres the updated init.php to fix the admin orders screen and the manufaturers page. Code:
# To turn this off for both the orders screens and the Manufactureres screens go back to the section in /customer/main/navigation.tpl and change this: Code:
<td>Show All |</td> To this: Code:
{if $smarty.server.PHP_SELF ne '/manufacturers.php'} |
Re: Show All Products in Catagory
Did anybody get this mod to work for 4.0.18 on the customer side?
|
All times are GMT -8. The time now is 02:33 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.