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)
-   -   How do i call Html page ? (https://forum.x-cart.com/showthread.php?t=55168)

cosy 08-20-2010 06:29 AM

How do i call Html page ?
 
{*
$Id: home.tpl,v 1.1 2010/05/21 08:32:02 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<?xml version="1.0" encoding="{$default_charset|default:"iso-8859-1"}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{config_load file="$skin_config"}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{include file="customer/service_head.tpl"}
</head>
<body{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}{if $container_classes} class="{foreach from=$container_classes item=c}{$c} {/foreach}"{/if}>
{if $page_container_class}
{if $main eq "catalog" && $current_category.category eq ""}
{include file="pages/en/homepage.html"}{/if}>
{else}
<div id="page-container">
<div id="page-container2">
<div id="content-container">
<div id="content-container2">
{include file="customer/content.tpl"}
</div>
</div>
<div class="clearing">&nbsp;</div>
<div id="header">
{include file="customer/head.tpl"}
</div>
<div id="footer">

What i did wrong?

balinor 08-20-2010 06:33 AM

Re: How do i call Html page ?
 
You can't do that - you need to make it a .tpl file - should be as easy as simply changing the extension and putting it in the skin1 directory.

cosy 08-20-2010 06:53 AM

Re: How do i call Html page ?
 
Hi,

But i call html b4 with version 4.3? i thought something missing?

8O

Thanks

balinor 08-20-2010 06:56 AM

Re: How do i call Html page ?
 
That isn't the proper way to be doing it, even if it worked before. Just rename it to a tpl file and put it in the skin1 directory, it is the correct method and won't take you 2 seconds.

cosy 08-20-2010 02:27 PM

Re: How do i call Html page ?
 
HI balinor,

Thanks, i'll do that but is this logic correct?

Quote:

Quote:

<body{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}{if $container_classes} class="{foreach from=$container_classes item=c}{$c} {/foreach}"{/if}>
{if $page_container_class}

{if $main eq "catalog" && $current_category.category eq ""}
{include file="homepage.tpl"}{/if}>
{else}
<div id="page-container">
<div id="page-container2">



balinor 08-20-2010 02:31 PM

Re: How do i call Html page ?
 
customer/main/welcome.tpl is already coded to do just that - you seem to be doing more work than you need to. But yes, that logic is correct.

cosy 08-21-2010 02:05 AM

Re: How do i call Html page ?
 
Quote:

customer/main/welcome.tpl is already coded to do just that - you seem to be doing more work than you need to. But yes, that logic is correct.
:roll:

This welcome.tpl only change the middle of the page isn't it? but i want totally new front page

balinor 08-21-2010 04:33 AM

Re: How do i call Html page ?
 
Ah, then yes, this method will work for you.

NickC 10-31-2010 10:07 AM

Re: How do i call Html page ?
 
Is there already a preset way of displaying a static home page (landing page) which then directs customer to the shop via a 'click here to enter shop' type of design.

You used to be able to choose to have a html home page, and then click through to shop. Only we want to be a bit more creative with our home page.

Nick

balinor 10-31-2010 10:27 AM

Re: How do i call Html page ?
 
Those kinds of portal pages will kill your seo. But if you want to do that, just create an index.html page, and then change your .htaccess file to:

DirectoryIndex index.html home.php index.php


All times are GMT -8. The time now is 03:35 PM.

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