![]() |
Re: Show All Products in Catagory
1 Attachment(s)
I had this coded into 4.1.9. Here's my customer/main/nav in case it helps.
Why is this still not standard in X-Cart? {* $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"> {if $view_all eq "N" or $view_all eq ""} <TD nowrap><b><a href="{$navigation_script}&view_all=Y">View All</a></b> </TD> {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}">« Previous</A> </TD> {/if} {/if} {if %page.index% eq $navigation_page} <TD align="center" title="{$lng.lbl_current_page}: #{%page.index%}"> <span style="color: #f14841;"><B>{%page.index%}</B></span> </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 align="center"><A href="{$navigation_script}&page={%page.index%}" style="text-decoration: none" title="{$lng.lbl_page} #{%page.index%}">{%page.index%}</A></TD> {/if} {if %page.last%} {else} <TD align="center"> | </TD> {/if} {if %page.last%} {math equation="pages-1" pages=$total_pages assign="total_pages_minus"} {if $view_all eq "N" or $view_all eq ""} {if $navigation_page lt $total_super_pages*$config.Appearance.max_nav_page s} <TD valign="middle"> <A href="{$navigation_script}&page={math equation="page+1" page=$navigation_page}">Next »</A></TD> {/if} {/if} {/if} {/section} </TR></TABLE> <P> {else} <TD nowrap><b><a href="{$navigation_script}&view_all=N">View by Page</a></b> </TD> </TR></TABLE> <p> {/if} {/if} |
Re: Show All Products in Catagory
Quote:
Thanks..But a copy and paste into the new version of xcart doesnt appear to work..... got this error Parse error: syntax error, unexpected T_STRING in |
Re: Show All Products in Catagory
I am having the same issue. I have 4.1.9 and it does not work...
Anyone who had success in 4.1.9?? |
Re: Show All Products in Catagory
Post #1 works great in 4.1.7
For the 'view all' button, i simply used: <a href="{$navigation_script}&show=all">View All</a> |
Re: Show All Products in Catagory
I have this working good on 4.1.1.0.
This is our navigation.tpl file. Code:
{* $Id: navigation.tpl,v 1.16.2.1 2006/06/16 10:47:41 max Exp $ *} And did the same as post 1 mentioned in the init.php file. Locate this section in the init.php around line #329: Code: Code:
# Add this right after the closing if statment: Code: Code:
# Greg |
Re: Show All Products in Catagory
Thanks pcparts!
I tried your code and it all worked! Thanks again! |
Re: Show All Products in Catagory
Great mod, thanks for coding! Works fine with me on 4.1.10 and was easy to install :D8)
|
Re: Show All Products in Catagory
Damn almost worked..may have done something wrong.... Thee.navigation.tpl went well as it showed View all at category page bottom...but the second part in the php file caused an error at the top of the page..... something about language or somethig.... maybe I placed it wrong.. this is where i put it...
# # Read config variables from Database # This variables are used inside php scripts, not in smarty templates # $c_result = db_query("SELECT name, value, category FROM $sql_tbl[config] WHERE type != 'separator'"); $config = array(); if ($c_result) { while ($row = db_fetch_row($c_result)) { if (!empty($row[2])) $config[$row[2]][$row[0]] = $row[1]; else $config[$row[0]] = $row[1]; } } Code:
# is that right?? This is when i got that error... |
Re: Show All Products in Catagory
Try this mate in the init.php file.
Match it against yours. PHP Code:
|
Re: Show All Products in Catagory
Quote:
Thank you....It worked this time. |
All times are GMT -8. The time now is 03:05 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.