Zen Cart Logo
Forums / General Questions / unexpected T_CONSTANT_ENCAPSED_STRING

unexpected T_CONSTANT_ENCAPSED_STRING

Locked

Views: 1,540

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
6 Feb 2007, 5:49 AM
#1
kruna avatar

kruna

Zen Follower

Join Date:
Sep 2006
Posts:
405
Plugin Contributions:
0

unexpected T_CONSTANT_ENCAPSED_STRING

Hi All,

keep getting the following error:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/clickysh/public_html/tienda1/includes/languages/spanish/create_account.php on line 75

In the forum I searched and found out thatthis is supposed to mean like I would have edited something wrong...may forgot a comma or else...but I cant find the problem.

Also tried to replace english/create_account (which was working fine when replaced) and then translate it, but didnt let me make any changes...

I would like to display the file, maybe anyone has an idea, but dont know how to do that, I am not very familiar with ZC.

Thanks in advance.

Regards,
Kruna

6 Feb 2007, 5:54 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: unexpected T_CONSTANT_ENCAPSED_STRING

can you post that file here

6 Feb 2007, 5:56 AM
#3
kruna avatar

kruna

Zen Follower

Join Date:
Sep 2006
Posts:
405
Plugin Contributions:
0

Re: unexpected T_CONSTANT_ENCAPSED_STRING

Hi Merlin, thank you very much for help.

sure...just dont know how?

can I just copy/past?

Thank you,
Kruna

6 Feb 2007, 6:01 AM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: unexpected T_CONSTANT_ENCAPSED_STRING

yepp
copy and paset

hit the <> button first then put it between the code tags

6 Feb 2007, 2:20 PM
#5
kruna avatar

kruna

Zen Follower

Join Date:
Sep 2006
Posts:
405
Plugin Contributions:
0

Re: unexpected T_CONSTANT_ENCAPSED_STRING

Hi Merlin,

ok...here we go:

<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: create_account.php 3027 2006-02-13 17:15:51Z drbyte $
 */
 
define('NAVBAR_TITLE', 'Crear una cuenta');
 
define('HEADING_TITLE', 'Información sobre su cuenta');
 
define('TEXT_ORIGIN_LOGIN', '<strong class="note">NOTA:</strong> Si usted ya dispone de una cuenta con nosotros, por favor ingrese a la <a href="%s">página de entrar</a>.');
 
// greeting salutation
define('EMAIL_SUBJECT', 'Bienvenido a ' . STORE_NAME);
define('EMAIL_GREET_MR', 'Estimado Sr. %s,' . "\n\n");
define('EMAIL_GREET_MS', 'Estimada Sra. %s,' . "\n\n");
define('EMAIL_GREET_NONE', 'Estimado %s' . "\n\n");
 
// First line of the greeting
define('EMAIL_WELCOME', 'Le damos la bienvenida a <strong>' . STORE_NAME . '</strong>.');
define('EMAIL_SEPARATOR', '--------------------');
define('EMAIL_COUPON_INCENTIVE_HEADER', '¡Felicitaciones! Para hacer de su próxima visita a nuestra tienda online una experiencia más gratificante, encontrará a continuación los detalles de un <strong>cupón de descuento</strong> creado exclusivamente para usted!' . "\n\n");
// your Discount Coupon Description will be inserted before this next define
define('EMAIL_COUPON_REDEEM', 'Para usar el cupón de descuento, ingrese el código de ' . TEXT_GV_REDEEM . ' mientras finaliza su compra:  <strong>%s</strong>' . "\n\n");
 
define('EMAIL_GV_INCENTIVE_HEADER', 'Sólo para las compras de hoy, ¡le enviamos un ' . TEXT_GV_NAME . ' por %s!' . "\n");
define('EMAIL_GV_REDEEM', 'El ' . TEXT_GV_NAME . ' ' . TEXT_GV_REDEEM . ' es: %s ' . "\n\n" . 'Puede ingresar el ' . TEXT_GV_REDEEM . ' durante la finalización de la compra, después de haber eligido productos en la tienda. ');
define('EMAIL_GV_LINK', ' O puede canjearlo ahora usando este enlace: ' . "\n");
// GV link will automatically be included before this line
 
define('EMAIL_GV_LINK_OTHER','¡Una vez que haya agregado el ' . TEXT_GV_NAME . ' a su cuenta, puede usar el ' . TEXT_GV_NAME . ' para usted mismo, o enviarselo a un amigo!' . "\n\n");
 
define('EMAIL_TEXT', 'Muchas gracias por haberse inscrito en el portal de compras<b> clickYshop.com</b>. Ya puede disfrutar de los <strong> servicios</strong> que ofrecemos::' . 
"\n\n" . '<li><strong>- Pago rápido, fácil y seguro gracias al sistema SSL y una cuenta mercante con una empresa líder en comercio electrónico internacional.'
"\n\n" . '<li><strong>- Carrito de compras permanente</strong> - Cualquier producto que agregue a su carrito de la compra online se quedarán allí almacenado hasta que los borre, o finalice la compra.' . "\n\n" . '<li><strong>- Agenda de direcciones múltiples</strong> - ¡Podemos enviar los pedidos a una dirección distinta de la suya! Esto es perfecto para enviar regalos directamente a la persona que quiere sorprender.' . "\n\n" . '<li><strong>- Historial de pedidos</strong> - Ver el historial de compras que ha realizado con nosotros.' . "\n\n" . '<li><strong>- Comentarios a productos</strong> - Comparta sus opiniones sobre los productos con los demás clientes.' . "\n\n");
define('EMAIL_CONTACT', 'Para solicitar ayuda con nuestros servicios online, por favor envíe un correo electrónico al administrador de la tienda: <a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">'. STORE_OWNER_EMAIL_ADDRESS ." </a>\n\n");
define('EMAIL_GV_CLOSURE','Atentamente,' . "\n\n" . STORE_OWNER . "\nStore Owner\n\n". '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'.HTTP_SERVER . DIR_WS_CATALOG ."</a>\n\n");
 
// email disclaimer - this disclaimer is separate from all other email disclaimers
define('EMAIL_DISCLAIMER_NEW_CUSTOMER', 'Esta dirección de correo electrónico nos la facilitó usted o uno de nuestros clientes. Si no se dió de alta en nuestra tienda, o piensa que ha recibido este correo electrónico por error, por favor escríbanos a %s ');
 
//moved definitions to english.php
//define('TABLE_HEADING_PRIVACY_CONDITIONS', 'Privacy Statement');
//define('TEXT_PRIVACY_CONDITIONS_DESCRIPTION', 'Please acknowledge you agree with our privacy statement by ticking the following box. The privacy statement can be read <a href="' . zen_href_link(FILENAME_PRIVACY, '', 'SSL') . '"><span class="pseudolink">here</span></a>.');
//define('TEXT_PRIVACY_CONDITIONS_CONFIRM', 'I have read and agreed to your privacy statement.');
//define('TABLE_HEADING_ADDRESS_DETAILS', 'Address Details');
//define('TABLE_HEADING_PHONE_FAX_DETAILS', 'Additional Contact Details');
//define('TABLE_HEADING_DATE_OF_BIRTH', 'Verify Your Age');
//define('TABLE_HEADING_LOGIN_DETAILS', 'Login Details');
//define('TABLE_HEADING_REFERRAL_DETAILS', 'Were You Referred to Us?');
?>

Thank you very much.

Regards,
Kruna

7 Feb 2007, 9:49 PM
#6
polarduality avatar

polarduality

Zen Follower

Join Date:
Mar 2006
Location:
Los Angeles
Posts:
260
Plugin Contributions:
2

Re: unexpected T_CONSTANT_ENCAPSED_STRING

kruna,

it is odd that it says on line 75 because that file only has 54 lines of code.
make sure there are no blank spaces after the closing php tag ?>

Check your e-mail. I just translated that file for you to make sure the rest of the code is exactly as it is in the english version. check if it works correctly.

8 Feb 2007, 1:12 AM
#7
kruna avatar

kruna

Zen Follower

Join Date:
Sep 2006
Posts:
405
Plugin Contributions:
0

Re: unexpected T_CONSTANT_ENCAPSED_STRING

Thank you very much...I'll do so and let you know...the thing why it may have more lines is because I added more text...and I may have also spaces where they should not be.

Thank you very much for help.

Best regards,
Kruna

8 Feb 2007, 1:13 AM
#8
kruna avatar

kruna

Zen Follower

Join Date:
Sep 2006
Posts:
405
Plugin Contributions:
0

Re: unexpected T_CONSTANT_ENCAPSED_STRING

Problem resolved....

Thank you polarduality and also thanks to you Merlin.

Regards,
Kruna