| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Re-arrange front page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I would like to re-arrange my front page to put 'what's new' higher up on the page, also, I would like to adjust the appearance of columns such as best sellers etc. I have been looking through different tpls and php files but I can't figure out which one controls this. Can anyone help, see www.troid.org/store many thanks probably something simple...
__________________
X-CART 4.5.0 MySQL - 5.1.63 PHP 5.3.9 Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 Dedicated Cloud Server |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Hi
If you use Webmaster mode in admin, that will help figure out what template is doing what.
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||
|
|||||||
![]() actually, what I want to do is re-arrange the items which sit on the frontpage, do you know which file controls the order or items appearing on home.php
thanks
__________________
X-CART 4.5.0 MySQL - 5.1.63 PHP 5.3.9 Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 Dedicated Cloud Server |
|||||||
#4
|
|||||||
|
|||||||
![]() If you don't want to use webmaster mode, at least read this:
http://forum.x-cart.com/showthread.php?t=21529
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Thanks,
I read the guide. It helped to understand things. The file I need to edit is /customer/home.tpl I pulled it up and tried to place the 'featured products' higher up on the page like under the categories. However, when trying to cut and paste the code, it gives me a blank page. Trying to be careful with the if commands, but can't seem to cut the right portion. Code is as follows: {* $Id: home.tpl,v 1.88.2.3 2006/07/19 10:19:35 max Exp $ *} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> {if $printable ne ''} {include file="customer/home_printable.tpl"} {else} {config_load file="$skin_config"} <html> <head> <title> {if $config.SEO.page_title_format eq "A"} {section name=position loop=$location} {$location[position].0|strip_tags|escape} {if not %position.last%} :: {/if} {/section} {else} {section name=position loop=$location step=-1} {$location[position].0|strip_tags|escape} {if not %position.last%} :: {/if} {/section} {/if} </title> {include file="meta.tpl" } <link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}" /> {include file="customer/slideshow.tpl"} </head> <body{$reading_direction_tag}{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}> {include file="rectangle_top.tpl" } {include file="head_customer.tpl" } {if $active_modules.SnS_connector} {include file="modules/SnS_connector/header.tpl"} {/if} <!-- main area --> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="VertMenuLeftColumn"> {include file="customer/categories.tpl" } {if $main ne "catalog" or $current_category.category ne ""} { include file="customer/menu_cart.tpl" } {if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''} {include file="modules/Feature_Comparison/product_list.tpl" hide_bullets=true} {/if} {if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu eq "Y"} {include file="modules/Bestsellers/bestsellers.tpl" } {/if} {if $active_modules.Users_online ne "" and $users_online} { include file="modules/Users_online/menu_users_online.tpl" } <br /> {/if} {if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"} {include file="modules/Manufacturers/menu_manufacturers.tpl" } {/if} {include file="customer/special.tpl"} {if $active_modules.Survey && $menu_surveys} {assign var="hide_bullets" value=true} {foreach from=$menu_surveys item=menu_survey} {include file="modules/Survey/menu_survey.tpl"} <br /> {/foreach} {assign var="hide_bullets" value=false} {/if} {include file="help.tpl" } {include file="news.tpl"} {if $active_modules.Interneka ne ""} <br /> { include file="modules/Interneka/menu_interneka.tpl" } {/if} {/if} <img src="{$ImagesDir}/spacer.gif" width="180" height="1" alt="" /> </td> <td valign="top"{if $main ne "catalog" or $current_category.category ne ""} class="MainArea"{/if}> <!-- central space --> {if $main ne "catalog" or $current_category.category ne ""} <img src="{$ImagesDir}/spacer.gif" width="100%" height="14" alt="" /> {/if} {include file="dialog_message.tpl"} {if $active_modules.Special_Offers ne ""} <div class="OffersBox"> {include file="modules/Special_Offers/customer/new_offers_message.tpl"} </div> {/if} {include file="customer/home_main.tpl"} <!-- /central space --> </td> </tr> </table> <div class="MainSeparator"><img src="{$ImagesDir}/spacer.gif" alt="" /></div> {if $main eq "catalog" and $current_category.category eq ""} <div class="MainSeparator2"><img src="{$ImagesDir}/customer_images/Line_bg.gif" alt="" /></div> <!--Bottom menu--> <table width="100%" cellpadding="0" cellspacing="0" align="center"> <tr> <td><img src="{$ImagesDir}/spacer.gif" alt="" class="WelcomeSpacer"/></td> <td> <table width="100%" cellpadding="0" cellspacing="0" align="center"> <tr> <td width="180" valign="top" style="padding-right: 18px;"> {if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''} {include file="modules/Feature_Comparison/product_list.tpl" hide_bullets=true} {/if} {if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu eq "Y"} { include file="modules/Bestsellers/menu_bestsellers.tpl" } {/if} {if $active_modules.Users_online ne "" and $users_online} { include file="modules/Users_online/menu_users_online.tpl" } <br /> {/if} {if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"} { include file="modules/Manufacturers/menu_manufacturers.tpl" } {/if} {if $active_modules.XAffiliate ne ""} {include file="partner/menu_affiliate.tpl" } {/if} </td> <td width="168" valign="top"> {include file="customer/special.tpl"} {include file="help.tpl"} </td> <td class="VertSeparator"><img src="{$ImagesDir}/customer_images/spacer_white.gif" alt="" /></td> <td width="177" valign="top"> {include file="news.tpl" } {if $active_modules.Interneka ne ""} {include file="modules/Interneka/menu_interneka.tpl" } {/if} <img src="{$ImagesDir}/spacer.gif" alt="" /> </td> <td class="VertSeparator"><img src="{$ImagesDir}/customer_images/spacer_white.gif" alt="" /></td> <td valign="top"> <br/><br/><br/> <a href="help.php?section=contactus&mode=update"> <img src="{$ImagesDir}/customer_images/contact_us.jpg" class="ContactUs" alt="" /></a> <br/><br/><br/> {if $active_modules.SnS_connector && $config.SnS_connector.sns_display_button eq 'Y'} <center> {include file="modules/SnS_connector/button.tpl"} </center> {/if} </td> </tr> </table> {if $f_products ne ""} {include file="customer/main/featured.tpl" f_products=$f_products}<br /> {/if} </td> <td><img src="{$ImagesDir}/spacer.gif" alt="" class="WelcomeSpacer2"/></td> </tr> </table> {/if} <center class="HorizSeparator"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></center> { include file="poweredby.tpl" } {include file="rectangle_bottom.tpl" } </body> </html> {/if}
__________________
X-CART 4.5.0 MySQL - 5.1.63 PHP 5.3.9 Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 Dedicated Cloud Server |
|||||||
#6
|
|||||||
|
|||||||
![]() The featured products and welcome text are actually in customer/main/welcome.tpl
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|