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

Smart Menu for v.4.4.1??

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 02-22-2012, 06:51 AM
 
Central Designs Central Designs is offline
 

Member
  
Join Date: Jul 2006
Posts: 10
 

Default Smart Menu for v.4.4.1??

Hi

Wondered if anyone can help... I'm looking to create a menu which contains both categories and also static pages, exactly like 'Smart Menu' does.

Unfortunately Smart Menu seems to be compatible upto v.4.3 and I'm using v.4.4.1 - does anyone know of a mod which does this and is compatible with v.4.4.x??

I have considered the possibility of hard-coding, but once the store is up and running, the store owner will want to be able to administer the website and add/remove pages and categories easily without any coding involved.

Many thanks
__________________
Version 4.2.2 - Apache/2.2.3 (Red Hat) PHP 5.1.6
Mac OS X
Reply With Quote
  #2  
Old 02-22-2012, 07:36 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Smart Menu for v.4.4.1??

We have a selection of menus available, or we can create any kind of dynamic menu for you.
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
Central Designs (02-22-2012)
  #3  
Old 02-23-2012, 05:32 AM
 
JacksmithxD JacksmithxD is offline
 

X-Adept
  
Join Date: Oct 2010
Posts: 400
 

Talking Re: Smart Menu for v.4.4.1??

Quote:
Originally Posted by Central Designs
Hi

Wondered if anyone can help... I'm looking to create a menu which contains both categories and also static pages, exactly like 'Smart Menu' does.

Unfortunately Smart Menu seems to be compatible upto v.4.3 and I'm using v.4.4.1 - does anyone know of a mod which does this and is compatible with v.4.4.x??

I have considered the possibility of hard-coding, but once the store is up and running, the store owner will want to be able to administer the website and add/remove pages and categories easily without any coding involved.

Many thanks

I would definitely go with Phil, he's done some great work for my site, and is what I call a genius!
__________________
Xcart 4.5.2
Reply With Quote
  #4  
Old 02-23-2012, 07:26 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Smart Menu for v.4.4.1??

It is extremely simple to combine these two, or to add additional menus controlled by speed bars. I often just setup additional checkboxes for the static pages, instead of just "Show link in help menu" you can have more boxes, like "Show link in Articles Menu" or "Show link in Categories Menu". It's the easiest thing for the clients that I have found.

Now here is a quick lesson in Smarty:

Both the categories menu and the static pages menu are arrays and they are already assigned to smarty variables.
$categories_menu_list and $pages_menu respectively. You loop through arrays like this with either {section} or {foreach}. The simplest way to do a menu is with an unordered list, making each menu item it's own <li> inside the <ul>.

For example (I haven't tested this):

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

{foreach from=$pages_menu item=p}
<li>
<a href="pages.php?pageid={$p.pageid}">{$p.title|amp} </a>
</li>
{/foreach}
</ul>

That should first open the list with <ul> and then loop through the categories menu, and as you can see write a <li> and a </li> for each item in the array. Then it does the same for the pages menu. Then we close the list </ul> after the second loop {/foreach} is complete.

Remember, you should never edit templates in /skin/common_files directly. Always setup a skin directory, and make all edits there. This will ensure you can always switch back to the default templates, and test whether it is your template that is breaking the site, or if there is something worse wrong.

Hope that helps,
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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 06:45 AM.

   

 
X-Cart forums © 2001-2020