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

search result titles wrong

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-06-2008, 10:41 PM
 
radtoyscentral radtoyscentral is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 73
 

Default search result titles wrong

I recently installed the new 4.1.10 and have a couple of problems. When you go into the store and go to http://www.radtoysmotorsports.com/search.php?mode=search&page=1 , why does it show

{{ITEMS}} RESULTS FOUND
DISPLAYING: {{FIRST_ITEM}} - {{LAST_ITEM}} RESULTS
incorrectly instead of i.e.....
9 RESULTS FOUND
DISPLAYING: 1 - 20 RESULTS


I haven't changed this particular template that I am aware of, and have also tried importing a few other versions of the template all with the same result.

Anybody have any ideas?
__________________
/RAD TOYS CENTRAL/
GOLD 4.1.10
Reply With Quote
  #2  
Old 06-07-2008, 12:48 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: search result titles wrong

Quote:
Originally Posted by radtoyscentral
I recently installed the new 4.1.10 and have a couple of problems. When you go into the store and go to http://www.radtoysmotorsports.com/search.php?mode=search&page=1 , why does it show

{{ITEMS}} RESULTS FOUND
DISPLAYING: {{FIRST_ITEM}} - {{LAST_ITEM}} RESULTS
incorrectly instead of i.e.....
9 RESULTS FOUND
DISPLAYING: 1 - 20 RESULTS


I haven't changed this particular template that I am aware of, and have also tried importing a few other versions of the template all with the same result.

Anybody have any ideas?

Open files "skin1/customer/main/search_result.tpl", find and check next lines:

PHP Code:
..............
<!-- 
SEARCH RESULTS SUMMARY -->

<
a name="results"></a>

{if 
$mode eq "search"}
{if 
$total_items gt "1"}
{
$lng.txt_N_results_found|substitute:"items":$total_items}<br />
{
$lng.txt_displaying_X_Y_results|substitute:"first_item":$first_item:"last_item":$last_item}
{elseif 
$total_items eq "0"}
{
$lng.txt_N_results_found|substitute:"items":0}
{/if}
{/if}

{if 
$mode eq "search" and $products ne ""}

<!-- 
SEARCH RESULTS START -->
............. 

Error must be in this piece of code.
Reply With Quote
  #3  
Old 06-08-2008, 09:40 PM
 
radtoyscentral radtoyscentral is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 73
 

Default Re: search result titles wrong

Nope. I checked the code and even cut and pated what you posted (less the ..........) and it still didn't work.
__________________
/RAD TOYS CENTRAL/
GOLD 4.1.10
Reply With Quote
  #4  
Old 06-09-2008, 12:20 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: search result titles wrong

Quote:
Originally Posted by radtoyscentral
Nope. I checked the code and even cut and pated what you posted (less the ..........) and it still didn't work.

I need the source code of your file ( "skin1/customer/main/search_result.tpl").

I want to make sure that you said (...Nope. I checked the code and even cut and pated what you posted (less the ..........) and it still didn't work....)

You can send private messages to me.
Reply With Quote
  #5  
Old 08-03-2008, 10:34 AM
 
loopsound loopsound is offline
 

Advanced Member
  
Join Date: Feb 2004
Posts: 85
 

Question Re: search result titles wrong

I am also experiencing a similar problem while developing a new site in 4.1.10. My results don't display at all and I have not edited customer/main/search_result.tpl

I have the following code:

Code:
<!-- SEARCH RESULTS SUMMARY --> <a name="results"></a> {if $mode eq "search"} {if $total_items gt "1"} {$lng.txt_N_results_found|substitute:"items":$total_items}<br /> {$lng.txt_displaying_X_Y_results|substitute:"first_item":$first_item:"last_item":$last_item} {elseif $total_items eq "0"} {$lng.txt_N_results_found|substitute:"items":0} {/if} {/if}

Also, I also wonder if anyone could tell me how to move this code and the similar one in main/orders.tpl within the dialog box. I have tried putting it within the capture but it just disappears. Am I missing something?

All help is gratefully received
__________________
xcartgold 4.5.4
xcartgold 4.5.5
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 07:00 AM.

   

 
X-Cart forums © 2001-2020