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

Where is the "welcome" template of main page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-05-2002, 04:42 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default Where is the "welcome" template of main page?

I read this thread (http://forum.x-cart.com/viewtopic.php?t=558&highlight=), but I cannot find this template. I want to edit the main paragraph on the opening page of my store.
Reply With Quote
  #2  
Old 11-05-2002, 05:01 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

you will find this by going into the languages settings in the admin centre editing the language that you want (english) and selecting text.

The field that you change is the txt_welcome field on page 4.

Funkydunk
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 11-05-2002, 05:23 AM
 
chris chris is offline
 

Senior Member
  
Join Date: Sep 2002
Location: UK
Posts: 145
 

Default TOOK ME AGES TO FIND IT - IT IS NOT IN A TEMPLATE!!

I bet like me you have hunted high and low for the opening statement - it is not in a template it is in the languages section:
called: txt_welcome
this message starts with "to

as the welcome bit inserts the users name if you want that
you can find that bit as a template:
/customer/main/welcome.tpl

to find this very elusive test item follow these steps:
1. open languages
2. select English from the drop down
3. select text from the next drop down
4. go to page 5 and look for txt_welcome (it is highlighted in the code snippet below)

you can embed html in the text and it can be as long as you like - pity they did not mention this in their faq or manual as it would have saved me the best part of a day hunting high and low for the non-existent template!!

the "welcome to" bit is controlled via the welcome.tpl
as this code snippet indicates:
Code:
{if ($active_modules.Greet_Visitor ne "") AND ($smarty.cookies.GreetingCookie ne "")} <font face="Arial, Helvetica" size="2">{$lng.lbl_welcome_back}, {$smarty.cookies.GreetingCookie} </font> {else} <font face="Arial, Helvetica" size="2">{$lng.lbl_welcome_to} { $config.Company.company_name }</font> {/if} {$lng.txt_welcome}

hope this helps - just persevere with it and it should become clear - but my advice is that once you have figured it out you put a big readme in a folder in xcart as it took me as long to find it the second time as the first!!

Chris
__________________
Chris
some carts at v4.4.5 security patched on a hardened managed unix server
Reply With Quote
  #4  
Old 11-05-2002, 05:32 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

jeesh! I'm glad I asked. I spent at least 4 hours looking for it, even running searches through the files...thanks again!!!

Also, for what it's worth (for the hunters out there), my "txt_welcome" was on page 4.
Reply With Quote
  #5  
Old 11-05-2002, 05:47 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Well, I feel stupid asking this, but where do I edit the first line? "Welcome to X-CART" I nailed the other part... :P
Reply With Quote
  #6  
Old 11-05-2002, 06:01 AM
 
chris chris is offline
 

Senior Member
  
Join Date: Sep 2002
Location: UK
Posts: 145
 

Default how to change the welcome to bit ...

If you look at the code snippet in my previous reply you will find 2 language fields - in this case they are labels so this time you will have to search through 15 pages !!

look for lbl_welcome_back - this is used to greet an existing user who has previously registered,

if on the other hand the visitor has not registered then the label is:
lbl_welcome_to

My advice is that you play around with these two and check them against both conditions: logged in and not previously logged in - you will soon get the hang of it.

Chris
__________________
Chris
some carts at v4.4.5 security patched on a hardened managed unix server
Reply With Quote
  #7  
Old 11-05-2002, 06:17 AM
 
Parrot Parrot is offline
 

eXpert
  
Join Date: Sep 2002
Location: MD USA
Posts: 350
 

Default

Need to edit these:
txt_site_title (languages-text)
txt_welcome (languages-text)


To get familiar with the program you need to really take time looking all around the languages section. It includes the text, labels, email text, and error text for the cart.

Also in the General Settings there are several options in the dropdown
Company options, General options, Paypal options, Shipping options, PGP, modules,etc These also must be reviewed.

Shipping is done in several locations. Under the General Settings on the right, and on the left there is the Shipping methods, shipping options, Shipping charges, and shipping/tax zones (for zone based shipping).

I found that after really taking time to look at all of the admin sections, you can get a real feel of the layout and just how this all works. Just remember that just about everything in the entire cart can be changed. You just have to know how it all interrelates to everything. Also a bit of php and mysql knowledge helps understand the language to be able to follow along with it enough to have an idea of what it is doing.
Reply With Quote
  #8  
Old 11-05-2002, 07:33 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Thanks again. I will look more through all the files for future posts. Thanks though.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 04:26 AM.

   

 
X-Cart forums © 2001-2020