View Single Post
  #9  
Old 10-26-2011, 04:25 PM
 
nickff nickff is offline
 

Senior Member
  
Join Date: Aug 2010
Posts: 132
 

Default Re: Add "View All" to "Products Per Page" Dropdown

Pure brilliance steve. I knew there had to be a way to specify the "key", but it was eluding me.

I ended up changing the option tag to:
HTML Code:
<option value="{$k}"{if $k eq $objects_per_page} selected="selected"{/if}>{$value}</option>

And this correctly sets "view all" to selected when you select it.

http://future.thefutureforward.com/~clover/home.php?cat=8

Thanks so much steve!
__________________
nick hoag
looking forward to the future
http://thefutureforward.com
xcart versions 4.2.x, 4.3.x, 4.4.x
Reply With Quote