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

Trying to edit front page of my website

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-01-2010, 03:21 AM
 
thestig thestig is offline
 

Member
  
Join Date: Aug 2010
Posts: 10
 

Question Trying to edit front page of my website

hiya folks i recently purchased x-cart and i am just trying to get my head round all the options in the admin section.. Firstly i wanted to change the welcome message with my own message.. i clicked on webmaster mode and then opened up the customer/main/welcome.tpl file this gave me this code,

{*
$Id: welcome.tpl,v 1.171.2.42 2010/05/07 13:42:05 aim Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{include file="customer/news.tpl" }
{if $display_greet_visitor_name}
<h1>{$lng.lbl_welcome_back|substitute:"name":$disp lay_greet_visitor_name} </h1>
{elseif $lng.lbl_site_title}
<h1>{$lng.lbl_welcome_to|substitute:"company":$lng .lbl_site_title}</h1>
{else}
<h1>{$lng.lbl_welcome_to|substitute:"company":$con fig.Company.company_name}</h1>
{/if}
{$lng.txt_welcome}<br />
<div class="clearing"></div>
{if $active_modules.Bestsellers && $config.Bestsellers.bestsellers_menu ne "Y"}
{include file="modules/Bestsellers/bestsellers.tpl"}<br />
{/if}
{include file="customer/main/featured.tpl"}


how do i get to change the message when the above doesn't give me any clues as to what to do ..

i have enabled the editor but i still dont know what to do.. can anyone advise please on whats wrong or tell me what im doing wrong

*update*
i looked around on the x-cart website and it seems i needed to compile the template..
__________________
Version 4.3.2
Reply With Quote
  #2  
Old 08-01-2010, 06:21 AM
 
jprevost jprevost is offline
 

Senior Member
  
Join Date: May 2009
Posts: 156
 

Default Re: Trying to edit front page of my website

Search Languages section for "welcome". You should then get the proper language label and have a wysiwyg for editing the content.
__________________
Jonathon Prevost

X-Cart Gold 4.2.X &amp; 4.1.X &amp; 4.3
We've worked with a variety of addon modules as well
such as Special Offers, AOM, X-Configurator, X-Magnifier,
Smasher Smart Search, Fedex Modules, CDSEO and many
other Custom X-Cart Modifications.

Sports Training
Hockey Sticks

Reply With Quote
  #3  
Old 08-01-2010, 06:41 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Trying to edit front page of my website

Quote:
Originally Posted by thestig
*update*i looked around on the x-cart website and it seems i needed to compile the template..

DO NOT compile templates. Doing this will replace all language variables with their values making future edits more difficult nad time consuming. If you see {$lng.xxxxx} that is a language variable and you can edit its value through the languages page in admin. Also you will benefit from reading the manual first and some of the sticky notes in this forum
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 08-01-2010, 06:52 AM
 
thestig thestig is offline
 

Member
  
Join Date: Aug 2010
Posts: 10
 

Default Re: Trying to edit front page of my website

hiya thanx for your responses, that was the only way i was able to edit the front page by compiling the template. i am now trying to edit the header of the site and all i get is this code:

{*
$Id: head.tpl,v 1.20 2009/06/05 11:46:27 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<div class="line1">
<div class="logo">
<a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/xlogo.gif" alt="" /></a>
</div>
{include file="customer/tabs.tpl"}
{include file="customer/phones.tpl"}
</div>
<div class="line2">
{if $main ne "fast_lane_checkout"}
{include file="customer/search.tpl"}
{include file="customer/language_selector.tpl"}
{else}
{include file="modules/Fast_Lane_Checkout/head.tpl"}
{/if}
</div>
{include file="customer/noscript.tpl"}

how do i edit the main page so that the orange bar is at the top of the page as i have just bought a nav template which will go just below it.. i thought this was supposed to be easy to edit, i am having trouble trying to do anything.. there isn't much help with a tutorial or if there is i cant find it
__________________
Version 4.3.2
Reply With Quote
  #5  
Old 08-01-2010, 06:57 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Trying to edit front page of my website

Well you need to know at least a little bit smarty to be able to understand the templates - www.smarty.net
Also you need to know css and html to be able to move elements around and style them the way you want. Firebug addon for FF is necessary tool when working on the templates. Read this - http://forum.x-cart.com/showthread.php?t=21529 - while it is for older versions the basics still apply. Remember the templates for customer side in 4.3.x are in skin1/customer
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 08-01-2010, 07:32 AM
 
thestig thestig is offline
 

Member
  
Join Date: Aug 2010
Posts: 10
 

Default Re: Trying to edit front page of my website

hiya i have a basic understanding of css and html, now all i need to do is work out how to put certain things in certain places..
__________________
Version 4.3.2
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 10:12 AM.

   

 
X-Cart forums © 2001-2020