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

Editing Sort By!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-11-2006, 05:22 AM
  swordmart's Avatar 
swordmart swordmart is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 35
 

Default Editing Sort By!

Hi
Hope im posting in the right place, im trying to edit the colour of the writing that is displayed when viewing a list of products,
"Sort by: Sort direction Cat No Product Price Default "
I want to be able to adjust the colur independent of all other changes.
http://www.swordmart.co.uk/store/ test site

Ive tried editing my search_sort_by.tpl but to no luck, im currenley testing this on latest 4.0. branch.

Any help would be great.
Regards
Jamie
__________________
X-cart 4 gold
PHP version 4.3.10
MySQL version 4.0.23-standard
Apache version 1.3.33 (Unix)
Reply With Quote
  #2  
Old 10-11-2006, 06:56 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Editing Sort By!

Probably defaults to the standard link text. If you want to add a differnet color, you need to create a new link style (a: link, a: hover, a: visited, a: active) and call the link style in those links. Moving to Template Editing.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-12-2006, 12:51 AM
  swordmart's Avatar 
swordmart swordmart is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 35
 

Default Re: Editing Sort By!

Hi Sorry to be a pain but what ever i try, does not work, but I am a noob!
If possable could you tell me the changes i need to make?

this is the code I have
Code:
{* $Id: search_sort_by.tpl,v 1.3.2.1 2004/10/13 11:21:44 max Exp $ *} {if $url eq '' && $navigation_script ne ''}{assign var="url" value=$navigation_script|cat:"&"}{/if} <B>{$lng.lbl_sort_by}:</B>&nbsp;&nbsp;&nbsp;&nbsp; {foreach from=$sort_fields key=name item=field} <A href="{$url}sort={$name}&sort_direction={if $name eq $selected}{if $direction eq 1}0{else}1{/if}{else}{$direction}{/if}" style="TEXT-DECORATION: underline;" title="{$lng.lbl_sort_by}: {$field}">{if $name eq $selected}<B><IMG src="{$ImagesDir}/{if $direction}darrow.gif{else}uarrow.gif{/if}" width="9" height="9" border="0" valign="absmiddle" alt="{$lng.lbl_sort_direction}">&nbsp;{/if}{$field}{if $name eq $selected}</B>{/if}</A>&nbsp;&nbsp;&nbsp;&nbsp; {/foreach}

Also what would i need to add to my css?

Many Thanks in advance
Jamie
__________________
X-cart 4 gold
PHP version 4.3.10
MySQL version 4.0.23-standard
Apache version 1.3.33 (Unix)
Reply With Quote
  #4  
Old 10-12-2006, 03:43 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Editing Sort By!

Replace this:

style="TEXT-DECORATION: underline;"

with this:

class="sortby"

Then add this to skin1.css:

.sortby:link {COLOR: #000000; TEXT-DECORATION: none;}
.sortby:visited {COLOR: #000000; TEXT-DECORATION: none;}
.sortby:hover {COLOR: #CC0000; TEXT-DECORATION: none;}
.sortby:active {COLOR: #000000; TEXT-DECORATION: none;}

Then change the colors and styles for each accordingly. The colors above are black for the links, red for the hover.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-12-2006, 04:03 AM
  swordmart's Avatar 
swordmart swordmart is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 35
 

Default Re: Editing Sort By!

Thank you very much for your time and help, ill try this now.

regards
Jamie
__________________
X-cart 4 gold
PHP version 4.3.10
MySQL version 4.0.23-standard
Apache version 1.3.33 (Unix)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:31 AM.

   

 
X-Cart forums © 2001-2020