Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Show All Products in Catagory

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 11-03-2006, 01:37 AM
 
showoff showoff is offline
 

Member
  
Join Date: Apr 2004
Posts: 27
 

Default Re: Show All Products in Catagory

This worked immidiatly for me on 4.1.3,
excellent mod, small and effective.
__________________
Showoff Imports.nl - Largest Tuning Store of Europe
-----------------------------------
Currently using X-Cart 4.1.3
Reply With Quote
  #12  
Old 11-04-2006, 02:57 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: Show All Products in Catagory

Anybody managed to get this working in 4.0.12?

It seems to work in 4.0.17, according to banzai, but adding the code
to config.php in my version, resulted in nothing...

Thanks!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #13  
Old 11-05-2006, 05:57 PM
 
gastu gastu is offline
 

Senior Member
  
Join Date: Oct 2005
Location: Chile
Posts: 105
 

Default Re: Show All Products in Catagory

nice!!
__________________
Gonzalo Astudillo Pizarro | https://about.me/gonzaloastudillo
Reply With Quote
  #14  
Old 11-12-2006, 09:17 PM
 
HEK HEK is offline
 

Member
  
Join Date: Jul 2005
Posts: 23
 

Default Re: Show All Products in Catagory

Quote:
Originally Posted by lachild
Code:
{if $total_pages gt 2} <table cellpadding="0"> <tr> <td class="NavigationTitle">{$lng.lbl_result_pages}:</td>


I am using 4.1.3 but I cannot find this code in
customer/man/navigation.tpl

my code starts like that

Code:
{* $Id: navigation.tpl,v 1.16.2.1 2006/06/16 10:47:41 max Exp $ *} {assign var="navigation_script" value=$navigation_script|amp} {if $total_pages gt 2} <table cellpadding="0"> <tr> {if $current_super_page gt 1} <td><a href="{$navigation_script}&amp;page={math equation="page-1" page=$start_page}"><img src="{$ImagesDir}/larrow_2.gif" class="NavigationArrow" alt="{$lng.lbl_prev_group_pages|escape}" /></a></td> {/if} {section name=page loop=$total_pages start=$start_page} {if %page.first%} {if $navigation_page gt 1} <td valign="middle"><a href="{$navigation_script}&amp;page={math equation="page-1" page=$navigation_page}"><img src="{$ImagesDir}/larrow.gif" class="NavigationArrow" alt="{$lng.lbl_prev_page|escape}" /></a>&nbsp;</td><td>Show All |</td> {/if} {/if} {if %page.index% eq $navigation_page} <td class="NavigationCellSel" title="{$lng.lbl_current_page|escape}: #{%page.index%}">{%page.index%}</td> {else} {if %page.index% ge 100} {assign var="suffix" value="Wide"} {else} {assign var="suffix" value=""} {/if} <td class="NavigationCell{$suffix}"><a href="{$navigation_script}&amp;page={%page.index%}" title="{$lng.lbl_page|escape} #{%page.index%}">{%page.index%}</a><img src="{$ImagesDir}/spacer.gif" alt="" /></td> {/if} {if %page.last%} {math equation="pages-1" pages=$total_pages assign="total_pages_minus"} {if $navigation_page lt $total_super_pages*$config.Appearance.max_nav_pages} <td valign="middle">&nbsp;<a href="{$navigation_script}&amp;page={math equation="page+1" page=$navigation_page}"><img src="{$ImagesDir}/rarrow.gif" class="NavigationArrow" alt="{$lng.lbl_next_page|escape}" /></a></td> {/if} {/if} {/section} {if $current_super_page lt $total_super_pages} <td><a href="{$navigation_script}&amp;page={math equation="page+1" page=$total_pages_minus}"><img src="{$ImagesDir}/rarrow_2.gif" class="NavigationArrow" alt="{$lng.lbl_next_group_pages|escape}" /></a></td> {/if} </tr> </table> <p /> {/if}

could anyone help me?
__________________
HEK

X-Cart 4.1.3 Gold
PHP 4.3.11
MySQL server 4.0.27
Reply With Quote
  #15  
Old 11-13-2006, 06:51 AM
 
lachild lachild is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 92
 

Default Re: Show All Products in Catagory

EDIT: Looking into this further... I see that you have the code in there correctly it's just that when the forums moved to the new BBS software it currupted the link. I have fixed the original post.

For your problem locate line 11 that reads:
Code:
{if $navigation_page gt 1} <td valign="middle"><a href="{$navigation_script}&amp;page={math equation="page-1" page=$navigation_page}"><img src="{$ImagesDir}/larrow.gif" class="NavigationArrow" alt="{$lng.lbl_prev_page|escape}" /></a>&nbsp;</td><td>Show All |</td> {/if}

Change it so it reads:

Code:
{if $navigation_page gt 1} <td valign="middle"><a href="{$navigation_script}&amp;page={math equation="page-1" page=$navigation_page}"><img src="{$ImagesDir}/larrow.gif" class="NavigationArrow" alt="{$lng.lbl_prev_page|escape}" /></a>&nbsp;</td> {** View All Add on **} {if $smarty.server.PHP_SELF ne '/manufacturers.php' && $smarty.server.PHP_SELF ne '/admin/orders.php' && $smarty.server.PHP_SELF ne '/orders.php' } <td><a href="{$navigation_script}&amp;show=all">View All</a> |</td> {/if} {** End View All**} {/if}




Hope this helps
__________________
Westin Shafer
Come Together Technologies
http://www.ComeTogetherTechnologies.com
Reply With Quote
  #16  
Old 11-14-2006, 03:51 PM
 
HEK HEK is offline
 

Member
  
Join Date: Jul 2005
Posts: 23
 

Default Re: Show All Products in Catagory

lachild

Thank you very much!!!!
It works perfectly
__________________
HEK

X-Cart 4.1.3 Gold
PHP 4.3.11
MySQL server 4.0.27
Reply With Quote
  #17  
Old 01-30-2007, 06:22 PM
 
firelight firelight is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 43
 

Default Re: Show All Products in Catagory

Hi,

This is what I did to make it work for my 4.0.19 version.
I will do more testing but it I'm just too tired right now.

With my non-programmer experience, I just placed the code to make the link "show all" show up in a different spot.

1) I modified my config.php as specified above.

2) This is my complete navigation.tpl file:

Code:
{* $Id: navigation.tpl,v 1.14 2004/06/24 13:09:51 max Exp $ *} {if $total_pages gt 2} <TABLE cellpadding="0" border="0"> <TR height="14"> <TD nowrap>{$lng.lbl_result_pages}:&nbsp;&nbsp;</TD> {if $current_super_page gt 1} <TD><A href="{$navigation_script}&page={math equation="page-1" page=$start_page}"><IMG src="{$ImagesDir}/larrow_2.gif" width="9" height="9" border="0" alt="{$lng.lbl_prev_group_pages}"></A></TD> {/if} {section name=page loop=$total_pages start=$start_page} {if %page.first%} {if $navigation_page gt 1} <TD valign="middle"><A href="{$navigation_script}&page={math equation="page-1" page=$navigation_page}"><IMG src="{$ImagesDir}/larrow.gif" width="9" height="9" border="0" alt="{$lng.lbl_prev_page}"></A>&nbsp;</TD> {/if} {/if} {if %page.index% eq $navigation_page} <TD align="center" title="{$lng.lbl_current_page}: #{%page.index%}"> <B>{%page.index%}</B> </TD> {else} {if %page.index% ge 100} {assign var="cell_width" value="23"} {assign var="suffix" value="_wide"} {else} {assign var="cell_width" value="17"} {assign var="suffix" value=""} {/if} <TD width="{$cell_width}" background="{$ImagesDir}/page{$suffix}.gif" align="center" valign="bottom"><A href="{$navigation_script}&page={%page.index%}" style="text-decoration: none" title="{$lng.lbl_page} #{%page.index%}">{%page.index%}</A><IMG src="{$ImagesDir}/spacer.gif" width="{$cell_width}" height="1" border="0"></TD> {/if} {if %page.last%} {math equation="pages-1" pages=$total_pages assign="total_pages_minus"} {if $navigation_page lt $total_super_pages*$config.Appearance.max_nav_pages} <TD valign="middle">&nbsp;<A href="{$navigation_script}&page={math equation="page+1" page=$navigation_page}"><IMG src="{$ImagesDir}/rarrow.gif" width="9" height="9" border="0" alt="{$lng.lbl_next_page}"></A></TD> {** View All Add on **} {if $smarty.server.PHP_SELF ne '/manufacturers.php' && $smarty.server.PHP_SELF ne '/admin/orders.php' && $smarty.server.PHP_SELF ne '/orders.php' } <td><a href="{$navigation_script}&amp;show=all">View All</a></td> {/if} {** End View All**} {/if} {/if} {/section} {if $current_super_page lt $total_super_pages} <TD><A href="{$navigation_script}&page={math equation="page+1" page=$total_pages_minus}"><IMG src="{$ImagesDir}/rarrow_2.gif" width="9" height="9" border="0" alt="{$lng.lbl_next_group_pages}"></A></TD> {/if} </TR></TABLE> <P> {/if}

I hope this helps.
Reply With Quote
  #18  
Old 03-15-2007, 01:57 PM
 
Reed Reed is offline
 

Member
  
Join Date: Jan 2005
Posts: 13
 

Default Re: Show All Products in Catagory

Thanks Westin-

It works for me in 4.1.5 after changing the code you referenced in post #15. This mod is simple clean and functional. I thought getting something like this working on the customer front end would have been much more difficult. Thanks for sharing your code!
__________________
X-Cart Gold Version 4.1.5
Reply With Quote
  #19  
Old 04-09-2007, 07:19 PM
 
Wambli Wambli is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 52
 

Default Re: Show All Products in Catagory

Does anyone have this working in 4.1.6 or anything like it I can't get it to work?
__________________
Christmas
x-cart 4.1.6
Reply With Quote
  #20  
Old 04-10-2007, 07:33 AM
 
Scott DeToffol Scott DeToffol is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Minneapolis, MN
Posts: 174
 

Default Re: Show All Products in Catagory

Can someone point me to an example of this on a working site?
__________________
Scott DeToffol
Online Marketing and E-Commerce Consulting in Minneapolis

X-Cart Gold Version 4.1.9 for www.sundogtrading.com
X-Cart Pro Version 4.2.3 for www.heavyglare.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:21 AM.

   

 
X-Cart forums © 2001-2020