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)
-   -   show a single site alone without the "frames" around (https://forum.x-cart.com/showthread.php?t=39324)

AquaClic 04-24-2008 07:21 AM

show a single site alone without the "frames" around
 
2 Attachment(s)
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 :mrgreen:


Thanks in advance

balinor 04-24-2008 08:17 AM

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}

AquaClic 04-25-2008 12:31 AM

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

balinor 04-25-2008 04:20 AM

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


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

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