Page 1 of 2

Generate PDFs automatically and change PDF content

Posted: 21 Mar 2011, 12:11
by DREK
Hello everyone,

I've installed PhocaPDF but I'm having some troubles regarding two issues.
I'm using VirtueMart+K2 and PayPAL.

1) I would like that my clients could see their confirmation orders in their account page. However, I am able to generate the PDFs file in VirtueMart (Orders, delivery and enable the PDF invoice). However, I want that this step should be done automatically. I mean, the client buys the product, receives a confirmation order link, click on it, and when it will go to the account page, it will find the PDFs already generated.

2) Is it possible to change the PDF Invoice content? I mean, I'm observing that the content has english content (billing address and etc.) but I want to change it to other language.

I've searched the whole forum but I couldn't find answers to these questions.

Thanks for ANY help...

Re: Generate PDFs automatically and change PDF content

Posted: 23 Mar 2011, 13:08
by DREK
Someone? ANY help would be appreciated. :(

Re: Generate PDFs automatically and change PDF content

Posted: 25 Mar 2011, 15:37
by Jan
Hi,
Someone? ANY help would be appreciated.
Please follow the forum rules: Someone? forum-rules.php (1)

If you are using this:
https://www.phoca.cz/documents/18-virtue ... eipt-addon

1) I think this needs to be customized, like similar other customizations in the article

2) the invoice has a template (in html) and this can be changed, the strings can be translated standard way like all plugins in Joomla! are translated.
Invoice template: plugins\phocapdf\virtuemart\tmpl.invoice.php

Jan

Re: Generate PDFs automatically and change PDF content

Posted: 26 Mar 2011, 01:16
by DREK
Thanks Jan.

Regarding the first question, I didn't get how to do it automatically. I just want that the delivery note or the receipt will be automatically created in account details of users.

But thanks, I would like to hear some of you...

Re: Generate PDFs automatically and change PDF content

Posted: 19 Apr 2011, 16:28
by mihail-bg
Hi Jan,
I want to change fields b_address_1 , b_address_2 in tmpl.invoice.php additional invoice.
In which file to find the query to the database?

Re: Generate PDFs automatically and change PDF content

Posted: 21 Apr 2011, 18:20
by Jan
Hi, not on my PC now, so don't know the exact place, but all sql queries are stored in the helper of the Phoca PDF VirtueMart plugin.

Jan

Re: Generate PDFs automatically and change PDF content

Posted: 06 Jun 2011, 07:53
by degoist
Hi,

I have the same question - how to make automatic generation of ivoice possible.
I would like to skip step with "new delivery" creation (including ticking "create invoice" box).

Iwould apreciate very much if you help to resolve the issue!

Otherwise, you make great applications, Jan! Thank you! :twisted:

Re: Generate PDFs automatically and change PDF content

Posted: 06 Jun 2011, 23:28
by Jan
Hi, see:
https://www.phoca.cz/documents/18-virtue ... eipt-addon ... there is a guide how to create the invoice after changing the status.

Re: Generate PDFs automatically and change PDF content

Posted: 07 Jun 2011, 08:14
by degoist
Jan wrote:Hi, see:
https://www.phoca.cz/documents/18-virtue ... eipt-addon ... there is a guide how to create the invoice after changing the status.
Hi!

The question was How to automatize creation of invoice after the order is made?
Any hints?

Re: Generate PDFs automatically and change PDF content

Posted: 07 Jun 2011, 23:59
by Jan
Hi,
The question was How to automatize creation of invoice after the order is made?
no idea, I didn't do such customization yet and didn't find any such request yet. Normally, before creating invoice (which is important document), the ordering must be checked (if all items are available, if there were no mistake, etc.)

But of course can be customized in the code, but I didn't do such customization, so cannot give any advices :-(