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

custom menu link not showing up on product pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 10-13-2016, 12:59 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,964
 

Default Re: custom menu link not showing up on product pages

Hi,

Maybe check the installation instructions to see what code that was added so that they show on the home and category pages and then adapt for your products and static pages.

Good luck!

Paul
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote

The following user thanks elmirage001 for this useful post:
PhilJ (10-14-2016)
  #3  
Old 10-14-2016, 03:05 AM
 
PhilJ PhilJ is offline
 

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

Default Re: custom menu link not showing up on product pages

Hi Keystone, try taking out...
Quote:
&& $active_sales
__________________
xcartmods.co.uk
Reply With Quote
  #4  
Old 10-14-2016, 06:55 AM
 
keystone keystone is offline
 

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

Default Re: custom menu link not showing up on product pages

Thanks guys,
Removing the
Code:
&& $active_sales
does make is show up everywhere but even when there are no active sales. So I need to figure out why the product/static pages don't think there are active sales. I looked through the install instructions but haven't figured that part out yet.
__________________
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
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 12:44 AM.

   

 
X-Cart forums © 2001-2020