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)
-   -   Trying to edit front page of my website (https://forum.x-cart.com/showthread.php?t=54856)

thestig 08-01-2010 03:21 AM

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 :lol:

*update*
i looked around on the x-cart website and it seems i needed to compile the template..

jprevost 08-01-2010 06:21 AM

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.

cflsystems 08-01-2010 06:41 AM

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

thestig 08-01-2010 06:52 AM

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 :(

cflsystems 08-01-2010 06:57 AM

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

thestig 08-01-2010 07:32 AM

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..


All times are GMT -8. The time now is 07:23 PM.

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