Page 1 of 1
error when checking out
Posted: Sat May 09, 2015 1:39 am
by shoresky
HI guys,
I got this message:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/05/11464805/html/
www.mydomain.com/catalog/language/chine ... coupon.php on line 6
I am using version 2.0.2.0 in linux.
The message occurs when I click on the shopping cart. Products can be put into cart.
I am using chinese language pack, when I replace the code in line 6 in the chinese file with the english one, the message still exists.
Can any guy please tell me what I should do?
Thanks for your kind help in advance.
Best wishes~
Re: error when checking out
Posted: Sat May 09, 2015 3:32 am
by OSWorX
If someone should help, you should post the ocrrect file, coupon.php not checkout.php ..
Re: error when checking out
Posted: Sat May 09, 2015 2:12 pm
by shoresky
OSWorX wrote:If someone should help, you should post the ocrrect file, coupon.php not checkout.php ..
Hi OSWorX,
Thanks for reminding. I have re-edited the uploaded file, coupon.php.
I'd like to paste the code here.
code in coupon.php in English (original):
Code: Select all
<?php
// Heading
$_['heading_title'] = 'Use Coupon Code';
// Text
$_['text_success'] = 'Success: Your coupon discount has been applied!';
// Entry
$_['entry_coupon'] = 'Enter your coupon here';
// Error
$_['error_coupon'] = 'Warning: Coupon is either invalid, expired or reached its usage limit!';
$_['error_empty'] = 'Warning: Please enter a coupon code!';
code in coupon.php in Chinese :
Code: Select all
<?php
// Heading
$_['heading_title'] = 使用折扣券';
// Text
$_['text_success'] = '您已成功使用优惠券';
// Entry
$_['entry_coupon'] = '请输入您的折扣券:';
// Error
$_['error_coupon'] = '警告:优惠券是无效,过期或达到其使用限制!';
$_['error_empty'] = '警告:请输入优惠券代码!';
Re: error when checking out
Posted: Sat May 09, 2015 3:36 pm
by OSWorX
What I thought, this here is wrong:
It should be:
See the difference?
The translation is missing the first
'
Conclusion: whenever php shows an error message, simply check the line BEFORE.
Re: error when checking out
Posted: Sat May 09, 2015 7:56 pm
by Middleman
I am also having the same problem, except I use SSL on mine - the cart always seems to go back to itself and doesn't go to the checkout or registration screen (for new customer). Tried editing my config.php files for the HTTPS but to no avail...

Re: error when checking out
Posted: Mon May 11, 2015 7:01 pm
by shoresky
OSWorX wrote:What I thought, this here is wrong:
It should be:
See the difference?
The translation is missing the first
'
Conclusion: whenever php shows an error message, simply check the line BEFORE.
Great thanks to OSWorX.
I remember I replaced the translated file with the original English one, but the problem still existed.
Maybe I forgot to clear the caching.
Anyway, it's working again.
Thanks again and best wishes~~~~~~~~~~~~~~~