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)
-   -   Weird Characters in my Sort by options? (https://forum.x-cart.com/showthread.php?t=55809)

minfinger 10-02-2010 12:11 PM

Weird Characters in my Sort by options?
 
It's on every category page.

http://www.littlepuppiesonline.com/Females/

This just started happening and I can't figure out why.

I looked in the language, but I don't see anything. I looked in all the tpl's I could think of.

Anyone know what's going on here?

cflsystems 10-02-2010 02:05 PM

Re: Weird Characters in my Sort by options?
 
Broken template. Look for the sort by template and resave it

minfinger 10-02-2010 05:12 PM

Re: Weird Characters in my Sort by options?
 
Steve,

I searched for all files in the 4.3.2 skin with the word sort in them.

I repalced them all on the site and ran the cleanup.php. I got nothing.

cflsystems 10-02-2010 05:22 PM

Re: Weird Characters in my Sort by options?
 
No, it is not the word "sort". It is something with
"skin1/customer/search_sort_by.tpl".

minfinger 10-02-2010 06:34 PM

Re: Weird Characters in my Sort by options?
 
It's got to be in this section

Code:

      <span class="search-sort-cell">
        {if $name eq $selected}
          <a href="{$url}&amp;sort={$name}&amp;sort_direction={if $direction eq 1}0{else}1{/if}" title="{$lng.lbl_sort_by|escape}: {$field|escape}" class="search-sort-link {if $direction}down-direction{else}up-direction{/if}">{$field}</a>
        {else}
          <a href="{$url}&amp;sort={$name}&amp;sort_direction={$direction}" title="{$lng.lbl_sort_by|escape}: {$field|escape}" class="search-sort-link">{$field}</a>
        {/if}
      </span>


I think it's the $field thing, but I have no idea. I assume it's being pushed there from another template.

Jarron 11-04-2010 06:59 PM

Re: Weird Characters in my Sort by options?
 
minfinger,

Did you ever work this one out? I'm having the same problem.

Seems to have something to do with the if() condition wrapping around this code in function func_get_langvar_by_name (within the func.core.php file):

PHP Code:

return "~~~~|".$lang_name."|".$language_code."|".$tmp."|~~~~"


I'm stumped. Can't think what I did to cause this and only seems to happen for the Sort labels. Other scripts call func_get_langvar_by_name without issue...

thx,
js

minfinger 11-05-2010 05:40 AM

Re: Weird Characters in my Sort by options?
 
I gave up. But I will look into that.

minfinger 11-05-2010 06:06 AM

Re: Weird Characters in my Sort by options?
 
Yeah I still got nothing. Just as confused.


All times are GMT -8. The time now is 04:29 AM.

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