X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Mod for subcategories in columns with descriptions and icons (https://forum.x-cart.com/showthread.php?t=3848)

lindseyabrandon 07-16-2008 10:05 AM

Re: Mod for subcategories in columns with descriptions and icons
 
I am having trouble finding the include folder. I have read through all 26 pages of this thread and saw someone else had an issue finding it as well and got the following response:


"xcart is your root directory. Just look for the include folder and the catagores.php file should be in there."


Unfortunately, I just can't seem to find the include folder. It is probably obvious, can anyone help please? I can't wait to try this mod.

mescalito_ve 07-17-2008 01:57 AM

Re: Mod for subcategories in columns with descriptions and icons
 
I found the solution for the subcategory icons not showing for version 4.1.10

The solution is to set the Image Location for your icons to file system and it works perfectly.

Thank you all

mescalito_ve 07-17-2008 02:00 AM

Re: Mod for subcategories in columns with descriptions and icons
 
lindseyabrandon do you have your xcart in the root directory?

Anyway the include folder is inside the xcart root folder not necesarily in the root of your domain.

Hope it helps

lindseyabrandon 07-17-2008 11:34 AM

Re: Mod for subcategories in columns with descriptions and icons
 
Quote:

Originally Posted by balinor
A few things:

-Are your category icons in the database or the file system?
-If they are in the file system, make sure the permissions and htaccess file are correct on that folder
-Can you see the category icons in the admin area?


I finally found my include folder...it was only accessible through FTP and I was looking in the Admin section. I think I have the mod installed correctly, but the images aren't showing up.
They are in the file system, but I am unclear how to make sure the permissions and htaccess files are correct.
I can see the category icons in the admin area.

I am so close to being done, please help! :lol:

mcpilot 08-07-2008 05:56 PM

Re: Mod for subcategories in columns with descriptions and icons
 
Awesome MOD! Works well in 4.1.10 as well.

gpagan 08-27-2008 07:46 PM

Re: Mod for subcategories in columns with descriptions and icons
 
Thanks to all that created the mod :lol: , but I'm still on the below problem can someone tell me what I missed, I followed the all the directions and still can't get it to display right. 8O

Thanks

Quote:

Originally Posted by alreadyregistered
I have the mod working for my version (see below). However, the thumbnail placement, according to the division, is not good.

I have:
15 subcategories (in one category)
code set for 3 columns, colspan=3

Displays as
4 images on first row
3 images on 2nd, 3rd, 4th rows
2 image on last row

Rather than 3 items on each row. Any ideas how to (scalably) force this?


Lingerieblowout 08-28-2008 06:40 AM

Re: Mod for subcategories in columns with descriptions and icons
 
gpagan - Please post your code from subcategories.tpl so i can have a look

gpagan 08-28-2008 10:51 AM

Re: Mod for subcategories in columns with descriptions and icons
 
Here it is. Thanks

{* $Id: subcategories.tpl,v 1.43.2.2 2004/10/07 07:08:51 max Exp $ *}
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}


{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}


{if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace: "/[\n]/":"
"}
{/if}
{capture name=dialog}
{assign var="tmp" value="0"}
{section name=cat_num loop=$subcategories}
{if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if}
{/section}
{* ==================== Sub categories mod start *}
{foreach from=$subcategories item=subcat name="subcats"}
{ if $smarty.foreach.subcats.first }
<table cellspacing="5" width="100%" border="0">
<tr>
{foreach from=$subcategories item=subcat}
{if $tmp is div by 4}
</tr>
<tr><td colspan="4"></td></tr>
<tr valign="top">
{/if}
{ if $tmp and $first_subcat ne "Y" }
{assign var="tmp" value=0}
{assign var="first_subcat" value="Y"}
{/if}
<td class="ColumnTitles" valign="top"><a title="{$subcat.description}" <a href="home.php?cat={ $subcat.categoryid }"><img src="{if $subcat.icon_url}{$subcat.icon_url}{else}{$xcart_w eb_dir}/spacer.gif{/if}" alt="" /><br>
<font class="ItemsList">{ $subcat.category|escape }</font></a>
{if $config.Appearance.count_products eq "Y"}
{if $subcat.product_count}({ $subcat.product_count })
{elseif $subcat.subcategory_count}({ $subcat.subcategory_count })
{else} (0)
{/if}
{/if}
{assign var="tmp" value=$tmp+1}
{/foreach}
</tr>
</td>
</table>
{/if}
{/foreach}
{* ==================== Sub categories mod end *}
{if $tmp and $products ne "" }
<BR clear="left">
<HR size="1" noshade>
{/if}
{if $products}
{if $sort_fields}
<DIV align="right">{include file="main/search_sort_by.tpl" sort_fields=$sort_fields selected=$search_prefilled.sort_field direction=$search_prefilled.sort_direction url="home.php?cat=`$cat`&"}</DIV>
{/if}
{if $total_pages gt 2}

{ include file="customer/main/navigation.tpl" }
{/if}
<HR size="1" width="100%">
{include file="customer/main/products.tpl" products=$products}
{/if}
{if $products eq "" and $tmp eq "0"}
{$lng.txt_no_products_in_man}
{/if}
{/capture}
{include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra="width=100%"}
{if $products eq ""}
{if $f_products ne ""}


{include file="customer/main/featured.tpl"}
{/if}
{/if}
{ include file="customer/main/navigation.tpl" }

toddpatterson 09-19-2008 05:40 PM

Re: Mod for subcategories in columns with descriptions and icons
 
Ok guys, I am REALLY confused. I have been trying to find out how to put the category images on our site and I was referred to this forum topic. I do not know how to use this code or where it is goes....can anyone give me some direction here?

We are using version 4.1.11

Thanks in advance for any help!

lindseyabrandon 09-19-2008 06:21 PM

Re: Mod for subcategories in columns with descriptions and icons
 
I hear you...I was in the same boat and ended up just spending the points to have the X-Cart people help me and I am glad I did. I would suggest that.
Good luck!


All times are GMT -8. The time now is 06:13 PM.

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