thehost5968 Posted June 9, 2009 Share Posted June 9, 2009 how to exclude headr and footer from one page? I need to pull one of my pages in to a side box on my WHMCS's (portal) index.php page but I can only get it with the header and footer or if I try using: cart.php?systpl=default&carttpl=default&a=view it works but then it change the rest of the site viest / SESSION untill I close and reopen the page / site. so I need some help. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 9, 2009 Share Posted June 9, 2009 {if $pagetitle == 'YOURPAGETITLEHERE'} {else} {/if} 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted June 9, 2009 Author Share Posted June 9, 2009 {if $pagetitle == 'YOURPAGETITLEHERE'} {else} {/if} I do not get it this will do what? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 9, 2009 Share Posted June 9, 2009 It will display what you want on a certain page (YOURPAGETITLEHERE) , if a person isn't viewing that page it will display something else. 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted June 11, 2009 Share Posted June 11, 2009 You can't bypass the header and footer. They are coded in the php. You could create your own custom page and bypass it that way but not for the shopping cart or existing pages. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 11, 2009 Share Posted June 11, 2009 What I mentioned above works... I just tested it! 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted June 11, 2009 Author Share Posted June 11, 2009 does it work in a <table width="120">code<table> (I know this is not the full code for a table) as I need it as a side box on my page? this is the code I have in my templates/orderforms/default/viewcart.tpl: <link rel="stylesheet" type="text/css" href="templates/orderforms/default/style.css" /> <table width="120"><tr><td> <p align="center"> {$LANG.ordersubtotal}: <b>{$subtotal}</b><br /> {if $promotioncode}{$promotiondescription}: <b>{$discount}</b><br />{/if} {if $taxrate}{$taxname} @ {$taxrate}%: <b>{$taxtotal}</b><br />{/if} {if $taxrate2}{$taxname2} @ {$taxrate2}%: <b>{$taxtotal2}</b><br />{/if} {$LANG.ordertotalduetoday}: <b>{$total}</b><br /> </p> <p align="center"> {$LANG.invoicesdescription}»{$cartitems}<input type="button" value="{$LANG.checkout} »" onclick="window.location='cart.php?a=checkout'"/></p> </td></tr></table> and this is the url I need to uses: cart.php?carttpl=default&a=view 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 11, 2009 Share Posted June 11, 2009 You can use it almost anywhere in whmcs. 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted June 11, 2009 Author Share Posted June 11, 2009 ok so is this ok: {if $pagetitle == 'cart.php?carttpl=default&a=view'} {else} {/if} as when I trid this it did not work? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 12, 2009 Share Posted June 12, 2009 No. The page title is the name of the page that show on the top of your browser, for the cart it would be 'Shopping Cart" {if $pagetitle == 'Shopping Cart'} {else} {/if} If you wanna just have a different logo for the cart page just put that around the logo. What are you trying to achieve? 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted June 12, 2009 Author Share Posted June 12, 2009 a Shopping cart summery box to show on my index.php page (whmcs's index.php) in the left side colum. I as I can not get the right info from the $_seesion() code to show what I need so this is the next best way I know how to do this? Would you know the code to get the info from the $_seesion()? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 12, 2009 Share Posted June 12, 2009 Sparky is coming out with a mod to allow this... I too was trying but no go so I'm waiting for that MOD. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.