X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Display Top Menu on Checkout page (https://forum.x-cart.com/showthread.php?t=70386)

JannieB 10-31-2014 03:53 AM

Display Top Menu on Checkout page
 
Hi,
It seems theat the SimpleCMS top menu, doesn't get displayed on the checkout page .....
How can I make it so this is displayed .... I have tried setting the isVisible function to always be true with this code in my module:

Code:

class Top extends \XLite\View\Menu\Customer\Top implements \XLite\Base\IDecorator
{
 
    /**
    * Check if widget is visible
    *
    * @return boolean
    */
    protected function isVisible()
    {
        // return always visible  (ie not hidden from checkout)
                return true;
    }

}


But it doesn't seem to make any difference .... any ideas?

Jan

tony_sologubov 10-31-2014 05:18 AM

Re: Display Top Menu on Checkout page
 
It should work. In fact it works, on my local installation.
Could you please send the entire class where you have this code?

Tony.

JannieB 10-31-2014 06:21 AM

Re: Display Top Menu on Checkout page
 
Thanks Tony...

I have got it working now. I had put my revised top.php file in a subfolder in my module and for some reason it didn't like this (although other files are in sub folders and are OK?) Anyway I re-uploaded it, re-deployed and all fine now - phew!

Jan


All times are GMT -8. The time now is 09:49 AM.

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