View Single Post
  #1  
Old 10-13-2016, 09:37 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default custom menu link not showing up on product pages

x-cart version 4.6.6, reboot template

Hi, I have a custom link to my sales and specials page that I have added to my horizontal link menu. It the link shows up great on my home page and category pages but disappears on my product pages, static pages, help pages. They are all using the same .tpl for the menu so I'm a little baffled. Can some one help with this?

Here is the code for that template...
My custom link code is at the very end from ALTEREDCART

/reboot/custom/menus/types/01_dropdown.tpl
Code:
{foreach from=$categories_menu_list item=c} <li{if $cat eq $c.categoryid || $current_category.parentid eq $c.categoryid || $product.categoryid eq $c.categoryid} class="active"{/if}><a href="home.php?cat={$c.categoryid}">{$c.category}</a> {if $c.childs} {foreach from=$c.childs item=sc name=sc} {if $smarty.foreach.sc.first}<ul class="dropdown{if $sc.reboot_drop eq "L"} dropdown-left{/if}">{/if} <li><a href="home.php?cat={$sc.categoryid}">{$sc.category}</a> {if $sc.childs} {foreach from=$sc.childs item=ssc name=ssc} {if $smarty.foreach.ssc.first}<ul class="dropdown{if $sc.reboot_drop eq "L"} dropdown-left{/if}">{/if} <li><a href="home.php?cat={$ssc.categoryid}">{$ssc.category}</a> {if $ssc.childs} {foreach from=$ssc.childs item=sssc name=sssc} {if $smarty.foreach.sssc.first}<ul class="dropdown{if $sc.reboot_drop eq "L"} dropdown-left{/if}">{/if} <li><a href="home.php?cat={$sssc.categoryid}">{$sssc.category}</a> {if $sssc.childs} {foreach from=$sssc.childs item=ssssc name=ssssc} {if $smarty.foreach.ssssc.first}<ul class="dropdown{if $sc.reboot_drop eq "L"} dropdown-left{/if}">{/if} <li><a href="home.php?cat={$ssssc.categoryid}">{$ssssc.category}</a></li> {if $smarty.foreach.ssssc.last}</ul>{/if} {/foreach} {/if} </li> {if $smarty.foreach.sssc.last}</ul>{/if} {/foreach} {/if} </li> {if $smarty.foreach.ssc.last</ul>{/if} {/foreach} {/if} </li> {if $smarty.foreach.sc.last}</ul>{/if} {/foreach} {/if} </li> {/foreach} {*** On Sale :: alteredcart.com ***} {if $active_modules.alteredCart_On_Sale && $active_sales} <li><a href="/onsale.php" title="Discount Candles">Sales &amp; Specials</a></li> {/if} {*** On Sale :: alteredcart.com ***}

Thanks.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote