X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Please help me add static page (https://forum.x-cart.com/showthread.php?t=5796)

p4wel 01-23-2004 02:52 AM

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

adpboss 01-23-2004 02:56 AM

Which directory are you referring to?

p4wel 01-23-2004 03:22 AM

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

adpboss 01-23-2004 03:23 AM

Whichever template you want the hyperlink to show up in.

p4wel 01-23-2004 03:36 AM

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 }

shan 01-23-2004 05:18 AM

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 }


p4wel 01-23-2004 05:44 AM

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?

CenturyPerf 01-25-2004 06:35 PM

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?

shan 01-26-2004 03:29 AM

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"}


p4wel 01-26-2004 03:41 AM

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?


All times are GMT -8. The time now is 09:15 AM.

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