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

display catagory

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-08-2007, 01:53 AM
 
uighur uighur is offline
 

Newbie
  
Join Date: Dec 2007
Posts: 2
 

Default display catagory

Hello all
my first time on this forum.
i want my catagory page to be displayed on the front page like shop script premium .
here is the demo: http://www.shop-script-demo.com/premium/index.php
the smarty tag code which this site used.

HTML Code:
{section name=i loop=$root_categories} {if $smarty.section.i.index is div by 2}<tr>{/if} <td width="1%" align="center" valign="top"> {if $root_categories[i][3] ne ""}<a href="index.php?categoryID={$root_categories[i][0]}"><img border=0 src="products_pictures/{$root_categories[i][3]}" alt="{$root_categories[i][1]|replace:'"':'&quot;'}">{/if} </td> <td width="0" valign="top"> <a href="index.php?categoryID={$root_categories[i][0]}" class="cat">{$root_categories[i][1]}</a> <font class="olive">({$root_categories[i][2]})</font><br> {* show sub categories *} {assign var="tmp" value=0} {section name=j loop=$root_categories_subs} {if $root_categories_subs[j][3] == $root_categories[i][0]} {if $tmp == 1}<font class="olive">|</font> {else} {assign var="tmp" value=1} {/if} <a href="index.php?categoryID={$root_categories_subs[j][0]}" class=standard>{$root_categories_subs[j][1]}</a> {/if} {/section} </td> {if ($smarty.section.i.index+1) is div by 2}</tr>{/if} {/section} </table>

is the any way we can do the same with x-cart?
Attached Thumbnails
Click image for larger version

Name:	test.jpg
Views:	147
Size:	56.3 KB
ID:	672  
__________________
Version 4.1.9
Reply With Quote
  #2  
Old 12-08-2007, 02:22 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: display catagory

This might help:

http://www.websitecm.com/x-cart-mods/x-cart-seo-category-map.html

Regards

Shafiq
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #3  
Old 12-08-2007, 12:43 PM
 
uighur uighur is offline
 

Newbie
  
Join Date: Dec 2007
Posts: 2
 

Default Re: display catagory

Is there any one else know how to do ?
__________________
Version 4.1.9
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 07:33 AM.

   

 
X-Cart forums © 2001-2020