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

Remove Menu from Custom Page in Admin Area

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-19-2009, 02:17 PM
 
ceLL ceLL is offline
 

Member
  
Join Date: Mar 2009
Location: Winnipeg, MB, Canada
Posts: 24
 

Default 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
__________________
Sean

X-Cart Gold - 4.2.1
PHP - 5.2.9-1
MySQL - 5.1.32
IIS 6.0 w/ FastCGI
Windows Server 2003
Reply With Quote
  #2  
Old 10-20-2009, 06:16 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote

The following user thanks JWait for this useful post:
ceLL (10-20-2009)
  #3  
Old 10-20-2009, 07:59 AM
 
ceLL ceLL is offline
 

Member
  
Join Date: Mar 2009
Location: Winnipeg, MB, Canada
Posts: 24
 

Default 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
__________________
Sean

X-Cart Gold - 4.2.1
PHP - 5.2.9-1
MySQL - 5.1.32
IIS 6.0 w/ FastCGI
Windows Server 2003
Reply With Quote
  #4  
Old 10-20-2009, 09:03 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 10-20-2009, 09:09 AM
 
ceLL ceLL is offline
 

Member
  
Join Date: Mar 2009
Location: Winnipeg, MB, Canada
Posts: 24
 

Default 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!
__________________
Sean

X-Cart Gold - 4.2.1
PHP - 5.2.9-1
MySQL - 5.1.32
IIS 6.0 w/ FastCGI
Windows Server 2003
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 06:06 AM.

   

 
X-Cart forums © 2001-2020