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 result titles wrong (https://forum.x-cart.com/showthread.php?t=40340)

radtoyscentral 06-06-2008 10:41 PM

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?

Yurij 06-07-2008 12:48 AM

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.

radtoyscentral 06-08-2008 09:40 PM

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.

Yurij 06-09-2008 12:20 AM

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.

loopsound 08-03-2008 10:34 AM

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


All times are GMT -8. The time now is 11:02 AM.

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