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)
-   -   custom menu link not showing up on product pages (https://forum.x-cart.com/showthread.php?t=74529)

keystone 10-13-2016 09:37 AM

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.

elmirage001 10-13-2016 12:59 PM

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

PhilJ 10-14-2016 03:05 AM

Re: custom menu link not showing up on product pages
 
Hi Keystone, try taking out...
Quote:

&& $active_sales

keystone 10-14-2016 06:55 AM

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.


All times are GMT -8. The time now is 01:17 PM.

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