TomatoCart TroubleShooting

From TomatoCart Wiki

Jump to: navigation, search

Contents

[edit] How do I display cyrillic characters in PDF when I try to print Invoice?

The default font is Times New Roman for pdf print. And it does not support other fonts like cyrillic, chinese, etc.

In order to support cyrillic, Chinese, Japanese, Korean and so on, you have to use UTF-8 font. You can change the font in the file: admin/includes/classes/toc_pdf.php, line 35.

Change the font from times to arialunicid0

define('TOC_PDF_FONT', 'times') => define('TOC_PDF_FONT', 'arialunicid0')

And if you use utf8 for pdf print then you have to increase the memory_limit to 64M.

Set the memory_limit value in the head of the file: pdf.php which is at the root folder.

@ini_set('memory_limit', '64M');

[edit] How do I set Table Rating?

The most important parameter in the Table Rate is Shipping Table.
Assuming that Table Method is weight which unit is kilogram and the currency is dollar, the expression is written as below:
25:8.50,50:5.5.0,1000:0.00.
It means

weightprice
0~25kg$8.50
26~50kg$5.50
51~1000kg$0.00

Make sure the pattern of expression must like '25:8.50,50:5.5.0'.

[edit] How do I receive email when there is a new order?

In order to send email, there are two steps:
1. go to admin=>Configuration=>Configuration=>E-mail Options
If your server is liunx OS, the E-mail transport method could be set smtp or sendmail. If your server is windows OS, you only could use smtp. When selecting sendmail, only set true for 'Send E-mails'. And when you choose smtp, you should set smtp password, smtp server, smtp server port, server username and also set true for 'Send E-mails'.

2. go to admin=>Configuration=>Configuration=>My store=>Send Extra Order Emails to
Type in the email address you would like to receive order notification.

[edit] How can I remove all error display?

For removing error display, open the file admin/includes/application_top.php, change the following codes:
if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
} else {
error_reporting(E_ALL & ~E_NOTICE);
}
for
error_reporting(0);