Jump to content
tuk66

[MODULE] M4 PDF Extensions

Recommended Posts

 

FEATURES

  • create an unlimited number of PDF outputs with Smarty templates
  • PDF documents for one record or for more selected records
  • fixes incorrect base and tax amounts in the breakdown of VAT in some versions of PrestaShop™
  • amounts are still calculated on the fly from orders, as in v1.4, and fixes some issues with the amounts after upgrade to v1.5 and with new orders as well
  • export of Catalog, Category, Customers, Orders, Orders with details (Invoices), Credit slips with details
  • extended range of products from multiple categories
  • optional replacement for embedded PDF documents
  • create documents and lists by using templates
  • change the look of documents with CSS style templates
  • documents can contain images, indexes, headers, footers, watermarks, bar codes
  • private order messages is available in data for templates (invoices and delivery slips)
  • there is data about pack items and all product details in templates
  • support for user-defined additional field output to the database
  • support for customized text in invoice items
  • full support for UTF-8
  • support for non-latin fonts (Arabic, Chinese, Cyrillic, Greek, Hebrew, Indic, Japanese, Korean, Thai and more)
  • support for dual LTR (English for example) and RTL (Farsi, Arabic, Hebrew or N'Ko for example) templates with automatic layout inverting
  • multi-language support for user texts in templates
  • ability to print localized amounts according to customer's country
  • printing invoices and credit slips in the language independent of the currently selected, including the customer's language
  • sample templates for easier design (currently more than 50 templates)
  • for template tuning, there is a template displaying the data transferred
  • no PrestaShop™ patching required
  • module tests server settings after installation and makes it easier to deploy
  • compatible with PrestaShop™ v1.1+
  • languages EN, ES, FA, CS, the guide also in French

 

More information on http://www.presta-addons.com/modules/3-pdf-extensions.html

 

 

New version of the PDF Extensions is available.

 

CHANGELOG

 

v1.1.1 (2011-01-12)

 

* Added customization data for templates and modified the invoice template

 

----------------------------------------------------------------------

 

Demo FO – customer not registered for VAT from the EU

http://demo.presta-addons.com

email: user111@admin.com

password: user111

 

Demo FO – customer registered for VAT

http://demo.presta-addons.com

email: user222@admin.com

password: user222

 

Demo FO – customer outside the EU

http://demo.presta-addons.com

email: user333@admin.com

password: user333

 

Demo BO – all features

http://demo.presta-addons.com/back

email: admin@admin.com

password: admin777

36689_AV6HVMcIF6e98YA6BKUL_t

Edited by tuk66 (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

New version of the PDF Extensions is available.

CHANGELOG

v1.1.2 (2011-01-18)
* Texts in templates now support some kind of inheritance. It will do a translation for new templates more easy.
Child templates are all templates with the name expanded by one or more underscores (m4_invoice.tpl -> m4_invoice_label.tpl -> m4_invoice_label_a4.tpl)
If not exists a translated text in the child template (e.g. m4_invoice_label_a4.tpl),
the translated text of the parental template will be used (e.g. m4_invoice_label.tpl or m4_invoice.tpl), and so forth.

  • Like 1

Share this post


Link to post
Share on other sites

New version of the PDF Extensions is available.

CHANGELOG

v1.1.3 (2011-01-21)
* Improved downloading required and optional libraries

v1.1.4 (2011-01-25)
* Improved all invoice templates when items with zero price occurred

v1.2.0 (2011-01-28)
* Used mPDF library version 5.0 which reads directly from .ttf TrueType font files. Generated PDF files are 15-400 times smaller.
Read the upgrade instructions in README.TXT.

Share this post


Link to post
Share on other sites

A very useful module .Well worth the price for generating shop pdf files and changing its appearance on the fly.Its Fast .

very solid had no problems ,Tuk66 will even install it for you .excellent support .highly recommended

Thanks
Ken

Share this post


Link to post
Share on other sites

Hi,

I just purchased the M4 PDF module and installed it to my prestashop 1.4.0.17

However, i get an error when trying to use the module to generate invoice. It outputs a file with only the words
"Plugin tag "1" already registered".
(See attached file)

How do i get this module to work?
Your swift reply is much appreciated.

invoice000385.pdf

Share this post


Link to post
Share on other sites

The M4 PDF Extension module (v1.2.3) is not compatible with PrestaShop 1.4. It is declared in both PrestaShop Addons and presta-addons.com sites. The work is in progress and when a new version will be out I post a message in this thread.

Forgive me for being late.

Share this post


Link to post
Share on other sites

Thanks for your speedy reply.

Can I get a refund for the module since it does not work for my version of prestashop?

Share this post


Link to post
Share on other sites

Hi Tuk66,

I have just noticed that you are the creator of 'M4 pdf extentions'.

I purchased your module through Prestashop Addons. I had an issue with the module and got no contact no support from you even though I contacted you through Prestashop Addons several times. Afterwards, when I asked a refund number of times, I was totally ignored everytime.

Since you are an active person here, I have to guess that you have not received my my messages from Prestashop Addons. If that is the case, please forgive me for my wording and understand what I have felt.

Share this post


Link to post
Share on other sites

pjbnz:
Hi, I answered all messages received from PrestaShop Addons and other. If you have an issue, please contact me by PM.

Share this post


Link to post
Share on other sites

tuk66,

Ok you read all my emails, but answered to who? I thought that you might have not genuinly received my emails from Prestashop Addons.

Whatever the answers you made to whom, it is not important now. Is it? The fact is that I did not have any support and I had been completely ignored my refund requests.

To save PM, what I want from you is a full refund.

Share this post


Link to post
Share on other sites

I do not know what happened. I do not know your name or email address. It is certain that I did not receive a request from Addons because I respond to all emails within 1 day. At all.

The problem is probably in Addons support. I waited myself three weeks for an answer and I had to ask repeatedly. If you have a problem, then not with me.

I do not know what your problem with the module, but I'm ready to fix it.

Share this post


Link to post
Share on other sites

tuk66,

I think it is your problem I mean you and Prestashop Addons, not me.

I do not want to discuss the issues with your module anymore, because after so much frustration I had to do without it. And I do not have plan to introduce pdf invoice, dilivery note and credit note any time soon. I would want a full refund.

My email is pjbnz@hotmail.com

Regards,

John

Share this post


Link to post
Share on other sites

I fully agree with your frustration. Addons support is not worthy of the name.

Share this post


Link to post
Share on other sites

I'm sorry, but PrestaShop Addons is not my service. You must contact the place you bought the module.

Share this post


Link to post
Share on other sites

Sorry to say, but.

I had purchased some modules from Prestashop Addons before you. When I had issues with the modules and contacted Prestashop Addons, the creator contacted me directly and help me solving issues pleasantly and paitiently. But, no I had not received any contact from you while I sent you emails through Prestashop Addons more than 10 times. Not a single email from you.

And now you are refusing to refund me even there must be way to do it as it is your module that is being sold here.

Now I guesss it is not the problem with Prestashop Addons. And I strongly suspect that you are not being honest and are making excuses with pointing finguers to Prestashop Addons.

It is unfortunate this has gone this far. It has been dreadful dealing with this person. I felt strong unfairness and ingnorance.

Goodbye for now


PS
I would be back soon, but for now peace.

Share this post


Link to post
Share on other sites

Sorry to say, but.

I had purchased some modules from Prestashop Addons before you. When I had issues with the modules and contacted Prestashop Addons, the creator contacted me directly and help me solving issues pleasantly and paitiently. But, no I had not received any contact from you while I sent you emails through Prestashop Addons more than 10 times. Not a single email from you.

And now you are refusing to refund me even there must be way to do it as it is your module that is being sold here.

Now I guesss it is not the problem with Prestashop Addons. And I strongly suspect that you are not being honest and are making excuses with pointing fingers to Prestashop Addons.

It is unfortunate this has gone this far. It has been dreadful dealing with this person. I felt strong unfairness and ignorance.

Goodbye for now


PS
I would be back soon, but for now peace.

Share this post


Link to post
Share on other sites

I must strongly protest. Again, PrestaShop Addons is not my service. You sent emails to Prestashop Addons, not through. I did not get emails from Addons with requests for support.

Compare experience with Addons:
* http://www.prestashop.com/forums/viewthread/102029/general_discussion/addons_dot_prestashop_dont_be_serious_dot__is_it_bogus_company_i_pay_they_dont_send_me_module_dot_
* http://www.prestashop.com/forums/viewthread/98557/general_discussion/issue_with_addons_store_and_no_response_from_support
* http://www.prestashop.com/forums/viewthread/97469/hlavn_diskuze/nen_addons_dot_prestashop_podvod

By contrast, nobody complains about my support. My support is OK and if you buy a module on my site you get full and speedy support.

Do not throw dirt on me. Please.

Share this post


Link to post
Share on other sites

The new version of the module with 1.4 compatibility will be available for about a week. I will post a reply to this forum.

Share this post


Link to post
Share on other sites

tuk66,

http://www.prestashop.com/forums/viewthread/103337/#428682

I am sure that you would understand me and the unfairness here and yet you are refusing to refund by just saying I bought it through PrestaShop Addons. I kind of understand your position but I strongly feel that you or Prestashop Addons is taking unfair advantages against Prestashop members based on this experience. Therefore, I am protesting about it in here.

  • Like 1

Share this post


Link to post
Share on other sites

Protest against what? That you bought a fully functional module and got an answer to your question? All right.

Share this post


Link to post
Share on other sites

tug66,

It did not work to my original 1.3.6.0. I dont know the original 1.3.6.0 had bugs in it, but certainly it did not work.

As I told you before I have never received a reply from you although you said you sent one reply. I was closely checking my email account as I wanted it working as soon as possible.

I sent several emails to Prestashop Addons hoping to get support from you. You initially said you never got any contact from Prestashop Addons, but you are saying you got only one contact from the Prestashop Addons, where you answered.

You got the fund from me, but why not refund it when you have issues like this?

Share this post


Link to post
Share on other sites

New version of the PDF Extensions is available.

CHANGELOG

v1.2.4 (2011-04-27)
* Compatible with version 1.4
* Added template for delivery slip with a total weight
* Customer order message is now available in data for templates (Orders with items)
* Substantial changes in data for the templates (if using your own template):
** x - removed
** + - added
** (version) - PrestaShop version where there is a change in data
**
** x order.carrier.id_tax (1.4.0.5)
** x order.carrier.tax.* (1.4.0.5)
** + order.carrier_tax_rate (1.4.0.5)
** x order.customer.dni (1.4.0.10)
** + order.address_invoice.dni (1.4.0.10)
** + order.address_delivery.dni (1.4.0.10)
** x product.id_tax (1.4.0.5)
** x product.tax.* (1.4.0.5)
** + product.default_country_tax.* (1.4.0.5)
** x product.reduction_price (1.4.0.2)
** x product.reduction_percent (1.4.0.2)
** x product.reduction_from (1.4.0.2)
** x product.reduction_to (1.4.0.2)

Share this post


Link to post
Share on other sites

New version of the PDF Extensions is available.

CHANGELOG

v1.2.5 (2011-07-12)

* Private order messages is now available in data for templates (invoices and delivery slips)
* Added default product category data in Catalog templates and BackOffice list display
* Added two catalog templates
* Improved .htaccess file in /tpl directory
* Added PHP mbstring extension support test in BackOffice
* 35 templates is available now

Share this post


Link to post
Share on other sites

I bougth the super useful extension m4pdf!

 

It is really a great extension an i could build a beautiful invoice-template for my customer using CSS and HTML.

Thanks for your great work!

 

I have only one point, which I cannot fill in in my invoice template: The customer likes to have the "location" field in an pdf Template. For generating al list of locations where to find the items in stock. Can somebody tell me, how to add this field, so that i can place it in my template?

 

Thanks for sharing your knowledge.

typoman

Share this post


Link to post
Share on other sites

New version of the PDF Extensions is available.

 

CHANGELOG

 

v1.3.0 (2011-10-12)

 

* Fixed wrong price for invoice items with amount reductions which appeared in version 1.4.0.2 and later

* Fixed mass printing from administration of invoices

* Added mass printing of credit slips

* It is possible to make a PDF in inactive language now

* New Link object for templates

* The new configuration value 'protocol_content' for templates

* The new configuration values 'logo_invoice' and 'logo' for templates

* Use 'logo_invoice' in all templates

* Improved templates to use the new file system for images

* Added 'Invoices or orders' template - make the order if there is no invoice

 

Download from http://www.presta-addons.com and enjoy 1 year free upgrades.

Share this post


Link to post
Share on other sites

New version of the PDF Extensions is available.

 

CHANGELOG

 

v1.3.1 (2011-10-17)

* Added debug HTML output in BackOffice

* Templates are not stored in cache in debug mode

* Improved text layout in BackOffice

 

v1.3.2 (2011-10-25)

* Fixed wrong dates displaying in order list in BackOffice

* Fixed wrong dates filtering in order list in BackOffice

* Added new type of template - address labels on sheet with margin

 

Download from http://www.presta-addons.com and enjoy 1 year free upgrades.

Share this post


Link to post
Share on other sites

Hello,

 

I installed the module M4pdf but I am missing the files in mpdf/ttfonts/

The directory is empty. When I say download it can't find anything

 

please help

Share this post


Link to post
Share on other sites

Hello,

 

do you mean that downloading fonts from the administration of the module don't work? Did you try it more than once?

Share this post


Link to post
Share on other sites

what I did:

FTP all files to module directory

Installed it in Prestashop 1.4.2.5

Go to Configure and I get : mPDF core fonts aren't installed

I press Download and Install - it tells me download 5 Mb and then Installation Failed

Share this post


Link to post
Share on other sites

Check if /modules/m4pdf/cache and /modules/m4pdf/mpdf/ttfonts directories are writable. Check if ZIP is installed on your server (phpinfo). If not successful, send me PM with your email. I'll send you fonts directly.

Share this post


Link to post
Share on other sites

Will this module do what I want it to do?

 

On the invoice / Delivery note PDF

 

The supplier reference number is currently printed as 1100/T316/025

 

1) I need to print it as 1100/T316/025 AND a simple barcode with the same info. The barcode is not stored anywhere, we just need it displayed (font change?)

 

2) When a customer sends a comment as part of the order it appears on the order page as a message. We need this to be printed on the delivery note

 

I have had a quick look on your website demo but can't see if this can be done

Share this post


Link to post
Share on other sites

Hello,

the module can be used in both cases. Printing a barcode is described in the "~ Test template" template. You can use this code (one example from all ones):

<td>Standard EAN-13 barcode with 'ISBN' number shown above [shown at height=0.66]</td>
<td class="barcodecell"><barcode code="978-0-9542246-0" type="ISBN" class="barcode" height="0.66" text="1" /></td>

Printing a message on delivery slips is used in the "Delivery slips with the total weight" template for example.
 

Edited by tuk66 (see edit history)

Share this post


Link to post
Share on other sites

Hi Vladimir

 

I have installed the module, and could do with a little help with the barcode

 

Everything is working as I would hope as you can see from the attachment

 

post-246958-0-34473500-1326802526_thumb.png

 

 

My only questions would be how can I reduce the width (left to right) of the barcode? I can see how to do the height, and tried adding "width = " but that did not work.

 

the code I have is

 

<td>{if $order[orders].order_detail[detail].product_reference != ''}{$order[orders].order_detail[detail].product_reference|escape:'htmlall':'UTF-8'}{else}---{/if}</br>
			<barcode code="{$order[orders].order_detail[detail].product_reference}" type="C128A" class="barcode" height="0.66" /></td>

Share this post


Link to post
Share on other sites

Hi Tuk66

 

I wonder if you (or anyone else) can help

 

I have configured the invoice to display customer messages, but sometimes, depending on payment method, presta also adds a message, and that is displayed instead of the customer message

 

Is there a way to either prevent the presta / payment module adding a message, or telling m4pdf only to display the message from the customer?

 

post-246958-0-12653800-1328973277_thumb.png

 

post-246958-0-18722700-1328973462_thumb.png

Share this post


Link to post
Share on other sites

Hi Tuk66

 

I wonder if you (or anyone else) can help

 

I have configured the invoice to display customer messages, but sometimes, depending on payment method, presta also adds a message, and that is displayed instead of the customer message

 

Is there a way to either prevent the presta / payment module adding a message, or telling m4pdf only to display the message from the customer?

 

post-246958-0-12653800-1328973277_thumb.png

 

post-246958-0-18722700-1328973462_thumb.png

 

I have never tried this module - the demo is not working, but from what you are saying it seems like all you have to do is turn off private messages, since some electronic payments will post private messages in order messages then unless you turn them you will see the private message first. Hope it helps

Share this post


Link to post
Share on other sites

I have never tried this module - the demo is not working, but from what you are saying it seems like all you have to do is turn off private messages, since some electronic payments will post private messages in order messages then unless you turn them you will see the private message first. Hope it helps

 

Thanks, I will have a look at that

Share this post


Link to post
Share on other sites

Long-awaited new version of the PDF Extensions is available. It brings many improvements. The good news is that the module fixes errors in discounts and VAT breakdown of the original invoice.

 

CHANGELOG

 

v1.4.0 (2012-04-24)

* Added invoice and delivery address object to display them correctly in template (thanks GFY)

* Added a new section to print from the administration - Categories

* Added invoice and delivery address object in the administration section of Customers

* Added template for mailing labels 105 x 48 cm with the top and bottom edge (4 mm)

* Added template for mailing labels 105 x 48 cm with an edge printable from the list of customers

* Added more templates for invoice and delivery note (e.g. with pictures)

* Added constant for templates smarty_version_3

* Added Smarty functions imageLink and productCoverImageLink

* CJK font substitution, it is now possible to display all JP, KR, CN, TW characters at once

* Removed unused data in the breakdown of VAT totalsWithoutTax totalsWithTax

* Fixed incorrect base and tax amounts in the breakdown of VAT on some version of PrestaShop

* Fixed cash on delivery voucher template C (syntax error at line 147)

* Fixed overlapping items and footer for multiple page outp

Share this post


Link to post
Share on other sites

Hi All, looking for a bit of coding help as I have NO skills here at all

 

In the .tpl file I am using for invoices i have

<td class="w40"><strong>{l s='Carrier'}</strong></td>

which prints the shipping carrier

 

And

 

<barcode code="EBAY" type="C128A" class="barcode" size=".8" />

 

Which prints a barcode

 

I would like the barcode only to print of the first 4 characters of the carrier are EBAY (which Involc who created prestabay very usefully add to the name of the carrier)

 

So, any ideas if this can be done? If it can then I can also use it to add targetted messaged. For example if the customer has come from Ebay, I can add "Use our main site next time for cheaper products")

Share this post


Link to post
Share on other sites

You can use this code snippet for displaying a barcode and some text only for EBAY carrier:

 

{eval assign="carrierFour" var=$order[orders].carrier.name|truncate:4:"":true|upper}
{if $carrierFour == 'EBAY'}
   <barcode code="{$carrierFour}" type="C128A" class="barcode" size=".8" />

   {l s='Use our main site next time for cheaper products'}
{/if}

  • Like 1

Share this post


Link to post
Share on other sites

You can use this code snippet for displaying a barcode and some text only for EBAY carrier:

 

{eval assign="carrierFour" var=$order[orders].carrier.name|truncate:4:"":true|upper}
{if $carrierFour == 'EBAY'}
<barcode code="{$carrierFour}" type="C128A" class="barcode" size=".8" />

{l s='Use our main site next time for cheaper products'}
{/if}

 

Many thanks. You are an absolute star: That works a treat - strangely though it only works in the body area, not in the footer. But that is fine by me!

Share this post


Link to post
Share on other sites

That works a treat - strangely though it only works in the body area, not in the footer.

Yes. There must be slightly different code for the footer.

 

Anyway, in the new version of the module, which will make the public in several days, are completely rewrited footers (due to print invoices in customer's language) and it will be quite easy to adapt this code for the footer.

Share this post


Link to post
Share on other sites

I have never tried this module - the demo is not working

Sorry. FrontOffice as well as BackOffice access to the demo is working again.

Share this post


Link to post
Share on other sites

The new version of the M4 PDF Extensions module is available. This is mostly improvements upgrade.

 

CHANGELOG

 

v1.4.1 (2012-05-02)

- Added Smarty function displayPriceCountry (formats amounts according to the customer's country)

- New templates Invoices with localized amounts and Credit slips with localized amounts

- Change in VAT breakdown for credit slips (amounts are negative now, templates was edited)

- Added printing orders and credit slips in the customer's language from the module administration and orders tab (changes in templates)

- Fixed obsolete constant _PS_OS_SHIPPING_

Share this post


Link to post
Share on other sites

This last update is really fantastic to an already great module.

 

If you have a multi-language shop and need pdf-invoices in the customers language the way you want it, then this is the one you need.

 

I had some back and forth with the developer and he helped me a lot and responded very quick.

Share this post


Link to post
Share on other sites

The new version of the M4 PDF Extensions module is available.

 

CHANGELOG

 

v1.4.2 (2012-05-09)

- Added option to save the default settings for printing in the customer's language

- Fixed Delivery slips numbering

- Removed "Call-time pass-by-reference has been deprecated" warnings

Share this post


Link to post
Share on other sites

The new version of the M4 PDF Extensions module is available.

 

CHANGELOG

 

v1.5.0 (2012-06-01)

- Used mPDF library version 5.4

Read the upgrade instructions in README.TXT.

Added support for QR codes

Improved support for right-to-left languages

Improved support for gradients and SVG images

Improved CSS support

Visit http://www.mpdf1.com/mpdf/forum/?CategoryID=12223 for all news of mPDF v5.1 to v5.4

- Texts in templates now support inheritance from core PDF translates.

- New template 'Invoices - Arabic' - use arabic fonts, order items and VAT breakdown are in right-to-left table

- Fixed the header and footer displaying if "Minify HTML" option in PrestaShop v1.4 is turned on

Share this post


Link to post
Share on other sites

Hi, and thanks for this great module! We purchased it and would like to use it to export our product catalog for print, so this is excellent.

 

I'm all new to M4PDF, but would like to know if it's possible to include product reference in the m4_catalog.tpl? We also would like to show one of our product features there, is that possible too?

 

Any help appreciated =)

Share this post


Link to post
Share on other sites

Hi, and thanks for this great module! We purchased it and would like to use it to export our product catalog for print, so this is excellent.

 

I'm all new to M4PDF, but would like to know if it's possible to include product reference in the m4_catalog.tpl? We also would like to show one of our product features there, is that possible too?

 

Any help appreciated =)

You can display product reference this way

{$product[products].reference|escape:'htmlall':'UTF-8'}

 

Thank you for your idea. I will add product features data to a new version of the module with sample template. Watch this forum.

  • Like 1

Share this post


Link to post
Share on other sites

Thanks a lot!!! :D Watching this thread - when do you think will the new version with this be out? M4PDF is worth every Euro!!! *thumbs up*

Share this post


Link to post
Share on other sites

Give me a few days. Other suggestions for improving the module are welcome.

  • Like 1

Share this post


Link to post
Share on other sites

The new version of the M4 PDF Extensions module is available.

 

CHANGELOG

 

v1.5.1 (2012-06-20)

- Added product features data in Catalog templates

- Added Catalog with attributes and features template

- Added FreeSans, FreeSerif a FreeMono (GNU FreeFont) fonts

It contains some characters missing in other fonts (for example ﷼)

Share this post


Link to post
Share on other sites

Could I get it earlier from you? I'm no registered customer at presta-addons.com but can send invoice from addons.prestashop.com to proove we bought it :) We'd like to get a catalog ready for a customer by end of next week. That would be great! Thanks!

Share this post


Link to post
Share on other sites

Could I get it earlier from you? I'm no registered customer at presta-addons.com but can send invoice from addons.prestashop.com to proove we bought it :) We'd like to get a catalog ready for a customer by end of next week. That would be great! Thanks!

No problem. Send the invoice to PM.

Share this post


Link to post
Share on other sites

The new version of the M4 PDF Extensions module is available. The biggest improvement is support for dual LTR (English for example) and RTL (Farsi, Arabic, Hebrew or N'Ko for example) templates with automatic layout inverting.

 

CHANGELOG

 

v1.5.2 (2012-06-26)

- New templates "Invoices - dual RTL and LTR" and "Delivery slips - dual RTL and LTR"

- Added Smarty constants user_rtl_lang and pdf_rtl_lang

- Added information about the language order_lang in data for templates (invoices and delivery slips)

- Smarty function displayPriceCountry now supports translation of currency symbols

- All templates now support negative vouchers

- Added test for the presence of fsockopen function

- Fixed a language selection option in the administration when the module is not activated

- Removed "Function hideCategoryPosition () is deprecated" warnings in PrestaShop v1.4.1.0 and newer

Share this post


Link to post
Share on other sites

The newest version of the module is always to download in your order.

Share this post


Link to post
Share on other sites

This module looks very interesting but I don't understand if it helps me, I am looking for a invoicing module that:

- lets me print one invoice directly from the order page in an easy way (press botton to create invoice)

- lets me send the invoice by e-mail from the order page in an easy way (press botton to create invoice)

- if the order contains more that one product, than choose what product to invoice

 

Is it possible?

Navid

Share this post


Link to post
Share on other sites

What's 'order page'? BackOffice order detail page?

 

3rd question - sorry, no order editting feature neither for PDF creation.

Share this post


Link to post
Share on other sites

Hi, I downloaded your extension. My intention was to be able to display chinese characters in printed documents. However, after installing your extension, the characters are still not displayed properly as promised in your features list. Could you help me with configuration? Thanks.

Share this post


Link to post
Share on other sites

Thanks for using the module.

 

Download CJK fonts in the module administration and than use the 'Invoices - Japanese and Chinese' template. There is used 'sun-exta' font in this template so you can learn difference between Latin templates and Chines ones.

Share this post


Link to post
Share on other sites

Hello! Interested in buying this module. Can you please clarify the following:

1) We need the invoices to be generated only in one language (English), even if the customer's or admin language is set to French. Is there any option to force the generated invoices language to English ?

2) Does this module fully replaces the original invoice generator? I mean, does all invoices will be generated automatically when the customer buys something in the shop ?

3) For example if we have invoice in English, but the customer filled his address in Russian language during the registration. Does the generated pdf will support both languages in one invoice ?

4) Works in Prestashop 1.5.0 ? Any known issues ?

Thanks!

Share this post


Link to post
Share on other sites

Hello,

1) We need the invoices to be generated only in one language (English), even if the customer's or admin language is set to French. Is there any option to force the generated invoices language to English ?

You can force to English only in BackOffice. Anyway, all templates are translated so no translation for an invoice means only English is used even for the customer.

 

2) Does this module fully replaces the original invoice generator? I mean, does all invoices will be generated automatically when the customer buys something in the shop ?

Yes, all PDF documents are automatically replaced (according to module settings).

 

3) For example if we have invoice in English, but the customer filled his address in Russian language during the registration. Does the generated pdf will support both languages in one invoice ?

Yes, the template easily combine text and customer's (product etc.) data. With right fonts all world languages at once can be displayed. It isn't the need to install special fonts for Russian.

 

4) Works in Prestashop 1.5.0 ? Any known issues ?

Not yet. The new version will be out in several days. You can always download upgrade(s) for free from presta-addons.com.

Share this post


Link to post
Share on other sites

The new version of the M4 PDF Extensions module is available. The biggest improvement is support for PrestaShop v1.5.

 

Amounts are still calculated on the fly from orders, as in v1.4, and fixes some issues with the amounts after upgrade to v1.5 and with new orders as well (for example - VAT breakdown is calculated from the unit price instead of the total one in v1.5 and amounts are imprecise for large quantities).

 

CHANGELOG

 

v1.6.0 (2012-10-25)

- Compatible with version 1.5 (the older orders are displayed equally and with the correct amounts after upgrading)

- Compatible with version 1.4.9.0 (change in the Smarty get_template_vars function)

- Added public messages to the templates - order_public_message

- Added Smarty function add_months (to add a integer to a date)

- Added specific prices to catalog

- Added Spanish and Farsi translation

- New template "Invoices with more columns"

- New template "Catalog with specific prices, filtered"

- New template "Podaci harok" (Slovak Post form)

- Two new templates for address labels

- Searching by carrier in Orders and Orders with details also (the module administration)

- Fixed Pre-Tax Total Summary amount in VAT breakdown (when more than one VAT rate at once occured)

- Fixed amount in VAT breakdown in credit slips (when multiple pieces returned)

 

More news about wrong amounts on the original invoice at http://www.prestashop.com/forums/topic/166816-pdf-invoice-in-different-prestashop-versions-wrong-amounts-updated/.

 

The module is immediately available on www.presta-addons.com.

Edited by tuk66 (see edit history)

Share this post


Link to post
Share on other sites

Hi, as I already bought some modules not supporting German special characters I ask: any problems on this? Do you have some experience on this ? Can I generate an own pdf-invoice form and attach them for ex. AUTOMATICALLY to the mail order confirmation or payament accepted , or any other mail ?

Share this post


Link to post
Share on other sites

The new version of the M4 PDF Extensions module is available at www.presta-addons.com.

 

CHANGELOG

 

v1.6.1 (2012-11-09)

- Added option to generate a PDF from the customer's account (such as membership cards)

- Added support for templates included into the master template

- New Template "Membership card" with a demonstration of included templates

- Added the default group of the customer to data (Customers)

- Added Smarty constant current_time

- Fixed displaying images in the catalog templates in some cases

- Fixed duplicated products in the catalog (only PrestaShop v1.5 with multi-shop feature)

- Fixed text translations in the templates in the administration of orders (only PrestaShop v1.5)

- Fixed deleting templates compiled in Debug mode (Windows server only and module version 1.6.0)

- Fixed graphics in category tree in the module administration (PrestaShop v1.4 and later)

Share this post


Link to post
Share on other sites

A few quick questions:

 

Is there a back office demo of this module?

 

Will it work with Prestashop v1.4.4.1?

 

When I create a 'pack' of products in Prestashop, can I set the invoice to print the contents of the pack, not just the name of the pack?

Share this post


Link to post
Share on other sites

A few quick questions:

 

Is there a back office demo of this module?

 

Will it work with Prestashop v1.4.4.1?

 

When I create a 'pack' of products in Prestashop, can I set the invoice to print the contents of the pack, not just the name of the pack?

 

There is a demo, if you look at the fist post in this thread there are details on how to access it there

  • Like 1

Share this post


Link to post
Share on other sites

Is there a back office demo of this module?

 

Will it work with Prestashop v1.4.4.1?

 

When I create a 'pack' of products in Prestashop, can I set the invoice to print the contents of the pack, not just the name of the pack?

See the module page on www.presta-addons.com with demo credentials. Demo is on v1.3 but in v1.4 work exactly the same. The module works on all versions from 1.2 to 1.5, 1.4.4.1 including.

 

'Pack' is not a part of data for templates at present. If you want to add this feature contact me.

Share this post


Link to post
Share on other sites

The new version of the M4 PDF Extensions module is available at www.presta-addons.com.

 

CHANGELOG

 

v1.6.2 (2012-11-26)

- Added Supply orders with items section (Prestashop 1.5)

- Added product data for order items

- Added data about Product location in warehouses for order items (only PrestaShop v1.5 with advanced stock management enabled)

- New template "Invoices - Integrated label 85x54 mm" with the Location column

- New template "Catalog filtered by specific prices occurrence" for separated printing of catalogs with special prices

- New template "Supply orders"

- Fixed sending of invoices by email (PrestaShop 1.5)

- Fixed DatePicker in the administration of the module (PrestaShop 1.5)

- Fixed specific prices in data of catalog

- Fixed an invoice item price when an order changed manually in BackOffice (PrestaShop v1.5)

Share this post


Link to post
Share on other sites

The new version of the M4 PDF Extensions module is available at www.presta-addons.com.

 

CHANGELOG

 

v1.6.3 (2012-12-14)

- Added packs data for Orders with details

- Added Smarty modifier sortby (allows arrays to be sorted by given field in templates)

- Patched mpdf.php library to avoid "regular expression is too large" error in rare cases (you need to replace /modules/m4pdf/mpdf/mpdf.php file)

- New template "Invoices - grouped by categories, packs itemized"

- New template "Delivery slips with barcode"

- Fixed item price in invoices when more discounts are occured at once (PrestaShop v1.5)

- Fixed displaying images in invoices (PrestaShop v1.5)

Share this post


Link to post
Share on other sites

Has the way in which the code for the invoices works changed

 

I have upgraded the module, prestashop version and some other modules so not sure what is having an effect

 

We were using this code to pick up where the order came from and display an appropriate message on the invoice, but it no longer works

 



{eval assign="carrierFour" var=$order[orders].carrier.name|truncate:4:"":true|upper}

{if $carrierFour == 'EBAY'}

<img src="http://www.graphskill.co.uk/images/amazonandebaylogo/ebay.gif" /><br />
{l s='Thank you for using Graphskill via the Ebay site - Visit our main website at www.graphskill.co.uk for a wide range of products at great prices, such as:'}<br />
       {l s='pipe supports systems, stainless steel nuts bolts screws & washers, exhaust pipe clamps, fish tape, chandlery and more.'}<br />
   <barcode code="EBAY" type="C128A" class="barcode" size=".8" /><br/>



{elseif $carrierFour == 'AMAZ'}
{l s='Thank you for using Graphskill via the Amazon site - Visit our main website at www.graphskill.co.uk for a wide range of products at great prices, such as:'}<br />
       {l s='pipe supports systems, stainless steel nuts bolts screws & washers, exhaust pipe clamps, fish tape, chandlery and more.'}<br />
   <barcode code="AMAZON" type="C128A" class="barcode" size=".8" /><br/>



{else}
{eval assign="paymentFour" var=$order[orders].payment|truncate:4:"":true|upper}
{if $paymentFour == 'AMAZ'}
<img src="http://www.graphskill.co.uk/images/amazonandebaylogo/amazon.gif" /><br />
{l s='Thank you for using Graphskill via the Amazon site - Visit our main website at www.graphskill.co.uk for a wide range of products at great prices, such as:'}<br />
       {l s='pipe supports systems, stainless steel nuts bolts screws & washers, exhaust pipe clamps, fish tape, chandlery and more.'}<br />
   <barcode code="AMAZON" type="C128A" class="barcode" size=".8" /><br/>


  {elseif $paymentFour == 'cqout'}
{l s='Thank you for using Graphskill via the CQOUT site - Visit our main website at www.graphskill.co.uk for a wide range of products at great prices, such as:'}<br />
       {l s='pipe supports systems, stainless steel nuts bolts screws & washers, exhaust pipe clamps, fish tape, chandlery and more.'}<br />
   <barcode code="CQOUT" type="C128A" class="barcode" size=".8" /><br/>

  {else}

{l s='Thank you for using Graphskill Ltd'}<br />
   <br />
   <barcode code="GRAPHSKILL" type="C128A" class="barcode" size=".8" />
{/if}

{/if}

 

All we get is the last part as though the "If's" are not working

Share this post


Link to post
Share on other sites

My sugestion is to assign both $carrierFour and $paymentFour on the top and print them before "ifs" with something like:

 

*{$carrierFour}*{$paymentFour}*

 

You will see both variables.

 

Don't forget to enable Debug mode and use the template first in module administration to clear an old cached template.

Share this post


Link to post
Share on other sites

Thanks for the response. It seems as though the truncating is not working correctly

 

For example, when $order[orders].payment = Amazon

 

{eval assign="paymentFour" var=$order[orders].payment|truncate:4:"":true|upper}

 

results in "A..." whereas previously it resulted in "AMAZ"

 

If i try the truncate to 6, then I get "AMA..."

 

So it seems as if the code is replacing the final 3 characters with "..."

Share this post


Link to post
Share on other sites

There is a bug in PrestaShop 1.5.0.13 and later in smarty.config.inc.php file. It reimplements Smarty modifier truncate but method __call can be called with 2 parameters only - so only first 2 parameters are taken in account.

 

Just comment out the line

 

smartyRegisterFunction($smarty, 'modifier', 'truncate', 'smarty_modifier_truncate');

 

and whole function

 

smarty_modifier_truncate

 

in smarty.config.inc.php.

Share this post


Link to post
Share on other sites

There is a bug in PrestaShop 1.5.0.13 and later in smarty.config.inc.php file. It reimplements Smarty modifier truncate but method __call can be called with 2 parameters only - so only first 2 parameters are taken in account.

 

Just comment out the line

 

smartyRegisterFunction($smarty, 'modifier', 'truncate', 'smarty_modifier_truncate');

 

and whole function

 

smarty_modifier_truncate

 

in smarty.config.inc.php.

 

Thanks for your help. Unfortunately commenting out any of those or both results in the backOffice not working correctly. :blink:

Share this post


Link to post
Share on other sites

Just hint, not tested - try to add another arguments to __call() function in smarty.config.inc.php

 

public function __call($name, $arguments)
{
$item = $this->registry[$name];

// case 1: call to static method - case 2 : call to static function
if (is_array($item[1]))
	return call_user_func_array($item[1].'::'.$item[0], array($arguments[0], &$arguments[1], &$arguments[2], &$arguments[3], &$arguments[4], &$arguments[5]));
else
	return call_user_func_array($item, array($arguments[0], &$arguments[1], &$arguments[2], &$arguments[3], &$arguments[4], &$arguments[5]));
}

Edited by tuk66 (see edit history)

Share this post


Link to post
Share on other sites

Just hint, not tested - try to add another arguments to __call() function in smarty.config.inc.php

 

public function __call($name, $arguments)
{
$item = $this->registry[$name];

// case 1: call to static method - case 2 : call to static function
if (is_array($item[1]))
	return call_user_func_array($item[1].'::'.$item[0], array($arguments[0], &$arguments[1], &$arguments[2], &$arguments[3], &$arguments[4], &$arguments[5]));
else
	return call_user_func_array($item, array($arguments[0], &$arguments[1], &$arguments[2], &$arguments[3], &$arguments[4], &$arguments[5]));
}

 

Many thanks for your help - it is appreciated. Although unfortunately that does not work either - nothing is returned

 

Don;t worry. now I know the cause and effect I think I can work with it. I will simply look for "A..." as the string to wok with. I should be able to work with that

Share this post


Link to post
Share on other sites

public function __call($name, $arguments)
{
   $item = $this->registry[$name];

   // case 1: call to static method - case 2 : call to static function
   if (is_array($item[1]))
    return call_user_func_array($item[1].'::'.$item[0], array($arguments[0], $arguments[1], $arguments[2], $arguments[3], $arguments[4], $arguments[5]));
   else
    return call_user_func_array($item, array($arguments[0], $arguments[1], $arguments[2], $arguments[3], $arguments[4], $arguments[5]));
}

 

together with

 

{eval assign="carrierFour" var=$order[orders].carrier.name|truncate:4:"":true:false:"UTF-8"|upper}

 

works for me. In this case. I haven't tested the whole shop when removing & before arguments[1] in the function.

Share this post


Link to post
Share on other sites