Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How do i call Html page ?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-20-2010, 06:29 AM
 
cosy cosy is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 79
 

Default 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?
__________________
Version 4.2.0
Testing v 4.4
Reply With Quote
  #2  
Old 08-20-2010, 06:33 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-20-2010, 06:53 AM
 
cosy cosy is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 79
 

Default Re: How do i call Html page ?

Hi,

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



Thanks
__________________
Version 4.2.0
Testing v 4.4
Reply With Quote
  #4  
Old 08-20-2010, 06:56 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 08-20-2010, 02:27 PM
 
cosy cosy is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 79
 

Default 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">
__________________
Version 4.2.0
Testing v 4.4
Reply With Quote
  #6  
Old 08-20-2010, 02:31 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 08-21-2010, 02:05 AM
 
cosy cosy is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 79
 

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


This welcome.tpl only change the middle of the page isn't it? but i want totally new front page
__________________
Version 4.2.0
Testing v 4.4
Reply With Quote
  #8  
Old 08-21-2010, 04:33 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: How do i call Html page ?

Ah, then yes, this method will work for you.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 10-31-2010, 10:07 AM
 
NickC NickC is offline
 

Senior Member
  
Join Date: May 2007
Posts: 134
 

Default 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
__________________
4.1.9
X-Magnifier
X-FAQ's Manager
Skin-'Fashion Mosaic'
Links Manager
Meta Tag Pro
A-O-M
RSS Feed
SnS Live Help
Marketing Manager Pro
Banner Manager
Reply With Quote
  #10  
Old 10-31-2010, 10:27 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:07 AM.

   

 
X-Cart forums © 2001-2020