Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php confustion


confusedtulip

Recommended Posts

Im really confused when it comes to editing php files. This is for my very first page of the cart where it just explains what the company is and so on (the text we can edit in index.php) Anywho, I can not figure out what i have wrong in the code but it constantly tells me I have errors. Like this time its Parse error: parse error, unexpected T_STRING in /home/tulipbo/public_html/cart/includes/languages/english/index.php on line 15

and I have no idea what a T_String is. Can anyone please help? thank you!

 

my code:

 

 

 

<?php

 

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define ('TEXT_MAIN','Welcome to the Tulip B. catalog,

any products purchased will be delivered and the

customer will be billed. Please create an account for

security purposes or log in if one is already created.

No addresses, names, emails, credit card information

will be used, distributed nor shared with any third

party. Your transactions are all fully secured. For

any concerns please feel free to email

[email protected]' <table

border="0" width="100%" cellspacing="5"

cellpadding="2"> <td class="main" valign="top">.

tep_image(DIR_WS_IMAGES . 'default/1.gif') . </td>

<br> <br> 'Shipping and Handling charges within

United States are a flat fee of $8.95. All packages

will be shipped USPS Priority Mail. Delivery of a

package can range from 2 to 5 days at the most. All

international shipment amounts are different. We

deliver to practically anywhere in the world. Please

check international rates at'

<a href="http://tulip-boutique.com/shipping.html"

target="_blank"> <u> 'Shipping Informaion'</u>

</a> ' site. If you prefer to receive your

purchased good at a faster rate please contact

[email protected].'<br> <br>

<nobr class="messageStackSuccess"> $language . .

FILENAME_DEFAULT . </nobr> <br> <br> <nobr

class="messageStackSuccess"> . ucfirst($language).

Define </nobr>

or <nobr class="messageStackSuccess"> </nobr>

modules.<br> <br> <br> <br> <nobr> <span

class="messageStacSuccess" target="_blank">

.</td></tr><tr> <td class="main" valign="top"> .

tep_image(DIR_WS_IMAGES . 'default/3.gif') . </td>

<td class="main" valign="top">

<b></b><br><br></td></tr><tr> <td class="main"

valign="top"> . tep_image(DIR_WS_IMAGES .

'default/4.gif') . </td> <td class="main"

valign="top"> <b>

'Packaging and Gift Wrapping'</b><br><br> 'Each

jewelry item is placed in a lovely jewelry box,

specifically made for your designed piece. Optional

gift wrapping for your occastion is available. Prices

can be found at'

<a href="http://www.tulip-boutique.com/gift.html"

target="_blank"> <u>'Tulip B. Gift Wrapping'</u>

</a> 'site.'<br> <br>'For any questions please

feel free to email customer service at

[email protected]. Please check our

Frequently Asked Questions site at' <a

href="http://tulip-boutique.com/faq.html"

target="_blank"> AQ site

</u></a><u></u></a></td></tr></table><br>

<font color="#f0000"> <b> . PROJECT_VERSION .

'</b></font>.');

 

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For

%s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming

Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date

Expected');

 

if ( ($category_depth == 'products') ||

(isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have

Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER',

'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to

list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product

available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of

Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All

Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Link to comment
Share on other sites

Start from the beginning and add one line at a time, then check to see if it is working. This way, you'll know exactly what the problem is, and you'll learn code as you go.

Also, make sure that you are not using file manager to edit these files, because it won't work. Use Filezilla, or some other program to download.

 

Good luck-be patient.

Cathy

Link to comment
Share on other sites

It is your coding which is all wrong, you are breaking out of php with the apostrophe when there is no need to break out of php then you are not breaking out when you should be.

 

Add one section of yout text/code check it then add the next at the point you get the error look at your code and see if it is text html or php if text or html then there is no need to use an apostrophe only use the apostrophe for the code break if the next code is php unless it is a text word such as let's where you would escape the apostrophe with a backslash thus let\'s if text followed by html table then no apostrophe.

 

examples:

 please feel free to email
[email protected]' <table
border="0" width="100%" cellspacing="5"
cellpadding="2">

you have an apostrophe however no apostrophe is required

 please feel free to email
[email protected] <table
border="0" width="100%" cellspacing="5"
cellpadding="2">

 

here

valign="top">.
tep_image(DIR_WS_IMAGES . 'default/1.gif') . </td>

you have no apostrophe when an apostrophe is required

valign="top">' .
tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td>

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

your php code parameters are all enclosed with apostrophe's. If you need to connect pieces of code, you do it with a period (.)

 

Here is some basic php code and how to write it:

 

<?php

constant_here('parameter', 'parameter') . connected_constant('parameter2', 'parameter2');

?>

 

always end each line with a ;

 

separate parameters by commas, etc, etc.

 

If you really want to get into it deeper, I suggest buying a PHP book from amazon.com or something... that's what I did, and I have only read like 150 pages... which many can probably tell.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...