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

Hide "X" Per Page on products list page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-25-2011, 10:17 AM
 
someguy03 someguy03 is offline
 

Member
  
Join Date: Aug 2010
Posts: 16
 

Default Hide "X" Per Page on products list page

How can I hide the 5,10,15, etc Per Page on the top and bottom of my products list? I assume there is something I need to remove in products_t.tpl. Thanks!
__________________
X-Cart version 4.4
Reply With Quote
  #2  
Old 04-25-2011, 10:20 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Hide "X" Per Page on products list page

It is in navigation.tpl
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 04-25-2011, 03:05 PM
 
someguy03 someguy03 is offline
 

Member
  
Join Date: Aug 2010
Posts: 16
 

Default Re: Hide "X" Per Page on products list page

Could you help me with what code to change? I have tried a few different things but I keep breaking the product list. Thank you so much!

Quote:
{*
$Id: navigation.tpl,v 1.23 2008/10/08 07:48:32 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{if $total_pages gt 2}

{assign var="navigation_script" value=$navigation_script|amp}

<div class="nav-pages">
<!-- max_pages: {$navigation_max_pages} -->
<span class="nav-pages-title">{$lng.lbl_result_pages}:</span>

{strip}

{if $navigation_arrow_left}
<a class="left-arrow right-delimiter" href="{$navigation_script}&page={$navigation_arrow _left}"><img src="{$ImagesDir}/spacer.gif" alt="{$lng.lbl_prev_page|escape}" /></a>
{/if}

{if $start_page gt 1}
<a class="nav-page right-delimiter" href="{$navigation_script}&page=1" title="{$lng.lbl_page|escape} #1">1</a>

{if $start_page gt 2}
<span class="nav-dots right-delimiter">...</span>
{/if}

{/if}

{section name=page loop=$total_pages start=$start_page}

{if $smarty.section.page.index eq $navigation_page}
<span class="current-page{if !$smarty.section.page.last || ($total_pages lte $total_super_pages || $navigation_arrow_right)} right-delimiter{/if}" title="{$lng.lbl_current_page|escape}: #{$smarty.section.page.index}">{$smarty.section.pa ge.index}</span>
{else}
<a class="nav-page{if !$smarty.section.page.last || ($total_pages lte $total_super_pages || $navigation_arrow_right)} right-delimiter{/if}" href="{$navigation_script}&page={$smarty.section.p age.index}" title="{$lng.lbl_page|escape} #{$smarty.section.page.index}">{$smarty.section.pa ge.index}</a>
{/if}

{/section}

{if $total_pages lte $total_super_pages}

{if $total_pages lt $total_super_pages}
<span class="nav-dots right-delimiter">...</span>
{/if}
<a class="nav-page{if $navigation_arrow_right} right-delimiter{/if}" href="{$navigation_script}&page={$total_super_page s}" title="{$lng.lbl_page|escape} #{$total_super_pages}">{$total_super_pages}</a>
{/if}

{if $navigation_arrow_right}
<a class="right-arrow" href="{$navigation_script}&page={$navigation_arrow _right}"><img src="{$ImagesDir}/spacer.gif" alt="{$lng.lbl_next_page|escape}" /></a>
{/if}

{/strip}

</div>

{/if}
__________________
X-Cart version 4.4
Reply With Quote
  #4  
Old 04-25-2011, 07:03 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Hide "X" Per Page on products list page

Are you talking about 4.3.2 or 4.4.x? This files seems to be from 4.3.2. I don;t think this feature existed as default in 4.3.x so it must be something custom coded for you
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 04-26-2011, 08:39 AM
 
someguy03 someguy03 is offline
 

Member
  
Join Date: Aug 2010
Posts: 16
 

Default Re: Hide "X" Per Page on products list page

Wow my bad...I accidently opened my old X-Cart folder. Here's correct code
Quote:
{*
$Id: navigation.tpl,v 1.4 2010/07/28 13:10:55 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<ul class="simple-list-left width-100">
{assign var="navigation_script" value=$navigation_script|amp}
{if $total_pages gt 2}
<li class="item-left">

<div class="nav-pages">
<!-- max_pages: {$navigation_max_pages} -->
<span class="nav-pages-title">{$lng.lbl_result_pages}:</span>

{strip}

{if $navigation_arrow_left}
<a class="left-arrow right-delimiter" href="{$navigation_script}&amp;page={$navigation_a rrow_left}"><img src="{$ImagesDir}/spacer.gif" alt="{$lng.lbl_prev_page|escape}" /></a>
{/if}

{if $start_page gt 1}
<a class="nav-page right-delimiter" href="{$navigation_script}&amp;page=1" title="{$lng.lbl_page|escape} #1">1</a>

{if $start_page gt 2}
<span class="nav-dots right-delimiter">...</span>
{/if}

{/if}

{section name=page loop=$total_pages start=$start_page}

{if $smarty.section.page.index eq $navigation_page}
<span class="current-page{if not $smarty.section.page.last or ($total_pages lte $total_super_pages or $navigation_arrow_right)} right-delimiter{/if}" title="{$lng.lbl_current_page|escape}: #{$smarty.section.page.index}">{$smarty.section.pa ge.index}</span>
{else}
<a class="nav-page{if not $smarty.section.page.last or ($total_pages lte $total_super_pages or $navigation_arrow_right)} right-delimiter{/if}" href="{$navigation_script}&amp;page={$smarty.secti on.page.index}" title="{$lng.lbl_page|escape} #{$smarty.section.page.index}">{$smarty.section.pa ge.index}</a>
{/if}

{/section}

{if $total_pages lte $total_super_pages}

{if $total_pages lt $total_super_pages}
<span class="nav-dots right-delimiter">...</span>
{/if}
<a class="nav-page{if $navigation_arrow_right} right-delimiter{/if}" href="{$navigation_script}&amp;page={$total_super_ pages}" title="{$lng.lbl_page|escape} #{$total_super_pages}">{$total_super_pages}</a>
{/if}

{if $navigation_arrow_right}
<a class="right-arrow" href="{$navigation_script}&amp;page={$navigation_a rrow_right}"><img src="{$ImagesDir}/spacer.gif" alt="{$lng.lbl_next_page|escape}" /></a>
{/if}

{/strip}

</div>
</li>
{/if}
<li class="item-right">
{if $per_page eq "Y" and $total_items gte $per_page_values.0}
{include file="customer/main/per_page.tpl"}
{/if}
</li>
</ul>
<div class="clearing"></div>
__________________
X-Cart version 4.4
Reply With Quote
  #6  
Old 04-26-2011, 09:05 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Hide "X" Per Page on products list page

{*
<li class="item-right">
{if $per_page eq "Y" and $total_items gte $per_page_values.0}
{include file="customer/main/per_page.tpl"}
{/if}
</li>
*}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 04:53 AM.

   

 
X-Cart forums © 2001-2020