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)
-   -   Adding additional pages (https://forum.x-cart.com/showthread.php?t=479)

mekro 10-30-2002 07:23 AM

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

ArmyNavy 10-30-2002 11:33 AM

Me, too. I'll need to add a number of extra pages.

Thanks. :)

Jeannie 10-30-2002 11:44 AM

Maybe this idea is too simplistic for your needs but could you just add some html pages for your "extra pages"?

ArmyNavy 10-31-2002 03:26 AM

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. :)

Ian 10-31-2002 04:11 AM

Try the FAQ in the members area of X-Cart. It is explained there how to add additional pages.

Hope that helps
Ian
:D

ArmyNavy 10-31-2002 04:22 AM

Thanks, Ian. :)

Here it is:

Quote:

Q: I want to add aditional text page to X-cart where I can place some additional info about my site, how it can be done?
A: 1. First you have to edit template customer/home.tpl

Create new menu item that will point to your page, you can put it for example after help menu section (the code between HTML comments):

{ include file="help.tpl" }

<table border=0 cellPadding=5 cellSpacing=0 width=100%>
<tr><td colspan=2 class="TableLeftElements">
About us
</td></tr>
</table>

</td>
<td width=20> </td>
<td valign=top>



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"}

2. Then create About Us template that will be displayed in the center, create file skin1/main/about_us.tpl and put the following lines there:

{ include file="location.tpl" last_location="About Us"}
{capture name=dialog}
Put your about us text here...
{/capture}
{ include file="dialog.tpl" title="Information about our company" content=$smarty.capture.dialog extra="width=1 00%"}

Jeannie 10-31-2002 06:31 AM

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. :?

chris 10-31-2002 08:49 AM

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 !!

ice 11-03-2002 12:37 PM

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"}

syddos 11-08-2002 01:11 AM

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.