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)
-   -   Remove Menu from Custom Page in Admin Area (https://forum.x-cart.com/showthread.php?t=50267)

ceLL 10-19-2009 02:17 PM

Remove Menu from Custom Page in Admin Area
 
Hello,

I have created a price book which outputs all of the active products with sku and price sorted by categories. The way I have it setup now is when you click on the link it will open up a new window with the price book and admins can just print it from there. The only issue is the admin menu gets in the way of the printing.

What I would like to do is remove at least the admin menu and the breadcrumb, I will most likely keep the header unless there's a way to remove all of them. If anyone has any hints on how to remove at least the menu that would be excellent.

Cheers

JWait 10-20-2009 06:16 AM

Re: Remove Menu from Custom Page in Admin Area
 
You can probably get what you want by including an "if" statement in single/home.tpl. Something like {if $main ne "your new page"} display what you want in the menu {/if}, although I'm not sure what exactly you need.

ceLL 10-20-2009 07:59 AM

Re: Remove Menu from Custom Page in Admin Area
 
I was thinking about that method, though is there another way to go about doing that?

Really all I would like to do is just remove the admin menus (management, administration, products, inventory, your profile and help) from the single page.

Well I will give that a go and see where I get with that.

Cheers

JWait 10-20-2009 09:03 AM

Re: Remove Menu from Custom Page in Admin Area
 
It depends on what your "price book" is. Is it a pop-up or something of that nature, or another "page" that you have created using a "cloned" .tpl?

ceLL 10-20-2009 09:09 AM

Re: Remove Menu from Custom Page in Admin Area
 
It is another page using the default home.tpl and then i added my own pricebook.tpl and inserted it into common_templates.

I tried the if statement route and it's displaying exactly as I want, I ended up removing the header, menus (including the column the menus were in) and the footer. All with a simple {if $main ne "pricebook"}{/if}.

Thank you!


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

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