X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Search Sort Bar (https://forum.x-cart.com/showthread.php?t=57558)

JeanB 01-17-2011 04:25 AM

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 8O

chamberinternet 01-17-2011 06:16 AM

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

JeanB 01-17-2011 06:54 AM

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.00448)
currency.tpl (0.00858)
customer/main/alter_currency_value.tpl (0.01168)
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. :-)

chamberinternet 01-17-2011 07:12 AM

Re: Search Sort Bar
 
Are both sort bars exactly the same (as in it's output?)

Sort By: Product / Price / Default

JeanB 01-17-2011 07:13 AM

Re: Search Sort Bar
 
Yes - They're identical.

cflsystems 01-17-2011 07:19 AM

Re: Search Sort Bar
 
You can just create new dialog.tpl to use with offers template and take out the search bar from it

chamberinternet 01-17-2011 07:21 AM

Re: Search Sort Bar
 
That's a good idea ...

JeanB 01-17-2011 07:24 AM

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?

cflsystems 01-17-2011 07:34 AM

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

chamberinternet 01-17-2011 07:53 AM

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...


All times are GMT -8. The time now is 12:12 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.