Author Topic: The problem with the Virtuemart 3.0 PDF invoice (tcpdf)  (Read 234 times)

hadi.chakery

  • Beginner
  • *
  • Posts: 1
  • A beginner
The problem with the Virtuemart 3.0 PDF invoice (tcpdf)
« on: January 03, 2018, 14:36:03 pm »
hello
The problem with the Virtuemart 3.0 PDF invoice (tcpdf)
After updating Joomla to version 3.8.0 the document file has been deleted (/library/joomla/document)
and pdf invoice is displayed as follows :
_________________________________
  ??? ?????? 171022T97N0287 ????? ??? ?????? 1396-07-30 ????? ????? Same as invoice date ????? ?????  6ECC08  ????? ????? 1396-07-30 ????? ????? ?????? ??? - ????? ????? ??? ? ??? ??? ?????? 2 (Flat rate otherwise)????? ??? ??? ???? ???? ?????? ???? ?? 20,015 ?
  ??????  ??? ??
  ?? ?? ???
??? ????? ????? ????? ????? ????? ?????? ????? ???? ??
dolphi n-size -24
????? ????? ???? 24 ?????? ??? ????? ?????
10,000 ? 2 0 ? 0 ? 20,000 ?
???? ????? 0 ? 0 ? 20,000 ? ??? ?????? 2 (Flat rate otherwise)????? ??? ??? ???? 0 ? 15 ? 0 ? 0 ? ???? ?? 0 ? 0 ? 20,015 ?
????? ????? ????? ?????
1396-07-30 ?????? ??? ????? ?????
_________________________________


tcpdf version is " tcpdf_6_2_13 "
The site is Persian language.

And one more thing :

Quote
When order status updated from the backend or pdf invoice saved in safepath, controller runs a function that set the fonts again. So edit the file joomla_folder\components\com_virtuemart\controller\invoice.php

around lines 151, 152 change the font

$pdf->setHeaderFont(Array('freesans', '', 8 ));
$pdf->setFooterFont(Array('freesans', '', 10 ));

also around line 179, change also the font

$pdf->SetFont('freesans', '', 8, '', true);

There is no lines in the 'invoice.php' file.
please guide me.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3273
  • using Matomo instead of Google Analytics
Re: The problem with the Virtuemart 3.0 PDF invoice (tcpdf)
« Reply #1 on: January 03, 2018, 19:26:36 pm »
The latest VirtueMart release 3.2.12, which can be downloaded at http://dev.virtuemart.net/projects/virtuemart/files (com_virtuemart.3.2.12.9708_extract_first.zip) includes the file com_tcpdf_1.0.4.zip, which actually is a version of tcpdf 6.2.12. Perhaps you should install that one.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations