View Single Post
  #1  
Old 01-11-2011, 08:08 PM
  kustomrides's Avatar 
kustomrides kustomrides is offline
 

eXpert
  
Join Date: Apr 2005
Location: Southern California
Posts: 212
 

Post How to modify home page

Is there a decoder ring I need to edit in the 4.4.x version? Ahem. (Webmaster mode and Firebug no help in divining location of secret files ... my test page is https://www.kustomrides.com/xcart/home.php ).

On my live page ( http://www.kustomrides.com/home.php ) I have modified the box borders with rounded corners, and inserted into home.tpl other boxes where ever I wanted.

Now I'm lost as to how to accomplish this under 4.4..x

I currently do it in home.tpl with:
{include file="box_top.tpl" }
<td valign="top"><div align="center">
Featured Image<br />
<a href="/Photos/art/medium/bpd_Audubon_18.jpg" target="_blank"><img src="/Photos/thumbs150/bpd_Audubon_18.jpg" alt="kustom rides" width="150" height="215" /></a>
<br />
</div>
</td>
{include file="box_bottom.tpl" }

the box tpl files call out the images used to make the round-corner box like so:
{* $Id: box_top.tpl,v 1.0 2007/01/10 16:47:44 bbb Exp $ *}
<table border="0" align="center" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="Diag01"></td>
<td class="Diag02"></td>
<td class="Diag03"></td>
</tr>
<tr>
<td class="Diag04"></td>
The diag classes are images.

Anyway, this is simple: insert this code anywhere I want in home.tpl

But now the 4.4.x home.tpl file wants DIV type classes and IDs, such as
<div id="content-container2">
{include file="customer/content.tpl"}
</div>

"content-container2" only controls placement and size. So I look at content.tpl and it refers to another div class, such as:
<div id="left-bar">
{include file="customer/left_bar.tpl"}
</div>

So I check out left_bar.tpl and IT calls out other files, such as:
{include file="customer/special.tpl"}


Other than 4.4's bread crumb trail, the main problem appears to be that I can't use my original code to insert my boxes (with what ever I want). I can't insert an image directly in home.tpl and it won't work in left_bar either. I did manage to insert Comodo's logo using their java command "COT("../Photos/gifs/cot.gif", "SC2", "none");"

Any ideas on how and where to modify the page box categories? This is needed to insert Google Adsense as well as modify the page look.

I think what xcart needs is a WYSIWYG editor. A real one, not that Webmaster Mode clunker. Where you can click on a page element and bring up the code and its location. Maybe something where you can toggle between raw code and display. Otherwise people will end up in a hit-or-miss hunt for what files is where affecting which other file.
__________________
x-cart Gold 4.7.4
RedHat Linux 7.2; Pearl 5.20.2; PHP 5.5.26; MySQL 5.6.27, server 5.1.54;
Ruby 2.1.5p273; Python 3.4.2;

Several mods in menu and skin, BSCE shipping-per-product, CDSEO Pro
Reply With Quote