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

Mod for subcategories in columns with descriptions and icons

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #261  
Old 07-16-2008, 10:05 AM
 
lindseyabrandon lindseyabrandon is offline
 

Newbie
  
Join Date: Jun 2008
Location: Atlanta, GA
Posts: 8
 

Default 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.
__________________
/Lindsey/
X-Cart Gold 4.1.9
Reply With Quote
  #262  
Old 07-17-2008, 01:57 AM
 
mescalito_ve mescalito_ve is offline
 

Advanced Member
  
Join Date: Sep 2005
Location: Spain
Posts: 49
 

Default 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
__________________
Alvaro Grillet
XCART GOLD 4.4.1
XCART GOLD 4.1.10
XCART GOLD 4.1.9
XCART GOLD 4.2.2
Reply With Quote
  #263  
Old 07-17-2008, 02:00 AM
 
mescalito_ve mescalito_ve is offline
 

Advanced Member
  
Join Date: Sep 2005
Location: Spain
Posts: 49
 

Default 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
__________________
Alvaro Grillet
XCART GOLD 4.4.1
XCART GOLD 4.1.10
XCART GOLD 4.1.9
XCART GOLD 4.2.2
Reply With Quote
  #264  
Old 07-17-2008, 11:34 AM
 
lindseyabrandon lindseyabrandon is offline
 

Newbie
  
Join Date: Jun 2008
Location: Atlanta, GA
Posts: 8
 

Default 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!
__________________
/Lindsey/
X-Cart Gold 4.1.9
Reply With Quote
  #265  
Old 08-07-2008, 05:56 PM
 
mcpilot mcpilot is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Cincinnati
Posts: 68
 

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

Awesome MOD! Works well in 4.1.10 as well.
__________________
thebookfarminc.com
Version 4.7.0
Reply With Quote
  #266  
Old 08-27-2008, 07:46 PM
 
gpagan gpagan is offline
 

Newbie
  
Join Date: Nov 2007
Posts: 3
 

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

Thanks to all that created the mod , 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.

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?
__________________
gpagan
Hiway 2000 Solutions
-----------------------
X-Cart Gold v. 4.1.9
www.hiway2000.com
Reply With Quote
  #267  
Old 08-28-2008, 06:40 AM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

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

gpagan - Please post your code from subcategories.tpl so i can have a look
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #268  
Old 08-28-2008, 10:51 AM
 
gpagan gpagan is offline
 

Newbie
  
Join Date: Nov 2007
Posts: 3
 

Default 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" }
__________________
gpagan
Hiway 2000 Solutions
-----------------------
X-Cart Gold v. 4.1.9
www.hiway2000.com
Reply With Quote
  #269  
Old 09-19-2008, 05:40 PM
  toddpatterson's Avatar 
toddpatterson toddpatterson is offline
 

Senior Member
  
Join Date: Aug 2004
Location: Arkansas
Posts: 140
 

Default 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!
__________________
B&T sales
xCart 5 Business
Core Version: 5.3.5
Reply With Quote
  #270  
Old 09-19-2008, 06:21 PM
 
lindseyabrandon lindseyabrandon is offline
 

Newbie
  
Join Date: Jun 2008
Location: Atlanta, GA
Posts: 8
 

Default 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!
__________________
/Lindsey/
X-Cart Gold 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 01:48 PM.

   

 
X-Cart forums © 2001-2020