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

HTML Static Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 07-30-2003, 07:53 AM
 
Jerry Jerry is offline
 

Member
  
Join Date: May 2003
Location: Santa Rosa, CA
Posts: 18
 

Default

Thanks Shan, those are great instructions for adding a link for the Help area or for using a link to them somewhere else in the site.

How do you remove a link from the Help files list. Basically, I have created some static pages used as "product support" pages that do not need to show up as site support pages. I want to reference them from the product detail pages. Suggestions?
Reply With Quote
  #12  
Old 07-30-2003, 08:06 AM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default Moving Links Around

this is the bit of code that displays the extra pages in help.tpl

You should do the following:

1. Edit the "<xcart-dir>/skin1/help.tpl" template and remove the following line from there:

{include file="pages_menu.tpl"}

After that your static pages will not appear in the help section.

2. Edit the same template and insert the following line instead of the removed one:

My static page
if you need a page in the help section.

3. Edit the '<xcart-dir>/skin1/customer/categories.tpl' template and insert a line like

My static page
if you want a link in categories

there. Please substitute the "4" or "3" with actual pageid. and replace >my static page< with new page name.
__________________
Never believe anything you hear and only half of what you see!

Edward J Ziejka
www.innervisionpc.com
X-Cart Gold 4.1.3
Unix
Reply With Quote
  #13  
Old 07-30-2003, 08:12 AM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default Font Size

The only thing I haven't figured out is how to match the text size of (laptops) the new link tha appears in categories to match the font size of the exsisting links. I tried to add this but I couldn't Match the size: (example:<font size="2">Laptops</font>
)
__________________
Never believe anything you hear and only half of what you see!

Edward J Ziejka
www.innervisionpc.com
X-Cart Gold 4.1.3
Unix
Reply With Quote
  #14  
Old 07-30-2003, 09:20 AM
  shan's Avatar 
shan shan is offline
 

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

Default

Look at the class that sets the text size in the categories.tpl and assign that to the new link too.

Categories list uses its own class for text size
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #15  
Old 07-30-2003, 09:52 AM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default Category Text

Would you be able to tell me where it is? Thanks



{* $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 }</font>

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

{/section}
{/if}
Laptops



{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }
__________________
Never believe anything you hear and only half of what you see!

Edward J Ziejka
www.innervisionpc.com
X-Cart Gold 4.1.3
Unix
Reply With Quote
  #16  
Old 07-30-2003, 11:04 AM
  shan's Avatar 
shan shan is offline
 

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

Default

<font class=CategoriesList> your link here </font>
__________________
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 07-30-2003, 11:31 AM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default Thank you

thanks so much your awsome! One more question how about the order it appears in the list can I change it?
__________________
Never believe anything you hear and only half of what you see!

Edward J Ziejka
www.innervisionpc.com
X-Cart Gold 4.1.3
Unix
Reply With Quote
  #18  
Old 07-30-2003, 12:09 PM
  shan's Avatar 
shan shan is offline
 

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

Default

not realy, as the categories loops through and these extra links are just dropped on the bottom of the template.
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
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 03:44 PM.

   

 
X-Cart forums © 2001-2020