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

Adding additional pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-30-2002, 07:23 AM
 
mekro mekro is offline
 

Newbie
  
Join Date: Sep 2002
Posts: 1
 

Default Adding additional pages

Hi all

I'm a little new to all this 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 .

Thanks
Kirk
Reply With Quote
  #2  
Old 10-30-2002, 11:33 AM
 
ArmyNavy ArmyNavy is offline
 

Member
  
Join Date: Oct 2002
Location: Philadelphia, PA, USA
Posts: 28
 

Default

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

Thanks.
__________________
ArmyNavy.com TM
Military Surplus, Clothing, Gear, Vehicles, and Tons More.
\"Tons and Tons of Surplus!\" TM
Reply With Quote
  #3  
Old 10-30-2002, 11:44 AM
 
Jeannie Jeannie is offline
 

eXpert
  
Join Date: Sep 2002
Location: Texas
Posts: 257
 

Default

Maybe this idea is too simplistic for your needs but could you just add some html pages for your "extra pages"?
Reply With Quote
  #4  
Old 10-31-2002, 03:26 AM
 
ArmyNavy ArmyNavy is offline
 

Member
  
Join Date: Oct 2002
Location: Philadelphia, PA, USA
Posts: 28
 

Default

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.
__________________
ArmyNavy.com TM
Military Surplus, Clothing, Gear, Vehicles, and Tons More.
\"Tons and Tons of Surplus!\" TM
Reply With Quote
  #5  
Old 10-31-2002, 04:11 AM
 
Ian Ian is offline
 

Senior Member
  
Join Date: Sep 2002
Location: Adelaide, South Australia
Posts: 127
 

Default

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

Hope that helps
Ian
__________________
_____________________________________

4.6.6 Gold Plus
and 4.7.4 Gold
MySQL server 5.6.29
PHP 5.5.34
Reply With Quote
  #6  
Old 10-31-2002, 04:22 AM
 
ArmyNavy ArmyNavy is offline
 

Member
  
Join Date: Oct 2002
Location: Philadelphia, PA, USA
Posts: 28
 

Default

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%"}
__________________
ArmyNavy.com TM
Military Surplus, Clothing, Gear, Vehicles, and Tons More.
\"Tons and Tons of Surplus!\" TM
Reply With Quote
  #7  
Old 10-31-2002, 06:31 AM
 
Jeannie Jeannie is offline
 

eXpert
  
Join Date: Sep 2002
Location: Texas
Posts: 257
 

Default

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.
Reply With Quote
  #8  
Old 10-31-2002, 08:49 AM
 
chris chris is offline
 

Senior Member
  
Join Date: Sep 2002
Location: UK
Posts: 145
 

Default 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 !!
__________________
Chris
some carts at v4.4.5 security patched on a hardened managed unix server
Reply With Quote
  #9  
Old 11-03-2002, 12:37 PM
 
ice ice is offline
 

Member
  
Join Date: Oct 2002
Posts: 12
 

Default 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"}
Reply With Quote
  #10  
Old 11-08-2002, 01:11 AM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

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,
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:50 PM.

   

 
X-Cart forums © 2001-2020