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

Root Categories Icons on home page for version 4.4.X

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-13-2011, 07:50 PM
 
dreg123 dreg123 is offline
 

Member
  
Join Date: Apr 2005
Posts: 13
 

Default Root Category Thumbnails on Homepage

Does anyone know how to display the root category thumbnails on version 4.4.X on the home page like the subcategories are displayed on the other categories pages?

It was as simple as placing this in the welcome.tpl on previous versions but that doesn't seem to work on this version???
{include file="customer/main/subcategories_t.tpl"}

I've tried everything and sure I am missing something simple.. thanks
__________________
eHub - Web Design & Hosting
X-Cart 4.2 / 4.3 / 4.4.X
Reply With Quote
  #2  
Old 02-19-2011, 03:05 PM
 
dreg123 dreg123 is offline
 

Member
  
Join Date: Apr 2005
Posts: 13
 

Default Re: Root Categories Icons on home page for version 4.4.X

Can anyone even hint as to what has changed in the template or category arrays for the welcome page in the latest version to try and work this out please?
__________________
eHub - Web Design & Hosting
X-Cart 4.2 / 4.3 / 4.4.X
Reply With Quote
  #3  
Old 02-19-2011, 04:48 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Root Categories Icons on home page for version 4.4.X

It depends if you are using fancy cats or not. If you do - depends if you are using the cache option or not. If you do categories array is taken from the cache and is not available on the page. If you don't use the cache option the array is categories_menu_list and has all categories listed. There is no categories array on front page so subcategories_t or _list templates won't work. If you still need it you have to create your own array in the script, populate it with the root cats and assign it to smarty
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 02-21-2011, 04:08 PM
 
dreg123 dreg123 is offline
 

Member
  
Join Date: Apr 2005
Posts: 13
 

Default Re: Root Categories Icons on home page for version 4.4.X

Thank you!

I simply copied the subcategories_t.tpl to a new file called subcategories_h.tpl (specific for the homepage) and changed the array to categories_menu_list as you highlighted and it worked a treat. Of course I included this new file on the welcome.tpl.

Thanks again!
__________________
eHub - Web Design & Hosting
X-Cart 4.2 / 4.3 / 4.4.X
Reply With Quote
  #5  
Old 08-14-2011, 11:14 PM
 
chapel chapel is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 51
 

Default Re: Root Categories Icons on home page for version 4.4.X

I am using fashion_mosaic_blue and I still have this problem.
__________________
x-cart 4.4.3
Reply With Quote
  #6  
Old 08-14-2011, 11:16 PM
 
chapel chapel is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 51
 

Default Re: Root Categories Icons on home page for version 4.4.X

where is subcategories_t.tpl in 4.4.2
__________________
x-cart 4.4.3
Reply With Quote
  #7  
Old 08-15-2011, 03:12 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Root Categories Icons on home page for version 4.4.X

skin/your_skin/customer/main
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #8  
Old 08-15-2011, 06:42 AM
 
chapel chapel is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 51
 

Default Re: Root Categories Icons on home page for version 4.4.X

I don't see the subcategories_t.tpl file there. I have re-downloaded the files from x-cart and they are not in that file there either.
__________________
x-cart 4.4.3
Reply With Quote
  #9  
Old 08-15-2011, 06:50 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Root Categories Icons on home page for version 4.4.X

If the file is not in the skin you are using then the skin is using the one in skin/common_files/customer/main. You can either modify that file or copy it in your skin and modify there
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 02:35 AM.

   

 
X-Cart forums © 2001-2020