![]() |
Adding additional pages
Hi all
I'm a little new to all this :oops: and have just started so what i would like to know is: How can i add additional php pages to the script, i will be using it for things like full news page, partner page etc etc. If anyone can help me in this i would appricate it :D . Thanks Kirk |
Me, too. I'll need to add a number of extra pages.
Thanks. :) |
Maybe this idea is too simplistic for your needs but could you just add some html pages for your "extra pages"?
|
Hi Jeannie
Yes, you could, but would they retain the session id? What I'm concerned about is having the page parsed by the cart so that the shopping session is preserved. Thanks. :) |
Try the FAQ in the members area of X-Cart. It is explained there how to add additional pages.
Hope that helps Ian :D |
Thanks, Ian. :)
Here it is: Quote:
|
So you're saying that unless the additional pages are generated by xcart that the session id is not preserved? If there are cart contents they are removed if the shopper ventures off to html pages under the same domain or other sites? I thought the cart stayed in tact until the browser was closed. :?
|
I think there is another way
I had this problem with fcart and the developers told me to add this code snippet at the top of the page - I believe it will also work for xcart. The idea is that it preserves your session id when moving outside xcart as such - it certainly works for fcart
Code:
<? session_register("id") ?> Insert that snippet at the top of your standard html page and then rename your page filesomething.php Hope this helps quote for today: get on your bike !! |
Re: Additing Additional Pages
Where does this code snipet actually go...on what page...
Does it go on the home.tpl Then add selector which will diplay your About Us template in the center of the cart: {if $smarty.get.mode eq "subscribed"} {include file="main/subscribe_confirmation.tpl"} {elseif $smarty.get.mode eq "about_us"} {include file="main/about_us.tpl"} {elseif $smarty.get.mode eq "unsubscribed"} {include file="main/unsubscribe_confirmation.tpl"} |
Hi Ice,
you would put the code at the top of your HTML FILE as follows. <? session_register("id") ?> <HTML> <HEAD> <TITLE>Page title</TITLE> </HEAD> <BODY> -------- body code here -------- </BODY> </HTML> Change the file extension from "filename.htm or html", to "filename.php" Regards, |
All times are GMT -8. The time now is 09:40 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.