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

Question on adding services to the category section

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-27-2006, 05:36 PM
 
Anonymous Anonymous is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 222
 

Default Question on adding services to the category section

This is my first post here and I am pretty excited about X-Cart. As you can see my in signature, we are running version 4.1. My question is fairly simple I hope, and I applogize if I have posted this in the wrong section.


After reading the great information on this forum I figured this would be simple for most of you to answer. What I want to do is add an option for advertising our services available for customers. When I add the category for Implementation Services obviously I can type what I want it to say about our install services, but it leaves the option for products below. What I want is to have the option Implementation Services under the category menu but have it been cleaned up without having the products listed below (even when there isn't one there).

http://www.rmspos.net/xcart/home.php

You will see what I mean when you click on Implementation Services under category section.


Currently, I made a static page and included a speed bar option which really isn't the location we want, thus the reason we want a category option.
Reply With Quote
  #2  
Old 05-28-2006, 02:50 AM
 
balinor balinor is offline
 

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

Default

Welcome to the forum! It may be easier just to hard-code a link to a static page in the categories menu. Otherwise, you would need to add an {if} statement to tell the cart not to show the 'no product' text for just that category.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-29-2006, 08:22 AM
 
Anonymous Anonymous is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 222
 

Default

Not to sound to noobish, but how would I go about hard-coding the link and whereabouts would I find this in webmaster mode?
Reply With Quote
  #4  
Old 05-29-2006, 08:38 AM
 
balinor balinor is offline
 

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

Default

You can't do it in webmaster mode, you'll have to actually edit a template. The file you want to edit is customer/categories.tpl. Simply replace this:

{section name=cat_num loop=$categories}

with this:

{section name=cat_num loop=$categories}
<FONT class="CategoriesList">Link Text here</FONT>


replace 'x' with the number of the static page you want to use, and change 'link Text Here' with the text you want to display as the link.

Make sense?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 05-30-2006, 10:00 AM
 
Anonymous Anonymous is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 222
 

Default

This is my category section coding. I cannot find what you posted in there. Am I blind or did I just miss something?

Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="modules/Fancy_Categories/categories.tpl"} {assign var="fc_cellpadding" value="0"} {else} <table cellpadding="0" cellspacing="0" width="100%"> {if $config.General.root_categories eq "Y"} {assign var="_categories" value=$categories} {else} {assign var="_categories" value=$subcategories} {/if} {foreach from=$_categories key=catid item=c name="cats"} <tr style="CURSOR: pointer;" class="MenuItemOff" {if $js_enabled}onmouseover="ShowMenyItem(this,'On'); MM_swapImage('cat_img{$catid}','','{if $full_url}{$http_host}{$ImagesDir|replace:"..":""}{else}{$ImagesDir}{/if}/custom/cat_itemon{cycle name='on_images' values='8,1,2,3,4,5,6,7'}.gif',1)" onmouseout="ShowMenyItem(this,'Off'); MM_swapImgRestore()"{/if}> <td>[img]{$ImagesDir}/spacer.gif[/img]</td> <td height="17">[img]{$ImagesDir}/custom/cat_item{cycle values=[/img]{$c.category}</td> <td>[img]{$ImagesDir}/spacer.gif[/img]</td> </tr> {if not $smarty.foreach.cats.last} <tr> <td>[img]{$ImagesDir}/spacer.gif[/img]</td> <td class="VertMenuLine">[img]{$ImagesDir}/spacer.gif[/img]</td> <td>[img]{$ImagesDir}/spacer.gif[/img]</td> </tr> {/if} {/foreach} </table> {/if} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding menu_style="categories"}
Reply With Quote
  #6  
Old 05-30-2006, 10:38 AM
 
balinor balinor is offline
 

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

Default

Oops..just noticed you are using 4.1. Sorry, can't help you as I'm not using that version until it becomes stable.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 05-30-2006, 11:45 AM
 
Anonymous Anonymous is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 222
 

Default

Ha, ok. Anyone else know what I can do?
Reply With Quote
  #8  
Old 06-02-2006, 08:34 PM
 
mike@tatechnology.net mike@tatechnology.net is offline
 

Senior Member
  
Join Date: May 2006
Posts: 132
 

Default

bump
__________________
TA Technologies, Inc.
~Implementing Creative Point of Sale Solutions~
http://www.rmspos.net
X-Cart 4.1.10
Reply With Quote
  #9  
Old 06-20-2006, 12:31 PM
 
maximbc maximbc is offline
 

Newbie
  
Join Date: May 2006
Posts: 6
 

Default

bump
__________________
www.h-source.com

version: x-cart-4.1.1gold
Reply With Quote
  #10  
Old 06-21-2006, 01:37 PM
 
maximbc maximbc is offline
 

Newbie
  
Join Date: May 2006
Posts: 6
 

Default

I don`t know if this is right. This is the original code:

Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} {capture name=menu} <table cellpadding="0" cellspacing="0" {if $main eq "catalog" and $current_category.category eq ""}class="CategoriesCustomBox"{else}width="100%"{/if}> <tr> <td valign="top"> {if $active_modules.Fancy_Categories ne ""} <table cellpadding="0" cellspacing="0" {if $main eq "catalog" and $current_category.category eq ""}class="CategoriesCustomBoxFC"{else}width="150"{/if}> <tr> <td valign="top"> {include file="modules/Fancy_Categories/categories.tpl"} {assign var="fc_cellpadding" value="0"} </td> </tr> </table> {else} {if $config.General.root_categories eq "Y"} {foreach from=$categories item=c} {if $main eq "catalog" and $current_category.category eq ""} {capture name=bullet}{$c.category}{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet welc=true} {else} {capture name=bullet}{$c.category}{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet catmenu=true} {/if} {/foreach} {else} {foreach from=$subcategories item=c} <a href="home.php?cat={$c.categoryid}" class="VertMenuCatItems">{$c.category} </a> {/foreach} {/if} {/if} {/if} </td> </tr> <tr> <td valign="bottom"> <table width="100%" cellpadding="14" cellspacing="0" align="center"> <tr> <td> {if $js_enabled} {$lng.txt_javascript_disabled} {else} {$lng.txt_javascript_enabled} {/if} </td> </tr> </table> </td> </tr> </table> {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding style="Categories"}

and that`s how it looks after I added a static page called "forum" into my categoris menu.

Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} {capture name=menu} <table cellpadding="0" cellspacing="0" {if $main eq "catalog" and $current_category.category eq ""}class="CategoriesCustomBox"{else}width="100%"{/if}> <tr> <td valign="top"> {if $active_modules.Fancy_Categories ne ""} <table cellpadding="0" cellspacing="0" {if $main eq "catalog" and $current_category.category eq ""}class="CategoriesCustomBoxFC"{else}width="150"{/if}> <tr> <td valign="top"> {include file="modules/Fancy_Categories/categories.tpl"} {assign var="fc_cellpadding" value="0"} </td> </tr> </table> {else} {if $config.General.root_categories eq "Y"} {foreach from=$categories item=c} {if $main eq "catalog" and $current_category.category eq ""} {capture name=bullet}{$c.category}{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet welc=true} {else} {capture name=bullet}{$c.category}{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet catmenu=true} {/if} {/foreach} {else} {foreach from=$subcategories item=c} <a href="home.php?cat={$c.categoryid}" class="VertMenuCatItems">{$c.category} </a> {/foreach} {/if} {if $main eq "catalog" and $current_category.category eq ""} {capture name=bullet}Forum{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet welc=true} {else} {capture name=bullet}Forum{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet catmenu=true} {/if} {/if} </td> </tr> <tr> <td valign="bottom"> <table width="100%" cellpadding="14" cellspacing="0" align="center"> <tr> <td> {if $js_enabled} {$lng.txt_javascript_disabled} {else} {$lng.txt_javascript_enabled} {/if} </td> </tr> </table> </td> </tr> </table> {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding style="Categories"}

I added this part after the </if> statement.

Code:
{if $main eq "catalog" and $current_category.category eq ""} {capture name=bullet}Forum{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet welc=true} {else} {capture name=bullet}Forum{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet catmenu=true} {/if}

they only problem I have is that when you click on a cattegory all the arrows dissapear as you can see it on my website: www.h-source.com
__________________
www.h-source.com

version: x-cart-4.1.1gold
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 02:06 PM.

   

 
X-Cart forums © 2001-2020