| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Trying to edit front page of my website | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 & 4.1.X & 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 |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Quote:
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 |
|||||||||
#4
|
|||||||
|
|||||||
![]() 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 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#6
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|