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
  #161  
Old 08-22-2006, 10:26 AM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

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

I fixed my original post on page 14, so everything should work fine now.

Let me know if there are any more issues
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #162  
Old 09-12-2006, 12:28 PM
 
districtsix districtsix is offline
 

Newbie
  
Join Date: Sep 2006
Posts: 2
 

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

Hey,
I tried the post revision on page 14... my layout for subcategories is all stuck on the default image. I have an image uploaded under the "zaki" category, but it's not connecting http://districtsixmusic.com/store/home.php?cat=249

__________________
d6
Reply With Quote
  #163  
Old 09-12-2006, 12:31 PM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

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

What version of X-Cart are you using?
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #164  
Old 09-12-2006, 11:34 PM
 
pinklinoleum pinklinoleum is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 37
 

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

I was wondering if anyone knew how to call the root category icon from the filesystem instead of the DB?



Version 4.0.x
__________________
XCART version 4.0.19
Reply With Quote
  #165  
Old 09-27-2006, 12:45 PM
 
kunal kunal is offline
 

Member
  
Join Date: Jun 2006
Posts: 14
 

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

hi

i have the this thread over and over and tried lots of different ways, everything works fine aprt from showing the Categories description can somebody please explain what the correct smarty tag is or what i need to change and add to display this, x-cart version in sig
__________________
x-cart 4.4.5
Reply With Quote
  #166  
Old 09-30-2006, 11:11 AM
 
louielou louielou is offline
 

Newbie
  
Join Date: Sep 2006
Posts: 4
 

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

This looks good. But is it possible to have the image/text link to another subcatagory instead of a product?
__________________
Lewis L.
Windows XP
X-Cart Ver. 4.1
Reply With Quote
  #167  
Old 09-30-2006, 11:58 AM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

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

If there are subcategories, it will link to the subcategories, otherwise, it will link to the products.
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #168  
Old 10-03-2006, 03:54 PM
 
zenkiss zenkiss is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 32
 

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

Hello -

I am almost have this perfect for my site as I have stripped away some code. Can some one please tell me how I can make the catagory icons (thumbnails) show up above the text and make those images a link as well.

Thank you

Here is my current code


-------------------------------

Code:
{* $Id: subcategories.tpl,v 1.43.2.7 2005/10/28 05:23:51 svowl Exp $ *} {capture name=dialog} {if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description}{/if}<br><br> {assign var="tmp" value="0"} {section name=cat_num loop=$subcategories} {if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if} {/section} {section name=cat_num loop=$subcategories} { if %cat_num.first% } <table width="100%" border="0" align="center" cellpadding="5" cellspacing="0"> {/if} { if %cat_num.index% is div by 4} <tr> {/if} <td align="center" valign="top"> <a href="home.php?cat={ $subcategories[cat_num].categoryid }"> {if $subcategories[cat_num].icon_url}<img src="{$subcategories[cat_num].icon_url}" border="0" style="padding-bottom: 5px;">{else}<img src="{$xcart_web_dir}/default_icon.gif" border="0" style="padding-bottom: 5px;">{/if} </a><br /><br /> <a href="home.php?cat={ $subcategories[cat_num].categoryid }"> <b>{ $subcategories[cat_num].category|escape }</b></a><br><br> { $subcategories[cat_num].description|escape }</td> { if %cat_num.last% } </tr> </table> {/if} {/section} {if $total_pages gt 2} <br> { include file="customer/main/navigation.tpl" } {/if} {if $products eq "" and $tmp eq "0"} {$lng.txt_no_products_in_cat} {/if} {/capture} {include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra="width=100%"} {if $products eq ""} {if $f_products ne ""} <BR><BR> {include file="customer/main/featured.tpl"} {/if} {/if} { include file="customer/main/navigation.tpl" }

----------------------

Edit, it looked good until going into one of the suncats as I wiped out the products, hmmmmm......
__________________
=^-^= 4.0.19 - 3.2 Dual Core - RHEL with 6GB's
Reply With Quote
  #169  
Old 10-03-2006, 04:03 PM
  finestshops's Avatar 
finestshops finestshops is offline
 

eXpert
  
Join Date: Oct 2002
Location: Toronto, Canada
Posts: 335
 

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

Hi there,

try to change

{if $subcategories[cat_num].icon_url} ... {/if}

to

<A href="home.php?cat={ $subcategories[cat_num].categoryid }"><IMG alt="{ $subcategories[cat_num].category|escape }" border="0" src="{if $subcategories[cat_num].icon_url}{$subcategories[cat_num].icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$subcategories[cat_num].categoryid}{/if}"></a>
__________________
Best regards,

Anton Pachkine
finestshops.com/x-cart
Reply With Quote
  #170  
Old 10-03-2006, 04:20 PM
 
zenkiss zenkiss is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 32
 

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

That worked great 27Stars- Thank you! This really should be built into X-cart.

If you saw my last part of the edit, I took the products off and changed some code about. When I click one of the icons now it goes to proper subcat but shows no products (my fault).

1 - I see no products (I know that is because I took out the variable) I was trying to get it to show just the icon and sub cat name and no products underneath as with this mod as it is. But that wiped out my products inside the subcat where they should show.

I am almost keep having it but mess it up

Thank you again

I am after this looking the way it does with these as the subcats then the page you would get there products
Attached Thumbnails
Click image for larger version

Name:	snapshot.jpg
Views:	155
Size:	32.8 KB
ID:	118  
__________________
=^-^= 4.0.19 - 3.2 Dual Core - RHEL with 6GB's
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 07:28 PM.

   

 
X-Cart forums © 2001-2020