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

"Sort By" Bar Appearing on Products Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-19-2009, 11:54 AM
 
presson83 presson83 is offline
 

Senior Member
  
Join Date: Sep 2008
Posts: 143
 

Default "Sort By" Bar Appearing on Products Page

Hi All,

Having this weird issue where the "sort by" links are appearing at the top of the products page as well as next to the "send to friend" header at the bottom (I'm assuming it would be showing up next to every header for any mod that i enable on the prods pages.) I've been doing some template editing, so I may have screwed something up, but I haven't really touched product.tpl...

Any ideas why this might be happening? Seems really random...
__________________
v 4.1.11, v 4.2
Reply With Quote
  #2  
Old 03-20-2009, 12:59 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: "Sort By" Bar Appearing on Products Page

For 4.2 sort bar is invoked thru dialog.tpl
In our templates we check if there is some specific conditions are met before placing it in dialog title area.
Alternatively you can use custom dialog2.tpl for your own dialogs and remove sort bar from here.
Please note that for dialogs title with sortbar is applied specific CSS class that sets title's width to 50%
Don't forget to customize this class appliance too
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #3  
Old 03-20-2009, 03:01 AM
 
presson83 presson83 is offline
 

Senior Member
  
Join Date: Sep 2008
Posts: 143
 

Default Re: "Sort By" Bar Appearing on Products Page

Thanks Victor!

I went ahead and did the following and it now works properly, with the sort bar on the categories pages but not the individual product pages:


Code:
{if $product} {elseif $printable ne 'Y'} <div class="dialog-search-sort-bar"> {if $selected eq '' && $direction eq ''} {include file="customer/search_sort_by.tpl" selected=$search_prefilled.sort_field direction=$search_prefilled.sort_direction url=$products_sort_url} {else} {include file="customer/search_sort_by.tpl" url=$products_sort_url} {/if} </div> {/if}

I tried doing an if with an || statement about products but it didn't work, so I just did an empty if and then the else if and it works! A bit of a hack, but it solves the issue which is what matters.
__________________
v 4.1.11, v 4.2
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 11:47 PM.

   

 
X-Cart forums © 2001-2020