Jump to content
mnementh64

[Free module] PDF Invoice Plus

Recommended Posts

Hi,

 

Here is a new small free module I give to community. Very simple but was useful for me. You can use it to add custom text to all your PDF invoices and Delivery slips.

 

The text might be plain or HTML (only few tags are supported : <b></b>, <i></i>, <u></u>, <a href=""></a>.

 

Support special characters ... in fact, I hope because It's a hard topic !

 

Compatibility : Prestashop 1.2.x, 1.3.x, 1.4.x and 1.5.x

 

For Prestashop 1.5.x, module use TinyMce to design text to display. Unfortunatly, 1.5 PDF generating system (TCPDF) doesn't support many HTML tags ...

 

Of course, I am open to all your ideas !

 

V1.3 (2012-10-10) : add new attribute to set text color / Compatible Prestashop 1.5.x

V1.2 (2012-07-10) : multilingual text

V1.1 (2012-02-23) : supports <img> and <center> tags

V1.0 (2012-02-09) : 1st version

pss_pdfinvoiceplus_V1.0.zip

pss_pdfinvoiceplus_V1.1.zip

pss_pdfinvoiceplus_V1.2.zip

pss_pdfinvoiceplus_V1.3.zip

Edited by mnementh64 (see edit history)
  • Like 11

Share this post


Link to post
Share on other sites

Hi mnementh64

 

Great idea but needs work. It doesn't pick up the center tag for me also the padding between the text is too much e.g. if you enter :

 

line 1<br>

line 2<br>

line 3<br>

 

It looks 2 line breaks have been added on each line.

Share this post


Link to post
Share on other sites

Thank you ,all. Here is a new version with some new features.

It now supports <img> and <center> tags.

 

@Medhi72 : in fact, you don't need to add some <br /> tags. Only add carriage returns and they will be translated into <br /> tags when rendering PDF.

Share this post


Link to post
Share on other sites

Hi,

 

Here is a new small free module I give to community. Very simple but was useful for me. You can use it to add custom text to all your PDF invoices and Delivery slips.

 

The text might be plain or HTML (only few tags are supported : <b></b>, <i></i>, <u></u>, <a href=""></a>.

 

Support special characters ... in fact, I hope because It's a hard topic !

 

Compatibility : Prestashop 1.2.x, 1.3.x et 1.4.x.

 

Of course, I am open to all your ideas !

 

V1.0 (2012-02-09) : 1st version

V1.1 (2012-02-23) : supports <img> and <center> tags

 

Thanks for great module

maybe you got solution how modify seller and buyer columns?

 

Seller Buyer

comp name name lastname

address address

etc etc

 

thanks for answer

Share this post


Link to post
Share on other sites

Hi,

 

Here is a new small free module I give to community. Very simple but was useful for me. You can use it to add custom text to all your PDF invoices and Delivery slips.

 

The text might be plain or HTML (only few tags are supported : <b></b>, <i></i>, <u></u>, <a href=""></a>.

 

Support special characters ... in fact, I hope because It's a hard topic !

 

Compatibility : Prestashop 1.2.x, 1.3.x et 1.4.x.

 

Of course, I am open to all your ideas !

 

V1.0 (2012-02-09) : 1st version

V1.1 (2012-02-23) : supports <img> and <center> tags

 

Thanks for great module

maybe you got solution how modify seller and buyer columns?

 

Seller ||||| Buyer

comp name ||||| name lastname

address ||||| address

etc ||||| etc

 

thanks for answer

 

sorry for duplicate

post-338741-0-26081900-1333917265_thumb.png

Share this post


Link to post
Share on other sites

Thank you buhajus,

 

Unfortunatly, I think it's not possible to modify invoices headers using hooks. To do that, you have hard work : override the PDF.php core class.

Share this post


Link to post
Share on other sites

Here is a new version (1.2) to allow you to set a different text for each language of your shop. If you have already installed a previous version of the module, it will be kept with the new version.

Share this post


Link to post
Share on other sites

thanks for free module, it works, but unable to show special characters like č, ň, ...

Share this post


Link to post
Share on other sites

Here is a new version compatible Prestashop 1.5.x. But unfortunatly, the TCPDF PDF generating system doesn't support many HTML tags. So, using Tiny MCE to create text, you may have to check if it is well accepted by TCPF or not ...

 

For previous version, I added a new attribute style="color:#ff66ee;" accepted by block tags (center, left and right).

 

Thank you for your feedback !

  • Like 1

Share this post


Link to post
Share on other sites

Hi, I was trying to type Thai language on this module v1.3 on 1.4.8.2, but it did not show on the invoice. Well, I am looking forward any answer for anybody who know how to fix this problem. Thank you :_)

Share this post


Link to post
Share on other sites

Characters are not working.(ŠŽČ)

please help,

 

great module, thanks

you can use special characters when you write text directly in the module, try:

ČčĎďĚě

ŇňŘřŠš

ŤťŮůŽž

áÁýÝíÍ

éÉúÚ

 

because I assume that you Czech (me too), look at this pages:

http://www.jakpsatwe...elne-vypis.html

http://www.jakpsatwe....html#specialni

 

thanks mnementh64 for cool module :D

Edited by alda81 (see edit history)

Share this post


Link to post
Share on other sites

Thanks for the great module.

 

I'm getting a error:

 

Deprecated: Function ereg_replace() is deprecated in xxxx/xxx/public_html/modules/pss_pdfinvoiceplus/pss_pdfinvoiceplus.php on line 396

 

 

in line 396 is:

$value = ereg_replace( "<br />", "\r\n", html_entity_decode($value, ENT_QUOTES, 'utf-8'));

 

running with apache/2, PHP version: 5.4.11 MySQL version: 5.5.3

 

Someone got the fix?

 

Thnx.

Share this post


Link to post
Share on other sites

Не работает на PS 1.5.3. Не генерируется pdf =(

Share this post


Link to post
Share on other sites

Does not work on PS 1.5.3. Not generated pdf = (

Share this post


Link to post
Share on other sites

With Prestashop 1.5.x, the translation of HTML code to PDF is quite hasardeous ... so I advice you to begin with a very simple HTML and add some more as the PDF is still well generated and stop (and change the HTML) as soon as it crashes ... Sorry but the PDF engine of Prestashop 1.5.x is not good IMHU.

Share this post


Link to post
Share on other sites

Hi,

 

Here is a new small free module I give to community. Very simple but was useful for me. You can use it to add custom text to all your PDF invoices and Delivery slips.

 

The text might be plain or HTML (only few tags are supported : <b></b>, <i></i>, <u></u>, <a href=""></a>.

 

Support special characters ... in fact, I hope because It's a hard topic !

 

Compatibility : Prestashop 1.2.x, 1.3.x, 1.4.x and 1.5.x

 

For Prestashop 1.5.x, module use TinyMce to design text to display. Unfortunatly, 1.5 PDF generating system (TCPDF) doesn't support many HTML tags ...

 

Of course, I am open to all your ideas !

 

V1.3 (2012-10-10) : add new attribute to set text color / Compatible Prestashop 1.5.x

V1.2 (2012-07-10) : multilingual text

V1.1 (2012-02-23) : supports <img> and <center> tags

V1.0 (2012-02-09) : 1st version

Gracias

  • Like 1

Share this post


Link to post
Share on other sites

Looks very good.

 

Is it possible to show the text from the box where the customer can write a message during check out? It would be very useful if the customer has a ref. number.

 

All the best

Morten

Share this post


Link to post
Share on other sites

I have downloaded this module, but I have not test it yet.

Can anyone tell me where the HTML that we write in this module will be shown in the pdf invoice and if we can change it location.

Can someone upload a sample image?

Share this post


Link to post
Share on other sites

With this free PDF module, is it possible to add pack contents to invoice?

Share this post


Link to post
Share on other sites

Hello Everyone,

 

I want to know for this development is there any similar module available if yes then please let me know 

 

The purpose of this development is the creation of a payment module To charge our customers statement at regular intervals (1st of each month, for example).

 

In practice, orders for Specific group of customers are treated (delivery process Classic) but the bill is not generated.

X day (1st of the month, for example), Prestashop extract all

Customer orders over the previous period (1 to 31 last month)

And generates a consolidated invoice will be treated in a process

Classic payment (CB, CHQ, Bank,).

 

Description: We manage three types of customers:

 

- Individuals: direct sales with pricing in tax (incl.Taxes). Delivery is made after payment (credit card, check,Transfer)

 

- Professionals: direct sales with pricing in HT (Excl. VAT). Delivery is made after payment (credit card, check,Transfer)

 

Partners: Specific For individuals and professionals, we use the sales process

 

Classic Retailers: Shopping -> Control - > Billing - > Delivery

 

For partners, the sales process is different (not managed by Prestashop)

 

Cart -> Control - > Check the outstanding > Shipping - > Bulk billing day of x month.

 

x (day of month ) is a parameter specific to each customer type "Partner" which mode of payment by "Statement of Account”.

In practice, the "Partner" customer spends as much control he Wishes (within the limits of its authorized credit). Its controls are Automatically validated and processed and shipped. 

- If the amount outstanding is exhausted, the order wills "Waiting Validation “for manual intervention on our part .

- If the exposure is sufficient to "pay" the control,Control is enabled then switches to “Waiting for Treatment"

 

Every day at 8:00 (for example), a process Retailers scan the Customers whose payment mode is "Statement of Account" accounts and When it finds customers in settlement by “Account Statement” Configured on a billing day, it generates an invoice Summary containing all the commands in the previous period. Thus, a scan wills 01/MM/YYYY the invoice generation Including all orders last month for the customer whose ADR is "Statement of Account" with a billing date 1st of the month.

 

Concrete example:

 

ACME customer is part of the client group "Partner”. It has a Assets of € 1,000 and for this client, we decide to charge the first of Month.ACME client passes the following commands

01/09/2013 Order € 001,250

09/09/2013 Order € 002,500

09/22/2013 Order € 003,100

Outstanding this client (€ 1,000) to automatically validate these three

Commands. And these orders go directly to "Waiting status

Treatment “in order to be processed and shipped.

24/09/2013 Order € 004,200

To date , the outstanding customer is 150 € ( 1000-250-500-100 = 150) and

therefore does not validate the order of € 200. Therefore the

command is blocked with a status of " pending validation ". the

site manager decides to accept the order or not .

 

On 01/10/2013 , at 8:00 am (global module parameter ) , a process that sees

ACME customer payment method is by “Account Statement” AND

with a billing date to the first of the month , retrieves all

commands ( enabled) from 01/09/2013 to 30/09/2013 and generates an invoice

summary ( invoice type " Account Statement ") containing the list

( with details ) commands :

01/09/2013 : Call 001

Subject € 1,100

Subject € 2,150

TOTAL € 250

09/09/2013 : Call 002

Subject € 1,200

Subject € 2,100

Subject € 3,200

TOTAL € 500

Etc...

 

ACME customer will receive by email the invoice he can pay online or

By any other method of payment of your choice (check, bank transfer). The

Payment of the bill will result in the re- credit the amount outstanding.

Finally, since the customer space (prestashop front end), the client may

Access to its controls (and the delivery partner), and the first

Month, see the summary invoice (Account Statement).

 

thanks,

ganesh

Share this post


Link to post
Share on other sites

Hello is it possible to change the module in product to pdf showing the discription and the pictures in a downloadeble pdf on the product page? I know there is a payed one.

Share this post


Link to post
Share on other sites

Hi everyone :) ,

 

Is this module compatible to Prestashop 1.6 ?

 

Thank you in advance

  • Like 1

Share this post


Link to post
Share on other sites

Hi everyone :) ,

 

Is this module compatible to Prestashop 1.6 ?

 

Thank you in advance

I've just tried it and it didn't install successfully, so I guess not.

Share this post


Link to post
Share on other sites

I'm using Prsetashop 1.4 and want customer comments to be printed on the invoice.  I have installed "Prestascope : PDF Invoice Plus" and am thinking that there is some text / code that I should enter in the 'Invoice Text' box of the config.  Will be grateful for assistance !

Share this post


Link to post
Share on other sites

not working in PS 1.6

Unfortunately, the latest version is 18 months old so 1.6 compatibility is not the case.

Share this post


Link to post
Share on other sites

Hi,

 

Here is a new small free module I give to community. Very simple but was useful for me. You can use it to add custom text to all your PDF invoices and Delivery slips.

 

The text might be plain or HTML (only few tags are supported : <b></b>, <i></i>, <u></u>, <a href=""></a>.

 

Support special characters ... in fact, I hope because It's a hard topic !

 

Compatibility : Prestashop 1.2.x, 1.3.x, 1.4.x and 1.5.x

 

For Prestashop 1.5.x, module use TinyMce to design text to display. Unfortunatly, 1.5 PDF generating system (TCPDF) doesn't support many HTML tags ...

 

Of course, I am open to all your ideas !

 

V1.3 (2012-10-10) : add new attribute to set text color / Compatible Prestashop 1.5.x

V1.2 (2012-07-10) : multilingual text

V1.1 (2012-02-23) : supports <img> and <center> tags

V1.0 (2012-02-09) : 1st version

Hi

 

Does this work with prestashop 1.6x ?

Share this post


Link to post
Share on other sites

Hi,

 

Here is a new small free module I give to community. Very simple but was useful for me. You can use it to add custom text to all your PDF invoices and Delivery slips.

 

The text might be plain or HTML (only few tags are supported : <b></b>, <i></i>, <u></u>, <a href=""></a>.

 

Support special characters ... in fact, I hope because It's a hard topic !

 

Compatibility : Prestashop 1.2.x, 1.3.x, 1.4.x and 1.5.x

 

For Prestashop 1.5.x, module use TinyMce to design text to display. Unfortunatly, 1.5 PDF generating system (TCPDF) doesn't support many HTML tags ...

 

Of course, I am open to all your ideas !

 

V1.3 (2012-10-10) : add new attribute to set text color / Compatible Prestashop 1.5.x

V1.2 (2012-07-10) : multilingual text

V1.1 (2012-02-23) : supports <img> and <center> tags

V1.0 (2012-02-09) : 1st version

I need this for PS 1.6 great work hats off

Share this post


Link to post
Share on other sites

Hello.


I have problem to show the content in delivery slip. The delivery slip don't show the text.


Anyone knows something about this?


Share this post


Link to post
Share on other sites

Version 1.6.1 has rewritten invoices, again. The module needs an upgrade.

Share this post


Link to post
Share on other sites

The following module(s) could not be installed properly:

  • pss_pdfinvoiceplus :

 

Installed OK but when tried to install on 1.6.x , this error was displayed.. Hope if this module can be upgraded by someone , would be a great help to all

  • Like 1

Share this post


Link to post
Share on other sites

Hi,

 

Great module!

Can I use it to add a new page to my invoice.

On the back of the invoice I want to print a Warranty.

Is it possible?

 

Best regards,

Dan

Share this post


Link to post
Share on other sites

The following module(s) could not be installed properly:

  • pss_pdfinvoiceplus :

 

Installed OK but when tried to install on 1.6.x , this error was displayed.. Hope if this module can be upgraded by someone , would be a great help to all

 

Oh it is Version 1.6.1.2

Share this post


Link to post
Share on other sites

To install this module on newest versions of PS, edit pss_pdfinvoiceplus.php, maybe in this line:

'PRESTASCOPE_PDFINVPL_VERSION' => '1.3',
'PRESTASCOPE_PDFINVPL_TEXT' => '',

Share this post


Link to post
Share on other sites

Hi,

 

Here is a new small free module I give to community. Very simple but was useful for me. You can use it to add custom text to all your PDF invoices and Delivery slips.

 

The text might be plain or HTML (only few tags are supported : <b></b>, <i></i>, <u></u>, <a href=""></a>.

 

Support special characters ... in fact, I hope because It's a hard topic !

 

Compatibility : Prestashop 1.2.x, 1.3.x, 1.4.x and 1.5.x

 

For Prestashop 1.5.x, module use TinyMce to design text to display. Unfortunatly, 1.5 PDF generating system (TCPDF) doesn't support many HTML tags ...

 

Of course, I am open to all your ideas !

 

V1.3 (2012-10-10) : add new attribute to set text color / Compatible Prestashop 1.5.x

V1.2 (2012-07-10) : multilingual text

V1.1 (2012-02-23) : supports <img> and <center> tags

V1.0 (2012-02-09) : 1st version

Hello

I tried to install the PSS / PDF Invoice plus v1.3 module - to prestaShop 1.6 and I got everything from the PDF, please help here is the error code

 

Fatal error: Uncaught exception 'SmartyCompilerException' in /www/virtual/h/huzar/htdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /www/virtual/h/huzar/htdocs/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /www/virtual/h/huzar/htdocs/tools/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(10, '\x92') #2 /www/virtual/h/huzar/htdocs/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(10, '\x92') #3 /www/virtual/h/huzar/htdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(206): Smarty_Internal_SmartyTemplateCompiler->doCompile('{*\n* 2007-2014 ...') #4 /www/virtual/h/huzar/htdocs/tools/smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template)) #5 /www/virtual/h/huzar/htdocs/tools/sma in /www/virtual/h/huzar/htdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More