View Single Post
  #1  
Old 09-21-2007, 04:27 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default BCSE - Free Mod Category heading help v4.1.8

Hi all

Has anyone manage to implement bcse free category heading mod for v4.1.8
Ive done all the coding and double checked and all seems correct, in the backend of my shop
i have a catergory heading box, i entered "shop by product" but it hasn't showed up on the shop.

I seem to have the problem nailed down to -
Quote:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: If you want headings for your menu categories follow this step
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6. Edit skin1/customer/categories.tpl

the instructions say -
Quote:
a. Find this code:
<font class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">

Add this before the code you just found:

{* BCSE - category headings *}
{if $categories[cat_num].category_heading ne ""}{$categories[cat_num].category_heading}<BR>{/if}
{* BCSE - end category headings *}

and also -
Quote:
b. Find this code:
<font class="CategoriesList"><a href="home.php?cat={$catid}" class="VertMenuItems">

Add this before the code you just found:

{* BCSE - category headings *}
{if $subcategories[cat_num].category_heading ne ""}{$subcategories[cat_num].category_heading}<BR>{/if}
{* BCSE - end category headings *}


The code however is slightly different -
Quote:
A. looks like this - <a href="home.php?cat={$c.categoryid}" class="VertMenuItems"><font class="CategoriesList">
B. looks like this - <a href="home.php?cat={$catid}" class="VertMenuItems"><font class="CategoriesList">
Ive tried adding the code in various places, first tried adding before
Quote:
<a href="home.php?c
but nothing happended so then tried adding the code before
Quote:
<font class="CategoriesList

So what i tried next i copied the code from my live shop v4.0.19 were i have this mod installed and pasted into skin1/customer/categories.tpl
Hey presto it worked then, although the catagory list looked slightly different and i didn't want to mess around to much with the orginal coding so i "restored file"

so i know i am nearly there with it can anyone help with this, ive added a reply message to bcse support but as yet ive not heard back, but i do know carrie is really busy and i don't won't to be a nuisance to them, unfortunatly they don't have a payment method for this mod as i was happy to pay for them to sort the problem out.

Here is the full orginal code for skin1/customer/categories.tpl - v4.1.8
Quote:
{* $Id: categories.tpl,v 1.1.2.25 2007/06/19 08:01:50 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="4" cellspacing="1">
{if $config.General.root_categories eq "Y"}
{foreach from=$categories item=c}
<tr>
<td valign="top"><img src="{$ImagesDir}/category_bullet.gif" width="6" height="13" alt="" /></td>
<td><a href="home.php?cat={$c.categoryid}" class="VertMenuItems"><font class="CategoriesList">{$c.category}</font></a></td>
</tr>
{/foreach}
{else} {foreach from=$subcategories item=c key=catid}
<tr>
<td valign="top"><img src="{$ImagesDir}/category_bullet.gif" width="10" height="13" alt="" /></td>
<td><a href="home.php?cat={$catid}" class="VertMenuItems"><font class="CategoriesList">{$c.category}</font></a></td>
</tr>
{/foreach}
{/if}
</table>
{/if}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}

I would be really greatful if someone could help with this.

Regards Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote