Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

new page I created


Guest

Recommended Posts

Hi

 

I created a new page in oscommerce 2.3.1

 

The link is below

 

http://irhmedia.co.uk/delivery_address.php

 

got a few probs but the main one is below, I will worry about the others after

 

Warning: require(DIR_WS_LANGUAGES/FILENAME_DELIVERY_ADDRESS): failed to open stream: No such file or directory in /customers/5/9/2/irhmedia.co.uk/httpd.www/delivery_address.php on line 75 Fatal error: require(): Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DELIVERY_ADDRESS' (include_path='.:/usr/share/php') in /customers/5/9/2/irhmedia.co.uk/httpd.www/delivery_address.php on line 75

 

How do I solve that, I have googled it and tried things but none work

 

Need some help, sorry

 

Thank you

 

Ian

Link to comment
Share on other sites

Try adding this line at the top of the file:

 

  require('includes/application_top.php');

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

solved that but on the checkout shipping I created on the new page

 

it goes to the create account page but i want it to go to the checkout_shipping.php page

 

How do I do that

 

Please help

 

Thank you

 

Ian

Link to comment
Share on other sites

Hi germ

 

I put the require('includes/application_top.php'); in the file but got this error now

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /customers/5/9/2/irhmedia.co.uk/httpd.www/delivery_address.php:74) in /customers/5/9/2/irhmedia.co.uk/httpd.www/includes/functions/sessions.php on line 102

 

how do i solve that one

 

sorry

 

Ian

Link to comment
Share on other sites

If you posted the code from the file we could probably figure it out.

 

I will say up front that if you're trying to redo the osC checkout into something of your own making I'm not your guinea pig....

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I know and I am sorry, to be honest its the first time I have created my own page into oscommerce but have been trying it for ages now, thought I would be expert by now haha

 

I have not got any of the errors now so thats good but I need the checkout shipping button the page to go to the checkout_shipping page but its going to the create account page, how do i correct that

 

I have pasted the code from the delivery_address.php page below

 

<?php
/*
 $Id$
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com
 Copyright (c) 2010 osCommerce
 Released under the GNU General Public License
*/
 require('includes/application_top.php');
?>
<title>Delivery Address</title>
<style type="text/css">
body
{
background-color:#99D9EA;
}
</style>
</head>
<body>
<table width="400" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td><strong>Delivery Address</strong></td>
</tr>
</table>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td><form name="delivery_address" method="post" action="checkout_shipping.php">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td width="16%">Name</td>
<td width="2%">:</td>
<td width="82%"><input name="Name" type="text" id="Name" size="50"></td>
</tr>
<tr>
<td>Phone Number</td>
<td>:</td>
<td><textarea name="phone_number" cols="50" rows="4" id="phone_number"></textarea></td>
</tr>
<tr>
<td>Email Address</td>
<td>:</td>
<td><input name="email_address" type="text" id="email_address" size="50"></td>
</tr>
<tr>
<td>Address Line 1</td>
<td>:</td>
<td><input name="address_line_1" type="text" id="address_line_1" size="50"></td>
</tr>
<td>Address Line 2(Optional)</td>
<td>:</td>
<td><input name="address_line_2" type="text" id="address_line_1" size="50"></td>
</tr>
<td>Town or State</td>
<td>:</td>
<td><input name="town_or_state" type="text" id="town_or_state" size="50"></td>
</tr>
<td>County</td>
<td>:</td>
<td><input name="county" type="text" id="county" size="50"></td>
</tr>
<td>Post Code or Zip Code</td>
<td>:</td>
<td><input name="post_code_or_zip_code" type="text" id="post_code_or_zip_code" size="50"></td>
</tr>
<td>Country</td>
<td>:</td>
<td><input name="country" type="text" id="country" size="50"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><a href="checkout_shipping.php"><input type="next" name="Submit" value=""> <input type="reset" name="Checkout Shipping" value="Checkout Shipping"></a></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>

Link to comment
Share on other sites

It's going to the correct page:

 

<td><form name="delivery_address" method="post" action="checkout_shipping.php">

 

My guess you're not satisfying the requirements at the beginning of the code in that page.

 

The first is being logged in.

 

If you aren't "logged in" the code in the page will redirect you to the login/create account page.

 

You might have lost the session because you aren't using the proper osC PHP code to construct your links.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I am not logged in no

 

How do I get it so it goes to the checkout_shipping.php page if I am not logged in as this is going to be for purchasing without a account

 

Thank you so much for the help

 

I do really appreciate it

Link to comment
Share on other sites

As I said ... I'm not your guinea pig....

 

You're remaking the whole checkout process into something of your own fashion.

 

That's a game I'm not prepared to play.

 

I'm honestly not meaning to to rude, crude, or obnoxious.

 

I'm just telling it like it is.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...