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

Please help me add static page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 01-23-2004, 02:52 AM
 
p4wel p4wel is offline
 

Member
  
Join Date: Dec 2003
Location: London
Posts: 14
 

Default Re: This is what you really want.

Quote:
Originally Posted by John7
Create a file called extrainfo.tpl in your skin1/customer/main/ directory.

I am trying to do this, but there is no existing directory, as above. Was this post related to the old version of X-cart?

I'm running Version 3.4.10
Reply With Quote
  #12  
Old 01-23-2004, 02:56 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Which directory are you referring to?
Reply With Quote
  #13  
Old 01-23-2004, 03:22 AM
 
p4wel p4wel is offline
 

Member
  
Join Date: Dec 2003
Location: London
Posts: 14
 

Default

ok, i figured out the category

but i don't know where to paste the hyperlink (as mentioned below)?
which template and where? I'm lost!

Quote:
Then you can create a hyperlink as such
Code:
http://www.yoursite.com/yourlink/customer/home.php?mode=extra
Reply With Quote
  #14  
Old 01-23-2004, 03:23 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Whichever template you want the hyperlink to show up in.
Reply With Quote
  #15  
Old 01-23-2004, 03:36 AM
 
p4wel p4wel is offline
 

Member
  
Join Date: Dec 2003
Location: London
Posts: 14
 

Default

ok, i want the link:
How to fit teeth

to appear in categories section, below all product categories (template below). where should I put it? any ideas?

{* $Id: categories.tpl,v 1.18 2003/02/25 08:58:46 olga Exp $ *}
{capture name=menu}
{if $config.General.root_categories eq "Y"}

{section name=cat_num loop=$categories}
<font class=CategoriesList>{ $categories[cat_num].category_name|escape }

{/section}
{else} {section name=cat_num loop=$subcategories}
<font class=CategoriesList>{ $subcategories[cat_num].category_name|escape }</font>

{/section}
{/if}


{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }
Reply With Quote
  #16  
Old 01-23-2004, 05:18 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

there you go

Code:
{* $Id: categories.tpl,v 1.18 2003/02/25 08:58:46 olga Exp $ *} {capture name=menu} {if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories} <font class=CategoriesList>{ $categories[cat_num].category_name|escape } {/section} {else} {section name=cat_num loop=$subcategories} <font class=CategoriesList>{ $subcategories[cat_num].category_name|escape }</font> {/section} {/if} {$pages_menu[pg].title} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #17  
Old 01-23-2004, 05:44 AM
 
p4wel p4wel is offline
 

Member
  
Join Date: Dec 2003
Location: London
Posts: 14
 

Default

shan, that worked a treat! thank you very much. i have tried to paste it just about everywhere, but not there

The 'How to fit teeth' page is an embeded static page, which also appears under Help menu, as you will see: http://www.billybobteeth-spain.com/store/customer/home.php

is there any way of removing this page from Help menu?
Reply With Quote
  #18  
Old 01-25-2004, 06:35 PM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Default

I have followed John's direction on this and even tried a few variables and still cannot get it to work.

I created a file "mallory.tpl" and tried it in both a sub directory of "skin1/customer/main/" and tried "skin1/customer/main/mallory". Form that I tried both of these versions of code in skin1/customer/home_main.tpl:

Code:
{elseif $smarty.get.mode eq "mallory"} {include file="customer/main/mallory.tpl"}
and
Code:
{elseif $smarty.get.mode eq "mallory"} {include file="customer/main/mallory.mallory.tpl"}

I also built the page "mallory.tpl" with this as the code:
Code:
{ include file="location.tpl" last_location="mallory"} {capture name=dialog} {/capture} test data for Mallory main page { include file="dialog.tpl" title="mallory" content=$smarty.capture.dialog extra="width=100%"}

When I try the link below I get NO change and just the default store home page: http://216.82.68.68/shop/customer/home.php?mode=mallory

I would prefer to use sub directories (one for each manufacturer) with their specific pages within that directory. What am I missing?
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
  #19  
Old 01-26-2004, 03:29 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Quote:
Originally Posted by p4wel
shan, that worked a treat! thank you very much. i have tried to paste it just about everywhere, but not there

The 'How to fit teeth' page is an embeded static page, which also appears under Help menu, as you will see: http://www.billybobteeth-spain.com/store/customer/home.php

is there any way of removing this page from Help menu?

in help.tpl remove this

Code:
{$lng.lbl_terms_n_conditions} {include file="pages_menu.tpl"}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #20  
Old 01-26-2004, 03:41 AM
 
p4wel p4wel is offline
 

Member
  
Join Date: Dec 2003
Location: London
Posts: 14
 

Default

thank you shan, i'll try this.

the website will be produced with at least 2 versions, english and spanish.
does this method of including links in categories menu work for multiple languages?
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:20 PM.

   

 
X-Cart forums © 2001-2020