Search code examples
smartycs-cart

CS-Cart Menu in custom template


I am making a template in CS-Cart by including the needed tpl files directly into my html where needed. But what I'm not sure how to do is include the main menu.

eg.

{include file="common/search.tpl"}

I've created a custom menu, which currently contains two categories and two pages, and called it 'Top Nav'. How do I include this in my html template file?


Solution

  • You can do this, but you'll still need to use the block manager.

    You can create a block for your menu, and manually insert it by following the tutorial here: http://forum.cs-cart.com/topic/29828-a-simple-way-to-add-any-content-on-any-place-on-template/

    Though, as Alexander points out, it's not the recommended way to do it.