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

How to add extra Title Bars under Categories?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-02-2012, 07:30 AM
 
Marc Washburn Marc Washburn is offline
 

Advanced Member
  
Join Date: May 2004
Posts: 72
 

Default How to add extra Title Bars under Categories?

I recently upgraded my old x-cart which was a mix of static html and X-cart 4.1.10 for the products only.

Our store has so many product categories, I would like to add some extra title bars between products in order to highlight different groupings.

See below (left is current cart, right side is how it used to be).

http://i555.photobucket.com/albums/jj480/durableman/how-to-add-column-categories.jpg

How can I add extra title bars (Featured Products, Natural Skin Care, Gift Ideas etc) in between certain products?

Also, is it possible to add another section for static pages below using a custom title bar called 'product resources' that would be separate from the 'help' static pages?

thanks in advance,
__________________
Marc Washburn
Natural Bath & Body Shop
P.O. Box 2555
Tarpon Springs, FL 34688
marc@naturalbathandbodyshop.com
www.naturalbathandbodyshop.com

Mod Newbie
X-cart 4.4.5 - Now Live !!! Hurray!
X-cart 4.2.1 - Delicae Gourmet
Reply With Quote
  #2  
Old 08-02-2012, 07:53 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: How to add extra Title Bars under Categories?

You can do this with orderby (pos) for categories and some if statements in the template. If orderby > xxx or < yyy do this or do that...
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 08-02-2012, 08:06 AM
 
Marc Washburn Marc Washburn is offline
 

Advanced Member
  
Join Date: May 2004
Posts: 72
 

Default Re: How to add extra Title Bars under Categories?

Quote:
Originally Posted by cflsystems
You can do this with orderby (pos) for categories and some if statements in the template. If orderby > xxx or < yyy do this or do that...

Ok, so here is the 'categories.tpl' file:

Quote:
{*
$Id: categories.tpl,v 1.3.2.2 2010/12/17 15:12:37 aim Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{if $categories_menu_list ne '' or $fancy_use_cache}
{capture name=menu}

{if $active_modules.Flyout_Menus}

{include file="modules/Flyout_Menus/categories.tpl"}
{assign var="additional_class" value="menu-fancy-categories-list"}

{else}

<ul>
{foreach from=$categories_menu_list item=c name=categories}
<li{interline name=categories}><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category|amp}</a></li>
{/foreach}
</ul>

{assign var="additional_class" value="menu-categories-list"}

{/if}

{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu}
{/if}

My Smarty programming is rather weak (good with html & css though).

Can anyone lend a quick hand?

thanks,
__________________
Marc Washburn
Natural Bath & Body Shop
P.O. Box 2555
Tarpon Springs, FL 34688
marc@naturalbathandbodyshop.com
www.naturalbathandbodyshop.com

Mod Newbie
X-cart 4.4.5 - Now Live !!! Hurray!
X-cart 4.2.1 - Delicae Gourmet
Reply With Quote
  #4  
Old 08-02-2012, 08:28 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: How to add extra Title Bars under Categories?

http://forum.x-cart.com/showthread.php?t=61564&highlight=category+title - last post
__________________
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 01:46 AM.

   

 
X-Cart forums © 2001-2020