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

Search Sort Bar

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-17-2011, 04:25 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Search Sort Bar

Hi All,

Silly question, probably - But then, I'm good at those.

How on earth do I get rid of the search sort bar?

http://i16.photobucket.com/albums/b49/BeanJardo/Work/searchsort.jpg


It's appearing above my bestsellers list at the very top of the page. Then it's appearing in its normal place, above the category product listing - Which means, it's twice, within about 100 pixels - It's daft!

But I can't work out how to get rid of it and only display in the one place?


It's also sitting on all of my static pages - (None of the content is showing, but the DIV seems to be there) - Which is pushing my layout out totally.

Any help will be great - it's starting to frustrate me that nothing is in line!!

Thanks a million!!

JeanB
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #2  
Old 01-17-2011, 06:16 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: Search Sort Bar

The page that controls the search sort bar is search_sort_by.tpl.

So I guess you need to make sure your templates are not called this template twice.

It's useful to enable debugging mode which will allow you to find out which templates are calling this page..

HTH
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #3  
Old 01-17-2011, 06:54 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Re: Search Sort Bar

Mmmm - Good idea!

And terribly sorry - My mistake - It's not on my static pages, it's on my "offers.php" from X-Offers module.

But - I switched on Webmaster mode & it looks like the search-sort is only called once - And in the exact place that it should be:

<-----SNIP ------>

customer/home_main.tpl (1.65711)
customer/main/subcategories.tpl (1.59222)
modules/Bestsellers/bestsellers_r.tpl (0.10481)
product_thumbnail.tpl (0.00829)
currency.tpl (0.01026)
product_thumbnail.tpl (0.00815)
currency.tpl (0.00845)
product_thumbnail.tpl (0.00812)
currency.tpl (0.00842)
product_thumbnail.tpl (0.00822)
currency.tpl (0.00843)
customer/dialog.tpl (0.02313)
** customer/search_sort_by.tpl (0.01530) ***
customer/main/navigation.tpl (0.02264)
customer/main/products.tpl (1.39889)
customer/main/products_list.tpl (1.39032)
product_thumbnail.tpl (0.00817)
modules/Special_Offers/customer/product_offer_thumb.tpl (0.0044
currency.tpl (0.0085
customer/main/alter_currency_value.tpl (0.0116
customer/main/taxed_price.tpl (0.01763)
customer/main/buy_now.tpl (0.17679)

<------SNIP ----->

(Smiley faces aren't intentional, but are quite nice! )

However, it's appearing before "bestsellers_r.tpl" - And I don't have a clue why!

It's not in the bestsellers_r.tpl - It starts off like this: - But the searchsort is appearing before the <h1>.

Quote:

{if $bestsellers}
{capture name=bestsellers}
<h1 class="bestseller">Bestsellers</h1>
<table class="uproducts">
<tr>
{section name=cat_num loop=$bestsellers}
<td>

{if $config.Bestsellers.bestsellers_thumbnails eq "Y"}
<a href="product.php?productid={$bestsellers[cat_num].productid} cat={$cat} bestseller=Y">
{include file="product_thumbnail.tpl" productid=$bestsellers[cat_num].productid image_x=75 product=$bestsellers[cat_num].product tmbn_url=$bestsellers[cat_num].tmbn_url}</a>
<--------SNIP---------->



I can't find any reference in subcategories.tpl either!

Gah!!



The only place I can think is dialog.tpl - as that seems to be common.

I tried adding the red text - To at least remove it from the offers page:

{if $printable ne 'Y' && $main eq 'catalog'}

But that was totally useless.


I'm getting nowhere, lol

Appreciate your time, Shafiq.
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #4  
Old 01-17-2011, 07:12 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: Search Sort Bar

Are both sort bars exactly the same (as in it's output?)

Sort By: Product / Price / Default
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #5  
Old 01-17-2011, 07:13 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Re: Search Sort Bar

Yes - They're identical.
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #6  
Old 01-17-2011, 07:19 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Search Sort Bar

You can just create new dialog.tpl to use with offers template and take out the search bar from it
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 01-17-2011, 07:21 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: Search Sort Bar

That's a good idea ...
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #8  
Old 01-17-2011, 07:24 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Re: Search Sort Bar

Excellent! I shall do that!

However, it's also appearing twice on my category pages - And I've no idea why?

I have bestsellers activated & at the top of the page.

When it's at the top, it shows a search_sort_bar - then shows the bestsellers - Then shows the heading for the category that it's on ... then shows another search_sort_bar - and the page navigation alongside it?

I don't know why the first sort bar is there - and I need to get rid of it, lol?
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #9  
Old 01-17-2011, 07:34 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Search Sort Bar

use the same new dialog template for the bestsellers. This is not hapenning by default i think. You may have doen some modification that forces it do behave that way
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #10  
Old 01-17-2011, 07:53 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: Search Sort Bar

I develop using Macromedia Homesite (Old skool i know)

But has a cool feature in which I can run an extended search on all .tpl files within the folder where my templates are located (e.g: /skin1/) and find all templates that have the occurrence of the string "search_sort_by.tpl"

Hopefully this might help you isolate from which templates search_sort_by.tpl is being called from...
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
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 09:15 PM.

   

 
X-Cart forums © 2001-2020