Generate PDFs automatically and change PDF content

Phoca PDF - creating PDF documents in Joomla! CMS
DREK
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 21 Mar 2011, 12:05

Generate PDFs automatically and change PDF content

Post 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...
DREK
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 21 Mar 2011, 12:05

Re: Generate PDFs automatically and change PDF content

Post by DREK »

Someone? ANY help would be appreciated. :(
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Generate PDFs automatically and change PDF content

Post 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
If you find Phoca extensions useful, please support the project
DREK
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 21 Mar 2011, 12:05

Re: Generate PDFs automatically and change PDF content

Post 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...
mihail-bg
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 19 Apr 2011, 16:24

Re: Generate PDFs automatically and change PDF content

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Generate PDFs automatically and change PDF content

Post 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
If you find Phoca extensions useful, please support the project
degoist
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 05 Jun 2011, 21:17

Re: Generate PDFs automatically and change PDF content

Post 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:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Generate PDFs automatically and change PDF content

Post 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.
If you find Phoca extensions useful, please support the project
degoist
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 05 Jun 2011, 21:17

Re: Generate PDFs automatically and change PDF content

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Generate PDFs automatically and change PDF content

Post 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 :-(
If you find Phoca extensions useful, please support the project
Post Reply