Sending invoice after payment

  • Posts: 46
  • Thank you received: 3
  • Hikashop Business
4 weeks 4 hours ago #366944

-- HikaShop version -- : 5.1.5
-- Joomla version -- : 5.3.0
-- PHP version -- : 8.1
-- Browser(s) name and version -- : Chrome

Hi.
Is this possible to sent invoice to client by mail after payment?
thank you.

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

  • Posts: 83894
  • Thank you received: 13580
  • MODERATOR
4 weeks 55 minutes ago #366945

Hi,

Yes. The PDF invoice plugin was developed for that specific purpose:
www.hikashop.com/marketplace/product/18-plugin-pdf.html

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

  • Posts: 46
  • Thank you received: 3
  • Hikashop Business
3 weeks 5 days ago #366966

Hi, Nicolas, thank you.
Small question: every invoice will it be sent to the buyer automatically or should I send it myself ?

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

  • Posts: 83894
  • Thank you received: 13580
  • MODERATOR
3 weeks 5 days ago #366969

Hi,

This plugin will automatically generate the PDF of the invoice and include it in the "order status notification" email which is automatically sent by HikaShop.
So you won't have to do it manually.

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

  • Posts: 46
  • Thank you received: 3
  • Hikashop Business
3 weeks 5 days ago #366970

thank you

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

  • Posts: 46
  • Thank you received: 3
  • Hikashop Business
3 days 3 hours ago #367315

Hi, Nicolas
I bought for your great attach PDF invoice plugin.
All is cool, I get invoices, but our site on hebrew language, and I get many???????????? in PDF.
I tried to change fonts - but it not help me.
Any solution please?
thank you.

Attachments:

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

  • Posts: 83894
  • Thank you received: 13580
  • MODERATOR
3 days 35 minutes ago #367317

Hi,

The freemono / freesans / freeserif fonts seletable in the font setting of the plugin should support hebrew from what I can read here:
github.com/tecnickcom/TCPDF/blob/main/fo...font-20100919/README
Did you try any of these ?

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

  • Posts: 46
  • Thank you received: 3
  • Hikashop Business
3 days 25 minutes ago #367326

Thank you!
Now it work perfect.
Additional question: how I can change number of Invoice? Now it H1W80.
I need for example 0001
Thank you!

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

  • Posts: 83894
  • Thank you received: 13580
  • MODERATOR
2 days 21 hours ago #367327

Hi,

You want to change the setting "order number format":
www.hikashop.com/support/documentation/5...nfig.html#main_order
For example:
{id size="5"}

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

  • Posts: 46
  • Thank you received: 3
  • Hikashop Business
2 days 5 hours ago #367346

Hi, thank you.
Additional questions:
1. it must to be RTL (how to?)
2. I need to reset number of invoice (for example now is 182 - must to reset to 001)
3. need to add name of shop

thank you for your patience

Attachments:
Last edit: 2 days 5 hours ago by designer71.

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

  • Posts: 241
  • Thank you received: 29
  • Hikashop Business
2 days 1 hour ago #367356

2. In Hikashop Configuration -> Main (tab) -> Order (section), you have this option: Invoice number reset frequency, set that for 1 day, create one order to reset it and after that change the setting back to None ;).
But maybe nicolas it will give you a better solution then mine.

3. {id size="5"} - Shop Name , set it like this Hikashop Configuration -> Main (tab) -> Order (section)

Attachments:

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

  • Posts: 83894
  • Thank you received: 13580
  • MODERATOR
2 days 5 minutes ago #367350

Hi,

1. I'm not sure. Based on github.com/spipu/html2pdf/issues/93 it seems that the HTML2PDF library used by the plugin to generate the PDF file added support for RTL in 2016.
Edit the file plugins/hikashop/attachinvoice/attachinvoice.php via FTP and before the line:

		$html2pdf->writeHTML($content);
add the code:
		$lang = JFactory::getLanguage();
		if($lang->isRTL())
			$html2pdf->pdf->setRTL(true);
This should tell the library to handle the RTL when the language of the website requires it.
Please let me know how it goes.

2. You can run the MySQL query below via your PHPMyAdmin:
UPDATE #__hikashop_order SET order_invoice_id = 0;
where #__ needs to be replaced by your tables prefix (from the Joomla configuration).
Then, the next order with an invoice will start at 00001
@oxido if you set the reset frequency to every day, the next day, the invoice number will indeed start at 1 again. However, if you then switch back to no reset frequency, the system will take into account the max number on all orders again and will restart where it had left at 182. So I don't think that what you recommend will work.

3. I would recommend filling the "Your logo URL" setting in the HikaShop configuration:
www.hikashop.com/support/documentation/5...onfig.html#main_main
That way, it will be added automatically to the PDF.

Last edit: 2 days 6 minutes ago by nicolas.

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

  • Posts: 46
  • Thank you received: 3
  • Hikashop Business
1 day 3 hours ago #367369

Hi, Nicolas.
1. - no changes
2. - I need to ask from my client firstly.
3. Perfect

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

  • Posts: 83894
  • Thank you received: 13580
  • MODERATOR
5 hours 42 minutes ago #367390

Hi,

1. Then I don't know.
I would need a backend and a FTP access to the website in order to check the situation and see if there is something that can be done for this. Could you provide this via our contact form ?
www.hikashop.com/support/contact-us.html

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

Time to create page: 0.102 seconds
Powered by Kunena Forum