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)
-   -   Change the Featured Products Title Only? (https://forum.x-cart.com/showthread.php?t=8055)

Ryano 06-17-2004 11:24 PM

Hi again Carrie, I had some more time to try and play around with it, but i couldn't get it to work. I am using version 3.58. Any other suggestions? Thanks

BCSE 06-18-2004 03:58 AM

Post your updated code again. I tried this in I think 3.5.5 (maybe 6).

Silly question, but you are replacing the dialog.tpl and skin1.css in skin1 directory, not in skin1_original, right? ;)

Carrie

magriggs 06-18-2004 07:31 AM

templates_c
 
The old version is probably still in the templates_c directory. Delete everything in there.

When I'm developing I always go in to to Smarty.Class.PHP and set "var $force_compile = true;" which forces the templates_c directory to be rebuilt every time.

Ryano 06-18-2004 08:38 AM

Hi Carrie, that is a good question...I feel like an idiot since I'm not sure what the difference is. lol But I think i'm replacing them in the right directories. They are the ones that appear immediately in front of me when I click on "Edit Templates" within the Admin section. Hope that makes sense.

Here is the updated code for my dialog.tpl
Code:

{* $Id: dialog.tpl,v 1.15 2003/11/14 07:28:30 svowl Exp $ *}
<TABLE border=0 cellPadding=0 cellSpacing=0 {$extra}>
<TR>
<TD height=15 {if $title eq $lng.lbl_featured_products } class=NewDialogTitle {else} class=DialogTitle {/if}background="{$ImagesDir}/dialog_bg_n.gif" valign=bottom>{$title}</TD>
</TR>
<TR><TD class=DialogBorder><TABLE border=0 cellPadding=10 cellSpacing=1 width="100%">
<TR><TD class=DialogBox>{$content}

</TD></TR>
</TABLE></TD></TR>
</TABLE>


Here is a section of the skin1.css
Code:

.CategoriesList {
        FONT-SIZE: 12px; FONT-WEIGHT: bold;
}

.NewDialogTitle {
  BACKGROUND-COLOR: #000000; COLOR: #ff0000; FONT: bold 15px;
}

.DialogBox {
        BACKGROUND-COLOR: #FFFFFF;
}

Thanks again!

BCSE 06-18-2004 01:33 PM

You must be missing something simple because I copied and pasted the code you gave me into my stuff and it works on my end. And you editing them directly in the Admin should be changing the correct files.

Have you tried clearing your template cache? You can do this on the summary page in the Admin side of the store.

Also make sure this lable still exists in your languages area:
lbl_featured_products

Carrie

Ryano 06-18-2004 01:38 PM

I checked and the lbl_featured_products does exist. I haven't tried clearing the template cache yet...I will try that. Is there any harm in doing so and will I lose any necessary data? Thanks again!

BCSE 06-18-2004 01:40 PM

I don't think there is any harm. They just will have to recompile again upon the next view. It's just to help speed up viewing of X-cart.

I usually don't have to do that when I change things around, but some claim they do.

Carrie

BCSE 06-18-2004 01:42 PM

Post, or PM me your store address if that doesn't work and maybe I can see what's wrong.

Carrie

Ryano 06-18-2004 01:47 PM

I cleared the Cache, but still nothing. I just sent you a pm. 8)

BCSE 06-18-2004 01:53 PM

I looked at your site....Let me see featured.tpl now

Please.. :D

Carrie


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

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