PDF Invoice plugin does not show Greek characters

  • Posts: 11
  • Thank you received: 1
11 years 4 months ago #141211

-- url of the page with the problem -- : www.breffo.gr/demo
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2
-- PHP version -- : 5.4
-- Browser(s) name and version -- : All browsers
-- Error-message(debug-mod must be tuned on) -- : N/A

Hello.

I've purchased and installed the pdf invoice attachment plugin (Hikashop plugin name : attachinvoice). The site uses/prints invoices in Greek and although the PDF is attached after the order payment confirmation, its content is not radable due to the Greek characters (shows ???). Attahced you may find a sample of it.

Does the plugin support Greek characters or not ? Any solution to that ?

Regards
Charis

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 4 months ago #141231

Hi,

I've never tried with greek letters actually. You should change the "font" option of the plugin options page and try to generate a PDF for each until you find a font which supports greek letters.

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 1
11 years 4 months ago #141487

Hi Nicolas.

Thank you for the response.

Greek characters appear with 'dejavusans' fonts. However, the footer does not take into account that font, so I added the font-family into the .footer css style of invoice.php.

I also have done a correction in the code where the totals are caclulated :

If the item prices are with taxes included, the subtotal does not include the taxes.
Therefore, I changed line 177 ( echo $currencyHelper->format($order->order_subtotal_no_vat,$order->order_currency_id); ) with the following one :

echo $currencyHelper->format($order->order_subtotal,$order->order_currency_id);

Regards

Please Log in or Create an account to join the conversation.

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 4 months ago #141507

Thank you for the feedback. We'll correct the code for the display of the subtotal.

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum