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)
-   -   Editing text color for same variable in 2 areas (https://forum.x-cart.com/showthread.php?t=37974)

roc 03-01-2008 11:46 AM

Editing text color for same variable in 2 areas
 
Ok, I have searched the forum for 3 days and could not get this answered so here goes...

I want to edit the color of language variable "txt_login_incorrect" to show as WHITE in register.php (which I have done already) and BLACK in the annonymous checkout section (which is currently WHITE because of the previous change).

Now, I understand enough about what I want to accomplish that I created "txt_login_incorrect_2" (same as txt_login_incorrect but with black text) in the languange variables to input into the *.tpl template for the annonymous checkout... I just can't find the right template to change the "txt_login_incorrect" to "txt_login_incorrect_2" just for ANNONYMOUS CHECKOUT.

Can someone assist me with this? Thanks!

roc 04-01-2008 06:58 PM

Re: Editing text color for same variable in 2 areas
 
Wow, it's been a month and not even one reply?

kube 04-01-2008 07:51 PM

Re: Editing text color for same variable in 2 areas
 
Hi roc. It's late my brain is fried - I should go to bed. So I have no ideas what I am typing...

There are 2 locations for txt_login_incorrect
1. skin1/modules/Fast_Lane_Checkout/checkout_0_enter.tpl
and 2. skin1/main/error_login_incorrect.tpl

Assuming that the purpose of having 2 different coloured versions of txt_login_incorrect is to differentiate between a registered user or not, use...
{if $login} logged in error colour {else} anon/loggedout colour error {/if}

It is preferable to use webmaster mode to locate .tpls. Webmaster mode is best used with IE (Internet Explorer), with popups enabled, and 'view>status bar' enabled.

Hope this helps.

roc 04-06-2008 05:22 PM

Re: Editing text color for same variable in 2 areas
 
After a month someone finally responded with a solution that worked like a charm. THANKS KUBE!

I was getting pretty frustrated because all I kept getting were notes to read the forum rules... Which I had already done.

Thanks again Kube!

balinor 04-06-2008 05:31 PM

Re: Editing text color for same variable in 2 areas
 
If you had read the rules, you wouldn't have PM'd me asking me to read your post.

roc 04-06-2008 05:42 PM

Re: Editing text color for same variable in 2 areas
 
LOL! Ok Balinor. I get it. Would you drop the "Read The Forum Rules" bit already? I was asking for help, not a lecture.


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

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