X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to add extra Title Bars under Categories? (https://forum.x-cart.com/showthread.php?t=64467)

Marc Washburn 08-02-2012 07:30 AM

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,

cflsystems 08-02-2012 07:53 AM

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...

Marc Washburn 08-02-2012 08:06 AM

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,

cflsystems 08-02-2012 08:28 AM

Re: How to add extra Title Bars under Categories?
 
http://forum.x-cart.com/showthread.php?t=61564&highlight=category+title - last post


All times are GMT -8. The time now is 12:36 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.