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

show a single site alone without the "frames" around

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-24-2008, 07:21 AM
  AquaClic's Avatar 
AquaClic AquaClic is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 37
 

Default show a single site alone without the "frames" around

Howdy Fellows

I'm customizing our store here and i've run into one problem:

We want our product page to be stand-alone without the menus left or right, even without the banners on top.

Picture 1 shows how it is now and picture 2 shows how i wished it to be. I need it to be this way because the product page is being opened with thickbox over the store so there is no need for the navigation and cart menus.
First of all, thanks for reading this through


Thanks in advance
Attached Thumbnails
Click image for larger version

Name:	store_now.jpg
Views:	144
Size:	49.3 KB
ID:	902  Click image for larger version

Name:	store_planned.jpg
Views:	143
Size:	24.4 KB
ID:	903  
__________________
Xcart version 4.1.10
Reply With Quote
  #2  
Old 04-24-2008, 08:17 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: show a single site alone without the "frames" around

You need to use {if} statements to surround the areas you don't want to show. The syntax would be:

{if $main ne "product"}

show menus

{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-25-2008, 12:31 AM
  AquaClic's Avatar 
AquaClic AquaClic is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 37
 

Smile Re: show a single site alone without the "frames" around

It works perfectly!

Thank you so much balinor!

I didn't even know that that statement existed... ne means not equal in that case, right?

Thanks again
__________________
Xcart version 4.1.10
Reply With Quote
  #4  
Old 04-25-2008, 04:20 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: show a single site alone without the "frames" around

Correct. Good thread here on {if} statements.

http://forum.x-cart.com/showthread.php?t=8881

You can find most of the $main definitions in customer/home_main.tpl and common_templates.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 11:34 AM.

   

 
X-Cart forums © 2001-2020