Jump to content

I was wondering if anyone found


Guest toosweets

Recommended Posts

Two ways to deal with this - go to language/en/lang.inc.php and search the file for There are no products in this category, and change it to say what you prefer. Or, go to skins/your_skin/styleTemplates/content/viewCat.tpl and find the following code:

<!-- BEGIN: noProducts -->

<div>{TXT_NO_PRODUCTS}</div>

<!-- END: noProducts -->




REPLACE with this:




<!-- BEGIN: noProducts -->

<!-- <div>{TXT_NO_PRODUCTS}</div> -->

<!-- END: noProducts -->

Link to comment
Share on other sites

hmmm, if you want it to disappear, the second option is better.

First option would be if you'd rather it say something different, like"To see our products please choose a subcategory above."

Of course it works for you . . . but if you ever upgrade the cart the lang.inc.php file may get overwritten. The second method turns it off in your skin by putting it between comment tags <!-- and --> so that if you ever wanted it back, or wanted to say something else in that space, you could put it back by removing those tags - and in the skin rather than the program's language file, it's unlikely you'll ever have to overwrite the file.

Just a li'l food for thought. Glad to help :dizzy:

Link to comment
Share on other sites

ok, now is it possible to move the catorgory picture above the subcatagory?

Sure, which skin are you using? The answer to that is in the second file I posted about, viewCat.tpl

OK, you've got the Killer skin.

OPEN skins/Killer/styleTemplates/viewCat.tpl, you'll see this code:

<!-- BEGIN: view_cat -->

<div class="boxContent">

<span class="txtContentTitle">{TXT_CAT_TITLE}</span>

<br clear="all" />

<!-- BEGIN: sub_cats -->

<div id="subCats">

<!-- BEGIN: sub_cats_loop -->

<span class="subCat">

  <a href="index.php?act=viewCat&amp;catId={TXT_LINK_CATID}" class="txtDefault"><img src="{IMG_CATEGORY}" border="0" alt="{TXT_CATEGORY}" /></a><br />

  <a href="index.php?act=viewCat&amp;catId={TXT_LINK_CATID}" class="txtDefault">{TXT_CATEGORY}</a> ({NO_PRODUCTS})

</span>

<!-- END: sub_cats_loop -->

</div>

<!-- END: sub_cats -->

<br clear="left" />

<!-- BEGIN: cat_img -->

<img src="{IMG_CURENT_CATEGORY}" border="0" alt="{TXT_CURENT_CATEGORY}" />

<!-- END: cat_img -->

<div><strong>{LANG_CURRENT_DIR}</strong> {CURRENT_DIR}</div>

<div class="pagination">{PAGINATION}</div>

<!-- BEGIN: productTable -->

<table border="0" width="100%" cellspacing="0" cellpadding="3" class="tblList">

  <tr>

    <td class="tdListTitle"><strong>{LANG_IMAGE}</strong></td>

    <td class="tdListTitle"><strong>{LANG_DESC}</strong></td>

    <td class="tdListTitle"><strong>{LANG_PRICE}</strong></td>

<td class="tdListTitle">&nbsp;</td>

  </tr>

The part in red displays the category image. You need to cut & paste, move it up like this:

<!-- BEGIN: view_cat -->

<div class="boxContent">

<span class="txtContentTitle">{TXT_CAT_TITLE}</span>

<br clear="all" />

<!-- BEGIN: cat_img -->

<img src="{IMG_CURENT_CATEGORY}" border="0" alt="{TXT_CURENT_CATEGORY}" />

<!-- END: cat_img -->

<br clear="all" />

<!-- BEGIN: sub_cats -->

<div id="subCats">

<!-- BEGIN: sub_cats_loop -->

<span class="subCat">

  <a href="index.php?act=viewCat&amp;catId={TXT_LINK_CATID}" class="txtDefault"><img src="{IMG_CATEGORY}" border="0" alt="{TXT_CATEGORY}" /></a><br />

  <a href="index.php?act=viewCat&amp;catId={TXT_LINK_CATID}" class="txtDefault">{TXT_CATEGORY}</a> ({NO_PRODUCTS})

</span>

<!-- END: sub_cats_loop -->

</div>

<!-- END: sub_cats -->

<br clear="left" />

<div><strong>{LANG_CURRENT_DIR}</strong> {CURRENT_DIR}</div>

<div class="pagination">{PAGINATION}</div>

<!-- BEGIN: productTable -->

<table border="0" width="100%" cellspacing="0" cellpadding="3" class="tblList">

  <tr>

    <td class="tdListTitle"><strong>{LANG_IMAGE}</strong></td>

    <td class="tdListTitle"><strong>{LANG_DESC}</strong></td>

    <td class="tdListTitle"><strong>{LANG_PRICE}</strong></td>

<td class="tdListTitle">&nbsp;</td>

  </tr>

I added a <br clear="all" /> when I moved it. May not be necessary, I'd have to test it to see :dizzy:

Link to comment
Share on other sites

Guest toosweets

for now it will be the legend

, but will use killer in later time

By the way thank on the infor from before again, and if you didnt't notice thanks for the line. I liked it so much that i'm using it.... :dizzy:

Link to comment
Share on other sites

Guest toosweets

yea, sorry about checking out logos on different one and types out there.

Thank alot i should be able to get around better with this. ty. :lol:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...