Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: parse error, unexpected T_STRING in checkout_success.php on line 20


KaiFly

Recommended Posts

Hey there,

 

i just changed some Text in that file, but now i always get an error message after confirming the order.

 

That's the error message:

 

Parse error: parse error, unexpected T_STRING in /kunden/oscommerce/includes/languages/german/checkout_success.php on line 20

 

That's the file:

 

<?php

/*

 $Id: checkout_success.php,v 1.17 2003/02/16 00:42:03 harley_vb Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/



define('NAVBAR_TITLE_1', 'Kasse');

define('NAVBAR_TITLE_2', 'Erfolg');



define('HEADING_TITLE', 'Ihr Bestellung ist ausgef?hrt worden.');



define('TEXT_SUCCESS', 'Ihre Bestellung ist eingegangen und wird bearbeitet! Die Lieferung erfolgt innerhalb von ca. 2-5 Werktagen.');

define('TEXT_NOTIFY_PRODUCTS', 'Bitte benachrichtigen Sie mich ?ber Aktuelles zu folgenden Produkten:');

define('TEXT_SEE_ORDERS', 'Sie k?nnen Ihre Bestellung(en) auf der Seite <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '"><u>'Ihr Konto'</a></u> jederzeit einsehen und sich dort auch Ihre <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '"><u>'Bestell?bersicht'</u></a> anzeigen lassen.');

define('TEXT_CONTACT_STORE_OWNER', 'Falls Sie Fragen bez?glich Ihrer Bestellung haben, wenden Sie sich an unseren <a href="' . tep_href_link(FILENAME_CONTACT_US) . '"><u>Vertrieb</u></a>.');

define('TEXT_THANKS_FOR_SHOPPING', 'Wir danken Ihnen f?r Ihren Online-Einkauf!');



define('TABLE_HEADING_DOWNLOAD_DATE', 'herunterladen m?glich bis:');

define('TABLE_HEADING_DOWNLOAD_COUNT', 'max. Anz. Downloads');

define('HEADING_DOWNLOAD', 'Artikel herunterladen:');

define('FOOTER_DOWNLOAD', 'Sie k?nnen Ihre Artikel auch sp?ter unter '%s' herunterladen');

?>

 

 

Can anyone help me?

 

 

Thx

Kai

Link to comment
Share on other sites

define('TEXT_SEE_ORDERS', 'Sie k?nnen Ihre Bestellung(en) auf der Seite <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '"><u>Ihr Konto</a></u> jederzeit einsehen und sich dort auch Ihre <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '"><u>Bestell?bersicht</u></a> anzeigen lassen.');

 

it was

define('TEXT_SEE_ORDERS', 'Sie k?nnen Ihre Bestellung(en) auf der Seite <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '"><u>'Ihr Konto'</a></u> jederzeit einsehen und sich dort auch Ihre <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '"><u>'Bestell?bersicht'</u></a> anzeigen lassen.');

 

You had some extra ' in there

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Thank you for this quick reply. But that wasn't it i think... or there was something else as well..... it came up with a new error message.

 

I have now copyied the same file from the english category and translated the Text back to german... so it is working again. yipppie :-)

 

 

Kai

Link to comment
Share on other sites

When you use text within php it is enclosed within an opening apostrophy and a closing apostrophy, so if you use an apostrophy somewhere in the middle of that then php thinks that things have come to an end. If it finds something after that apostrophy it's a parse error.

 

The way to get around this is to 'escape' apostrophies used in text with a preceeding backslash - which tells php to ignore it e.g.

 

Let's = wrong

Let\'s = right

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...