X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Question on adding services to the category section (https://forum.x-cart.com/showthread.php?t=22106)

Anonymous 05-27-2006 05:36 PM

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.

balinor 05-28-2006 02:50 AM

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.

Anonymous 05-29-2006 08:22 AM

Not to sound to noobish, but how would I go about hard-coding the link and whereabouts would I find this in webmaster mode?

balinor 05-29-2006 08:38 AM

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?

Anonymous 05-30-2006 10:00 AM

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


balinor 05-30-2006 10:38 AM

Oops..just noticed you are using 4.1. Sorry, can't help you as I'm not using that version until it becomes stable. :oops:

Anonymous 05-30-2006 11:45 AM

Ha, ok. Anyone else know what I can do?

mike@tatechnology.net 06-02-2006 08:34 PM

bump

maximbc 06-20-2006 12:31 PM

bump

maximbc 06-21-2006 01:37 PM

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


All times are GMT -8. The time now is 11:19 PM.

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