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)
-   -   Modifying home.php content (https://forum.x-cart.com/showthread.php?t=8506)

welo 07-17-2004 12:12 AM

Modifying home.php content
 
You know when you first install the store and see "This is a demo store powered by the X-Cart..." etc. on home.php? How do you change it? I've been through every template and ACP option and it's eluding me to the point of insanity. Thanks.

jeeya 07-17-2004 12:15 AM

Hello,

You don't have to modify home.php, do not modify any php files. You need to go to languages and search for welcome- you will find welcome text there which you can change along with other titles and etc.

welo 07-17-2004 01:05 AM

Thanks rax, but no dice. I have spent literally all day trying to track this down, going through hundreds of nonintuitive template files of horribly written HTML and commenting every one so I can tell what is rendering which template where, through every page of the language editor (that's right, 119 of them - and swearing every time I scroll to the bottom of the page only to be forced to scroll back up again because there are no breadcrumbs on the bottom of the pages), and just generally wondering why on earth nobody had the fortitude add to a $500 script the ability to conveniently change the content of a store's splash page.

Is this simply a bug in 4.x? Sorry to sound frustrated but I'm literally losing my mind. The best I can guess is the $top_message.content var in dialog_message.tpl is supposed to be handling this content, but I sure can't prove it.

welo 07-17-2004 01:21 AM

Well, if nothing else I just figured out that by hacking in:

Code:

<tr><td colspan="4">{include file="customer/main/navigation.tpl"}</td></tr>

...to line 101 of skin1/admin/main/languages.tpl I at least have breadcrumb on the bottoms of language pages now :).

cherie 07-17-2004 09:14 AM

Hey there :-)

This is very easy.

1. Under the Administration menu on the right, about halfway down you'll find the Languages link.

2. Click on this and when the Language page loads, from the top drop-down "select language" choose English and wait for the page to load (you don't need to press anything..)

3. When that page loads, find Select Topic and choose Text. Again, no need to click anything else, just wait for the next page to load.

4. When the Text page loads, you can search for the text you want to replace by pasting a few words of it into the Apply Filter text area and clicking Apply.

5. In this case, you are looking for the Welcome text. When that comes up, put in what you'd like to appear on the page into the Value text field and click Apply Changes.

That's it! If you find sentences or verbiage that you're not thrilled with, you can change them here in the Languages area. Just search using the method I've given and you can find anything.


Edited to add: you can change email verbiage, error verbiage and labels here. It's all located in the Select Topics drop down. If you can't find something in one topic, choose another. Pretty simple! :-)

HTH!

welo 07-17-2004 10:53 AM

Hi Cherie. Okay, that makes sense (now that I understand what "apply filter" is supposed to mean anyway; I'll need to change that to say "Phrase Search" or something or my client will be totally baffled). I did go back through all the text launguage pages again just now and indeed found txt_welcome buried on page 29, so looks like I should also hack a link into one of the admin menus for it. There is simply no reason it should be that hard to find.

Thanks for the guidance. The bright side is, during the course of all this I'm am actually on the verge of putting together a skinning tutorial for this thing :).

Wizard 07-17-2004 04:30 PM

I have done the above looking for the text of "Privacy Statement" and can not seem to find this... can someone clue me into what the label is for this?

I was able to find the "Label" but not the "text"...

This is on 4.0 .... was able to find it easy on the old version

welo 07-17-2004 05:29 PM

It is named txt_privacy_statement. You can find it by using the same method Cherie outlined above, although it is on page 21 under the "Text" language menu. :)

lildawg 07-17-2004 06:01 PM

For those who dont know the easiest way to make text changes is to switch to webmaster mode. Not only will it show you every single file it takes to make any particular page it also allows you to say edit the text on the front page just by double clicking on the text. Webmaster mode is one of the greatest tools you can use to figure x-cart out and what pages etc to change for any particular page you are on. Just my 2 cents on this.

racassel 07-31-2004 04:30 PM

WebMaster Mode - WebMaster Mode - WebMaster Mode
 
Webmaster Mode is the easiest. Activate it, then just Click on the text you want to change. Woohoo. What a timesaver! :D

frankdux 08-27-2004 05:27 PM

What if instead of using of just changing the text of the welcome page (customer/home.php) you wanted to make it so your own URL always loads up wherever the welcome page would have been called. What I am looking to do is have my site's home page come up always instead of customer/home.php.

Wizard 08-27-2004 09:59 PM

splash page is annoying
 
Has this changed in 4.0 ... I can not find that splash page anywhere... even under the language text sections....

lildawg 08-28-2004 08:30 AM

What do you mean exactly by splash page?

Wizard 08-28-2004 06:58 PM

The doorway page mentioned in the first post in this thread....

The one that says "This is a demo store powered by the X-Cart..." then you click on it and it takes you to your site....

I am trying to figure out where to go to modify this page in v4.0 . ... a previous post says the text is in the Language files but I am unable to find it...

although I would rather find where it is called in a tpl so I can just bypass it

adpboss 08-28-2004 09:01 PM

LEARN TO USE WEBMASTER MODE

and then you won't have to make a bunch of redundant posts.

Wizard 08-29-2004 04:18 AM

wow
 
I appreciate you making me feel welcome and like I belong here....

Such a friendly place....

lildawg 09-01-2004 06:38 AM

Wizard: The splash page is actually named index.html in the xcart folder. Delete this and it will get rid of this step and take you right to the customer/home.php instead.

frankdux: To make it so your site always goes to your own choice of page create an index.php file that refers your customer to the page you want. An example of an index.php file would be this

<?
header("Location: catalog/yourcostumpage.html");
?>

Then put it into your root folder.

Hope these 2 answers help for the questions I saw asked later in this post. Let us know if you still have problems.

Wizard 09-01-2004 04:35 PM

Sweet
 
Now thats sweet... worked like a charm....thank you so very much!

Parrot 09-09-2004 01:49 PM

Mike,

Did you find the text file for the "welcome to x-cart..."?

It is in languages in the text files and on the last page under the text name txt_welcome.

You will also have to edit:
txt_site_title
txt_privacy_statement
txt_faq
txt_conditions_affiliate
txt_conditions_customer

Hope this helps!


All times are GMT -8. The time now is 02:40 PM.

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