Jump to content
tuk66

[MODULE] M4 PDF Extensions

Recommended Posts

And, as we dont need the tax- breakdown, is this all adjustable?

Share this post


Link to post
Share on other sites

And, as we dont need the tax- breakdown, is this all adjustable?

All invoice templates included in the module print the VAT breakdown only if the shop is VAT registered (if use tax). There is no need to adapt templates for VAT/no-VAT settings.

 

... can I also, with this, adapt things like order confirmation etc. with?

You can replace all PDFs created in a shop, sended as the email attachment as well. If you mean this "order confirmation".

Share this post


Link to post
Share on other sites

No. What I mean, I see now VAT for transport, low and high VAT etc, giving multiple VAT rows. As we only have 1 VAT rate that applies for our orders, I only need to see 1 row .

Share this post


Link to post
Share on other sites

It is perfectly adjustable. If you want, I will do this small improvement for free (if you will buy the module at www.presta-addons.com only).

Edited by tuk66 (see edit history)

Share this post


Link to post
Share on other sites

Yeah, will buy it later today, need it anyway for the invoices:)

Share this post


Link to post
Share on other sites

installed it, but really wondering about this tool. First of all; the manual doesnt really explain much. Stuff about HTML, of wich I had asumed I dont need to know, that the functionality would be more drag and drop. Also, the example templates, no clue where to find them, atleast its nowhere told. Hopefully this isnt gonna be an expensive dissapointment!

Edited by muish002 (see edit history)

Share this post


Link to post
Share on other sites

The example templates are basically all templates included in /m4pdf/tpl directory - currently 70 files. If you want to edit existing template, or better to create a copy and than edit it, you can use any text editor as the templates are HTML/CSS/Smarty files - I like PsPad.

 

If you just want to edit the VAT breakdown or other final rows on the invoice, please send me a PM or message from www.presta-addons.com with exact requirements (image or screen shot would be better) and I will create the improved template for you, as I wrote earlier.

Share this post


Link to post
Share on other sites

thanks! I will work myself trough all the templates to see what is a good start, and when I finally decided what needs to happen with that VAT breakdown (or other things) I will contact you.

Share this post


Link to post
Share on other sites

Trying to understand this, but as there is no real manual (e.g. how to have the documents automatically send the invoice selected by mail on status change, where can I view the templates (as output!!), and so on. And my english is pretty well (as I am dutch) but really, this is a complete user-unfriendly thing for people who are no programmers. I asumed this would be a drag-and drop or WYSIWYG editor like, but I cant even view the templates!

I am now more or less clueless how I can try out the templates that come with this module . Same with deliver note, really no idea where to adapt that. Really dissapointed! It should be noted that proper HTML?CCSS (whatever!) knowledge is needed.

It would atleast help to have explained what part is ment to send/make the selected invoice on status change. And, where I can view the templates as outputted.

also, where I can set up the delivery note.

Edited by muish002 (see edit history)

Share this post


Link to post
Share on other sites

An explanation how to add templates would also be good.

I will explain installation as well as using of the module in several videos. I think it is much better than to write a long guide.

 

You need to know something about HTML/CSS/Smarty to create/edit templates so it means you are a programmer. No need for deep knowledge. It is assumed you know something about FTP too.

 

There are basically 3 ways to use this module:

 

1) As is

Just use built-in templates (almost 70 templates at the moment)

 

2) You are a programmer (at least junior)

You can create/edit/adapt templates in some UTF-8 capable text editor (Notepad++ or PsPad for example). The best way is to install a local shop and work locally. With debug settings in administration enabled it is quick solution. You can send the changed file to the server through FTP as well (slower).

 

3) You can hire a specialist

Third way.

Share this post


Link to post
Share on other sites

Yes. I see that now. But in this topic , your answers and in the adds for this module its all "very simple"etc, asuming its easy functionality as mensioned. If I need to hire a programmer, I could as well let de original templates be adapted. So for now, as, I tried to make some modifications what gave me an error right away, and the templates are not 100% what I need, its.. well. The templates are ofcourse better then what comes with prestashop, but its not what I 100% want/need, same with deliver note. So can as well say, 50% waste of money. Better add to your adds that programming knowladge is needed!!

 

I hope the video manuals will be there asap as I am suppose to go live with this webshop witin 3 weeks.

 

Is there btw a way to immediatly see the changes one makes, and/or immediatly see what the output is of the templates? Now I have to make an order, have the invoice, etc. Takes me ages only to see what the templates are, and then the same for trying to adapt them!

Edited by muish002 (see edit history)

Share this post


Link to post
Share on other sites

I don't understand what you need.

 

If you just need to edit the VAT breakdown as you wrote earlier, I will do this small improvement for you for free (as I wrote).

 

If you need to create more templates from the beginning you have to know something about HTML/CSS/Smarty. It is perfectly obvious from the description of the module and this topic.

 

I suggest that if you have a little time, send me an accurate description of what you need in PM and we will see.

 

P.S. Enable Debug mode in the module administration to clear cache before creating every PDF to view even small changes in template code.

Share this post


Link to post
Share on other sites

Hi, I suppose that was before I bought this and thought I would be able to make most layout changes myself. The things I need are not shocking (more leave out some fields, and/or some extra space) and indeed, eventually the VAT change. I will dig into this and get back to you end of this week.

Share this post


Link to post
Share on other sites

Dear Sir,

 

They are a bug with prestashop 1.5.3.1 with VAT ,please can help us

 

regards,

nicolas

Share this post


Link to post
Share on other sites

Any news? Do you have installed the last version of the module? Can you explain your issue on an example or screen shoot?

Share this post


Link to post
Share on other sites

Hi,

Very Nice Module!

 

Sorry for my bad english,

 

we would like to include a customers message on the invoice.

What is the variable? is this possible?

 

Thank you very much,

Share this post


Link to post
Share on other sites

Yes, one of the templates has this included, its the one I am using now.

Share this post


Link to post
Share on other sites

Can this be used to create a single PDF document per product? and ideally make that PDF document availabel on the front website for customers to download - basically a data sheet for customers?

Share this post


Link to post
Share on other sites

there are catalogues, but not sure if thats meeting your requirment. Check out the demo's that are available?

Share this post


Link to post
Share on other sites

there are catalogues, but not sure if thats meeting your requirment. Check out the demo's that are available?

 

Thanks, yes I can get the catalogues but can;t get it to make a separate document per item

Share this post


Link to post
Share on other sites

Hi Mr M4 PDF

 

I am using Prestashop Version 1.5.3.1

 

I have recently purchased this product and tried to contact you a few times via email with no answer.

 

So I thought I would post on here my questions I need your guidance with.

 

I purchased with the need to use the catalogue feature and adjust the invoices easily and use shipping addresses.

 

I have no skills in CSS except trial and error.

 

I have noticed the Catalogue option does not print with Taxes included Retail Price just base price. (very nice feature just missing the retail price including tax)

 

I have noticed the only Address format that uses the prestashop Countries Address format is 1 the invoice template, only 1 of the 70 templates and I would have to modify all other 69 like shipping address etc to obtain this feature to display address format correctly. (which I can do and have done via trial and error but should be standard on all templates)

 

I have noticed the order numbers are based on the old number version not the current letter format. (nice for some people but that upsets the bank wire option so extra work). You could have 1.5.3.1 template Version for everyone wanting this off the shelf install without changing things to suit current Prestashop Version that would include both or options in BO.

 

The Invoice date is not shown for country format. (Like Australia or others)

 

Would be nice to have an Australian Tax Invoice Template which is required by law in Australia if your store is in Australia.

 

Any Help appreciated.

 

Product does have some very nice features just unusable for my needs as is.

 

Thanks

Edited by markaussie (see edit history)

Share this post


Link to post
Share on other sites

Thanks, yes I can get the catalogues but can;t get it to make a separate document per item

The last version of the module has a new catalogue template with one product on page.

Share this post


Link to post
Share on other sites

Can this be used to create a single PDF document per product? and ideally make that PDF document availabel on the front website for customers to download - basically a data sheet for customers?

Yes, you can create a single PDF catalog page but only for download in BackOffice at the moment.

 

Is it an important feature for you to download PDFs from FrontOffice (product and category pages)?

Share this post


Link to post
Share on other sites

I have recently purchased this product and tried to contact you a few times via email with no answer.

Sorry for the delay. I was out of office last week.

 

I have no skills in CSS except trial and error.

No problem. There is no magic in templates and all built-in templates serve as examples. If you need I can offer creating of templates as well. Small improvements for free.

 

I have noticed the Catalogue option does not print with Taxes included Retail Price just base price. (very nice feature just missing the retail price including tax)

Data for catalogue contains the base price, all reductions, tax rates, combination and specific prices so you can create a catalogue according to your needs.

 

 

I have noticed the only Address format that uses the prestashop Countries Address format is 1 the invoice template, only 1 of the 70 templates and I would have to modify all other 69 like shipping address etc to obtain this feature to display address format correctly. (which I can do and have done via trial and error but should be standard on all templates)

There are two address formats in data. One old (seek for address_delivery in templates) and one new (seek for formatted_address_delivery). Currently 10 templates use a switch when the newest format is used if exists, m4_invoice.tpl included for example.

 

I have noticed the order numbers are based on the old number version not the current letter format. (nice for some people but that upsets the bank wire option so extra work). You could have 1.5.3.1 template Version for everyone wanting this off the shelf install without changing things to suit current Prestashop Version that would include both or options in BO.

There are both numbers available in v1.5. Use id_order for old number format and reference for the new letter format.

 

The Invoice date is not shown for country format. (Like Australia or others)

There is dateFormatLanguage Smarty tag for automated formatting of dates. The other solution with a format obtained from BackOffice settings will be available in the next version of the module.

 

 

Would be nice to have an Australian Tax Invoice Template which is required by law in Australia if your store is in Australia.

No problem. Send me your requested layout.

Share this post


Link to post
Share on other sites

Thanks for reply

 

I ended up modifying the standard PDF forms that comes with prestashop as I found it easier for me and added all things I needed like repositioning everything adding order number, reference number, cart id, order date and time and did same formats for return, order-slip etc. Included all the necessary Australian tax requirements as well.

 

So thanks to your module as a reference and also to

supremacy2k for his guide on the forum Modifying Prestashop 1.5 Invoice template

Ended learning alot.

 

So I would only need and use the catalogue feature.

 

Could you please explain how I would create a catalogue with the Tax included price only as it only shows the base price in the created PDF.

 

Data for catalogue contains the base price, all reductions, tax rates, combination and specific prices so you can create a catalogue according to your needs.

 

Regards

Mark

Share this post


Link to post
Share on other sites

Yes, you can create a single PDF catalog page but only for download in BackOffice at the moment.

 

Is it an important feature for you to download PDFs from FrontOffice (product and category pages)?

 

Well it was wishfull thinking really, but it would be nice. An ideal would be a "PDF" button on each product page where a customer could download the product details - I don;t want to have to create over a 1000 document sin the back office first

Share this post


Link to post
Share on other sites

OK. I will prepare a "PDF button" for product page.

  • Like 1

Share this post


Link to post
Share on other sites

Could you please explain how I would create a catalogue with the Tax included price only as it only shows the base price in the created PDF.

Hi Mark,

 

try to use this code in a catalog template:

 


{displayPrice price=$product[products].price+$product[products].price*$product[products].default_country_tax.rate/100 currency=$conf.currency_current}

  • Like 1

Share this post


Link to post
Share on other sites

Hi, how are you , purchased the module some weeks ago, works great, but I think I can use it much more with othe options

 

1- How can I include "Default Category" in the Product.tpl report,

2 - Can this report be included on the "extra PDF" so it can be downloaded from the front office ?

3- it is possible to update the Product.tpl report with a cron job ? so the downloaded file is always updated?

Share this post


Link to post
Share on other sites
1- How can I include "Default Category" in the Product.tpl report

Catalog with default categories alias m4_catalog_category.tpl template displays "default category". Use

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

inside {section name=products loop=$product}{/section} loop

 

2 - Can this report be included on the "extra PDF" so it can be downloaded from the front office ?

No, it is not possible. "Extra PDF" is available in the customer's account and the only available data is about the customer and her address.

 

3- it is possible to update the Product.tpl report with a cron job ? so the downloaded file is always updated?

A user must be logged to BackOffice to download PDF catalog as well as invoice. It is not possible to get a PDF from shop through cron or other other way (curl for example).

Share this post


Link to post
Share on other sites

Hi Tuk,

 

I just realised, I posted this in my original "Shipping Labels" thread and it would probably be read sooner in this thread.

 

Hi Tuk,

 

OK. I've got to the stage where I've got all the data variables I need for the labels and have made a start on costructing the layout of the labels. However, I have hit a snag with the formatting due to the necessary font not being installed in the module (in the previous setup, it was just an HTML page, so it used the fonts on the PC). I need to use a narrow font due to the amount of text required on the labels (the font used is PT Utah Condensed). Can you walk me through installing this font into M4 Module please?

 

Thanks,

Steve

 

PS. I also emailed you about this.

Share this post


Link to post
Share on other sites

Hi,

 

I bought this module about 2 months ago. For my site denkspellenparadijs.nl I needed two different templates. One for the invoice and one for the delivery slibs. The first template is a 'blank' one. This one I print on my letterhead and is send with the order. The second one is one with a full layout. This layout had to be the same as my letterhead. This one is automatically send after an order is placed.

 

Since I'm not a coder/developer I could not create these templates myself.

Vladimir created both templates for me. He charged me a very reasonable price for his service.

All in all I can highly recommend the module as will as Vladimir for his quality of work

Edited by hyperactive007 (see edit history)

Share this post


Link to post
Share on other sites

Hi Tuk,

 

As you know, my principal reason for buying this module was to be able to produce the complex shipping labels we are required to use. I have managed to get all the data I need into the file and have more or less got the layout sorted but I really need some help with the font, as there is so much text on the label that it really requires a small condensed font (the existing setup uses Utah Condensed).

 

Some help would be really appreciated.

Regards,

Steve

Share this post


Link to post
Share on other sites

How to use own font

 

To use own font with M4 PDF Extension module you must do 3 things:

 

1) add a cell to $this->fontdata array in /modules/m4pdf/mpdf/config_fonts.php file

2) save your .ttf font file(s) to /modules/m4pdf/mpdf/ttfonts directory

3) define font in CSS style in a template

4) try the template

 

Examples:

 

1)

Name your font as utah_condensed and add bold text to /modules/m4pdf/mpdf/config_fonts.php file

 

$this->fontdata = array(

"utah_condensed" => array(

'R' => "Utah Condensed.ttf",

),

"dejavusanscondensed" => array(

'R' => "DejaVuSansCondensed.ttf",

'B' => "DejaVuSansCondensed-Bold.ttf",

'I' => "DejaVuSansCondensed-Oblique.ttf",

'BI' => "DejaVuSansCondensed-BoldOblique.ttf",

),

....

 

2)

Save Utah Condensed.ttf file to /modules/m4pdf/mpdf/ttfonts directory

 

3)

Use your font in style

 

body {

font-family: utah_condensed;

}

 

or

 

<div style="font-family: utah_condensed">

...

</div>

 

4)

Enable Debug mode in module administration to clear cache and try to print PDF. The best approach is to go in small steps and print PDF repeatedly.

Share this post


Link to post
Share on other sites

The new version of the module is available at www.presta-addons.com. All upgrades are FREE for life.

 

CHANGELOG

 

v1.6.6 (2013-03-13)

- Amounts can be displayed without the currency (Smarty function displayPriceCountry)

- Lists of customers and orders in the administration of the module have a default sort descending

- New data from the table stock_available for quantity in the catalog (PrestaShop v1.5)

- New template Products label

- Cancelled checking fsockopen function during installation (occasional false reports)

- Fixed obsolete call of several functions in PrestaShop v1.5

- Fixed all catalog templates not showing the images in some PrestaShop v1.4 versions

- Fixed printing according to the selected language in the administration of the module

  • Like 1

Share this post


Link to post
Share on other sites

The new version of the module is available at www.presta-addons.com. All upgrades are FREE for life.

 

CHANGELOG

 

v1.6.6 (2013-03-13)

- Amounts can be displayed without the currency (Smarty function displayPriceCountry)

- Lists of customers and orders in the administration of the module have a default sort descending

- New data from the table stock_available for quantity in the catalog (PrestaShop v1.5)

- New template Products label

- Cancelled checking fsockopen function during installation (occasional false reports)

- Fixed obsolete call of several functions in PrestaShop v1.5

- Fixed all catalog templates not showing the images in some PrestaShop v1.4 versions

- Fixed printing according to the selected language in the administration of the module

 

When will it be available through the site Prestashop addons ?

Share this post


Link to post
Share on other sites

After approving by PrestaShop company.

 

I suggest to download the module on www.presta-addons.com where you get free lifetime upgrades.

Share this post


Link to post
Share on other sites

The new version of the module is available at www.presta-addons.com. All upgrades are FREE for life.

 

CHANGELOG

 

v1.7.0 (2013-03-21)

- mPDF library upgraded to version 5.6.1

Read the upgrade instructions in README.TXT.

HTML5 tags supported

Arabic text (RTL) rewritten with improved support

Bug fixes

Visit http://www.mpdf1.com/mpdf/forum/ for all news

Share this post


Link to post
Share on other sites

Should anyone interested in

 

a wysiwyg editor

 

to create ​​templates in user-friendly and faster way?

  • Like 3

Share this post


Link to post
Share on other sites

The new version of the module is available at www.presta-addons.com. All upgrades are FREE for life.

 

CHANGELOG

 

v1.7.1 (2013-04-03)

- Compatible with version 1.5.4.0

- New data with the complete order history

- New tax rates "wrappingCostTaxRate" and "shippingCostTaxRate" in the tax breakdown (all templates edited)

- The tax breakdown is sorted in ascending order

- New template for the Czech invoice "Invoices CZ v1" the tax breakdown according to the last version of Czech tax act

- Improved fonts downloading

- Fixed logo on the invoice, in some cases in PrestaShop v1.5

- Fixed data for product customization

  • Like 1

Share this post


Link to post
Share on other sites

Should anyone interested in

 

a wysiwyg editor

 

to create ​​templates in user-friendly and faster way?

 

Yes, it would be awesome!

  • Like 1

Share this post


Link to post
Share on other sites

OK. I will prepare a "PDF button" for product page.

 

Did you get anywhere with this?

Share this post


Link to post
Share on other sites

This feature is scheduled to the next release (April).

  • Like 2

Share this post


Link to post
Share on other sites

This feature is scheduled to the next release (April).

 

Thanx for the great module, and for keeping it up & updated

Edited by zar136 (see edit history)

Share this post


Link to post
Share on other sites

tuk66, I will kindly ask you to answer to my questions sent to you by email

See the site in my signature and you will understand what emails I am discussing.

Share this post


Link to post
Share on other sites

What a shame. Looks like this software may have all kinds of power. Looks like it will basically convert tpl files into PDF.

 

As a bonus it fixed some tax problems I had. I'm real grateful for that.

 

I had a small problem during setup and emailed for help and received a prompt and helpful response. Points for that! :)

 

The people selling Pretashop Modules are programmers. Not marketing savvy at all. They should set standards. One of those standards would be to include a help file or online resource In the long run that would draw more users to the platform and more sales for the programmers.

 

By the time I figure out how to make use of this module, I've got to figure what my time is worth, and what is this module really costing me?

Share this post


Link to post
Share on other sites

I can not log in to the translations.

The module is not present in the menu translations.

 

I want to know if it was possible to create an invoice in English for the customer and an invoice for the Italian BO.

Share this post


Link to post
Share on other sites

The translations work for me. There is a link to Translations right at the top of the screen of M4 config. And on the left is a link to a help file. It covers translations as well. ( I did find a help file )

 

It really is a very useful module. I'm glad I bought it. It integrates mPDF into a working Prestashop, that's worth the price alone.

http://www.mpdf1.com/mpdf/

 

For complete documentation of the power available, please see,

http://mpdf1.com/manual/

Share this post


Link to post
Share on other sites

Another think: If this module is enabled, in Order -> Invoices you can not generate a pdf if the invoices.

Message is: template not found.

 

I am still waiting an answer to my emails.

Share this post


Link to post
Share on other sites

can combine two different bills in bo and fo? I wish that in bo is in English, while in fo in Italian.

Share this post


Link to post
Share on other sites

I bought this module some time ago, now testing with packs, and getting this error on the invoice;

combi Notice: Undefined index: customization in

E:\horsecomplete.nl\wwwroot\cache\smarty\compile\8f50e88b5a3737e1c4c3865027bbd62beaa78ecc.file.m4_invoice_order_HorceC.tpl.php

on line 436

anyone?

Share this post


Link to post
Share on other sites

I bought this module some time ago, now testing with packs, and getting this error on the invoice;

combi Notice: Undefined index: customization in

E:\horsecomplete.nl\wwwroot\cache\smarty\compile\8f50e88b5a3737e1c4c3865027bbd62beaa78ecc.file.m4_invoice_order_HorceC.tpl.php

on line 436

anyone?

 

Switch off displaying Notices. Or upgrade to the latest version which doesn't populate notices and warnings to the generated PDF.

Share this post


Link to post
Share on other sites

I have wrote many emails to this guy, but he does not answer to any of it.

 

The idea is that ...

Regards.

 

Sorry dear (name deleted), I am late but unfortunately I doesn't get a message about a new post in this thread. I don't know why.

 

Anyway, I have already sent you a message on Apr 11th that:

 

I am not sure if you choose the right template as this template is created according to last Czech law and tax is calculated in a special way. I think your law is different and you would choose one of standard invoice template. This is the reason why amount are not correct for your case.

 

You use a new template especially created according to the latest Czech law with different calculations. It maybe has an issue with discount (you tried amount, percent discounts as well as a voucher in one order) but it is quite new, it is the first version. So needs some polishing.

 

In any case, you should not use that template in Romania, I wrote you.

Edited by tuk66 (see edit history)

Share this post


Link to post
Share on other sites

I can not log in to the translations.

The module is not present in the menu translations.

 

I want to know if it was possible to create an invoice in English for the customer and an invoice for the Italian BO.

 

Already solved. Upgrade to PrestaShop 1.5.4.1.

Share this post


Link to post
Share on other sites

Hi,

 

Can your module add Ecotax amount below the product line?

Data is available (ecotax for every order item/detail) so yes, it is possible.

Share this post


Link to post
Share on other sites

tuk66, first of all, in the forums we use nicknames. So please delete my name from your post.

 

Second, you wrote me to use a different template, I choose another one, but with the same errors.

I have sent you many, many emails, about this issue.

 

Anyway, if I can not use it, please refund. I also, wrote you about this.

Edited by longip (see edit history)

Share this post


Link to post
Share on other sites

I bought this module some time ago, but now having problems with it when I want to start using product packs. On the output, it sais:

combi Notice: Undefined index: customization in

E:\horsecomplete.nl\wwwroot\cache\smarty\compile\8f50e88b5a3737e1c4c3865027bbd62beaa78ecc.file.m4_invoice_order_HorceC.tpl.php

on line 436

 

Please help!

Share this post


Link to post
Share on other sites

I bought this module some time ago, but now having problems with it when I want to start using product packs. On the output, it sais:

combi Notice: Undefined index: customization in

E:\horsecomplete.nl\wwwroot\cache\smarty\compile\8f50e88b5a3737e1c4c3865027bbd62beaa78ecc.file.m4_invoice_order_HorceC.tpl.php

on line 436

 

Please help!

Switch off displaying Notices. Or upgrade to the latest version which doesn't populate notices and warnings to the generated PDF.

Share this post


Link to post
Share on other sites

I have contacted TUK66 again with my problems.

 

I have detailed my issues and he will try to fix it. After the problem is solved, I will write a detailed opinion.

Edited by longip (see edit history)

Share this post


Link to post
Share on other sites

I need to add the schort description to one of the columns.. any help on this? I tried myself, but getting errors as I really have no clue what, where and why:-)

Share this post


Link to post
Share on other sites

Hello,

i have installed the modules and really love the feature. Since I'm not a pro coder, i need some help with edit/create PDF template. There are a few things i want to address.

1. Invoice + Images = doesn't display images. It only show picture with question mark

2. My website Currently have a field call Location. SQL is product_location. It is basically similar with the reference field "product_reference". I want to add a column field name location which product_location will show in this field.

 

i tried to edit the tpl "m4_invoice_image" line 285 as showed below

 

<td>{if $order[orders].order_detail[detail].product_reference != ''}{$order[orders].order_detail[detail].product_reference|escape:'htmlall':'UTF-8'}{else}---{/if}</td>

 

I added this => <td>{if $order[orders].order_detail[detail].product_location != ''}{$order[orders].order_detail[detail].product_location|escape:'htmlall':'UTF-8'}{else}---{/if}</td>

 

The result come out the location field is empty.

 

any help would be great . Thank you

Share this post


Link to post
Share on other sites

I am so glad I bought this MOD. My invoices look much more proff now and it was easy to modify with css and a little html.

 

Though I get an error when I enable the

Payment Module -

Invoice via email

I choose the same template as the PDF invoice but when order is completed (i make a test order) I just get blank screen and I get no confirmation email?

Any suggestion?

 

 

All the best

Morten

Share this post


Link to post
Share on other sites

Please help

 

I still getting error The AJAX request file isn't accessible: /modules/m4pdf/pdf.php. HTTP response code is 302. This issue can be caused by .htaccess file on your server. Contact the server administrator.

 

Where I have to look at? .htaccess has no restrictions, permission 755 on folder and 644 on file

 

Version md4f 1.7.1

prestashop is 1.5.4.1

Edited by mbegunok (see edit history)

Share this post


Link to post
Share on other sites

Anyone who know how to change the order number from a the number into the letter reference used by the prestashop invoices?

Or how to change the order reference in prestashop into the numbers used by M4PDF

Share this post


Link to post
Share on other sites

A very useful module, maybe we will offer it to our customers during development of the web sites!:)

Share this post


Link to post
Share on other sites

Hello,

i have installed the modules and really love the feature. Since I'm not a pro coder, i need some help with edit/create PDF template. There are a few things i want to address.

1. Invoice + Images = doesn't display images. It only show picture with question mark

2. My website Currently have a field call Location. SQL is product_location. It is basically similar with the reference field "product_reference". I want to add a column field name location which product_location will show in this field.

 

i tried to edit the tpl "m4_invoice_image" line 285 as showed below

 

<td>{if $order[orders].order_detail[detail].product_reference != ''}{$order[orders].order_detail[detail].product_reference|escape:'htmlall':'UTF-8'}{else}---{/if}</td>

 

I added this => <td>{if $order[orders].order_detail[detail].product_location != ''}{$order[orders].order_detail[detail].product_location|escape:'htmlall':'UTF-8'}{else}---{/if}</td>

 

The result come out the location field is empty.

 

any help would be great . Thank you

 

1. Invoice + Images

I can't say more without details (PrestaShop version, the template used, cover images must exist and so on)

 

2. product_location.

There is no product_location field in the order_detail table so using:

$order[orders].order_detail[detail].product_location

give you blank output.

 

 

I doesn't get a message about a new post in this thread so please ask for support directly on www.presta-addons.com.

Share this post


Link to post
Share on other sites

Please help

 

I still getting error The AJAX request file isn't accessible: /modules/m4pdf/pdf.php. HTTP response code is 302. This issue can be caused by .htaccess file on your server. Contact the server administrator.

 

Where I have to look at? .htaccess has no restrictions, permission 755 on folder and 644 on file

 

Version md4f 1.7.1

prestashop is 1.5.4.1

 

Already answered by email. For information - this message is sometimes a false report and will be fixed in the new version of the module (available in days).

Share this post


Link to post
Share on other sites

The new version of the module is available at www.presta-addons.com. All upgrades are FREE for life.

 

CHANGELOG

 

v1.8.0 (2013-06-18)

- New feature for creating a PDF catalog page in the product detail page

- New template "Catalog page"

- Improved translation support in PrestaShop v1.5

- New data for all images of a product in catalog

- Fixed "Function cacheImage() is deprecated" warning (PrestaShop v1.5)

- Fixed "Displayed" filter in Categories data table

- Fixed page numbering for invoices generated in bulk (more templates affected)

  • Like 1

Share this post


Link to post
Share on other sites

The new version of the module is available at www.presta-addons.com. All upgrades are FREE for life.

 

CHANGELOG

 

v1.8.0 (2013-06-18)

- New feature for creating a PDF catalog page in the product detail page

- New template "Catalog page"

- Improved translation support in PrestaShop v1.5

- New data for all images of a product in catalog

- Fixed "Function cacheImage() is deprecated" warning (PrestaShop v1.5)

- Fixed "Displayed" filter in Categories data table

- Fixed page numbering for invoices generated in bulk (more templates affected)

 

Brilliant Tuk66, thanks

 

I like the pdf catalog in the front office just what we needed

 

<td width="20%">

{assign var="id_product_id_image" value="`$product[products].id_product`-`$product[products].image.id_image`"}

<img class="photo" src="{if $product[products].image.id_image}{imageLink name=$product[products].link_rewrite ids=$id_product_id_image}{else}{$conf.pdf_iso_lang}.jpg{/if}" />

</td>

 

This picks up the main product image, is it possible to pick up all the images (gallery)?

Share this post


Link to post
Share on other sites

This picks up the main product image, is it possible to pick up all the images (gallery)?

Yes, it is possible. New data of all images are available in the latest version too. Sorry I have no example yet. Try to learn from output of the Debug template.

Share this post


Link to post
Share on other sites

Yes, it is possible. New data of all images are available in the latest version too. Sorry I have no example yet. Try to learn from output of the Debug template.

Thanks, I can see from the debug template the info is there, but the programming is beyond me I am afraid. I will have to leave it as is

Share this post


Link to post
Share on other sites

There is a change to add a new template with requested behaviour to the next version of the module. Stay connected.

  • Like 1

Share this post


Link to post
Share on other sites

Is it possible to set the Invoice number to e.g. 2013100 and then it continues with 2013101....?

 

edit: already solved - sorry :)

Edited by frauam (see edit history)

Share this post


Link to post
Share on other sites

Brilliant Tuk66, thanks

 

I like the pdf catalog in the front office just what we needed

 

<td width="20%">

{assign var="id_product_id_image" value="`$product[products].id_product`-`$product[products].image.id_image`"}

<img class="photo" src="{if $product[products].image.id_image}{imageLink name=$product[products].link_rewrite ids=$id_product_id_image}{else}{$conf.pdf_iso_lang}.jpg{/if}" />

</td>

 

This picks up the main product image, is it possible to pick up all the images (gallery)?

 

Sorted, in a not very elegant way, but good enough for us for now

 

I replaced the image code with

<td width="20%">
{assign var="id_product_id_image" value="`$product[products].id_product`-`$product[products].images.0.id_image`"}
<img class="photo" src="{if $product[products].image.id_image}{imageLink name=$product[products].link_rewrite ids=$id_product_id_image}{else}{$conf.pdf_iso_lang}.jpg{/if}" />
<br />
{assign var="id_product_id_image" value="`$product[products].id_product`-`$product[products].images.1.id_image`"}
<img class="photo" src="{if $product[products].image.id_image}{imageLink name=$product[products].link_rewrite ids=$id_product_id_image}{else}{$conf.pdf_iso_lang}.jpg{/if}" />
<br />

{assign var="id_product_id_image" value="`$product[products].id_product`-`$product[products].images.2.id_image`"}
<img class="photo" src="{if $product[products].image.id_image}{imageLink name=$product[products].link_rewrite ids=$id_product_id_image}{else}{$conf.pdf_iso_lang}.jpg{/if}" />


</td>

 

This brings up the first three images. If there is no image available it gives the usual missing image red cross, but I can cope with that

 

post-246958-0-19157600-1373551879_thumb.png

Share this post


Link to post
Share on other sites

Actually the module contains these templates for "Orders with details (Invoices)" data out-of-the box:

 

* Delivery slips

* Delivery slips - dual RTL and LTR

* Delivery slips with barcode

* Delivery slips with images

* Delivery slips with the total weight

* Dobírková poukázka A

* Dobírková poukázka C

* Invoices

* Invoices - Arabic

* Invoices - Integrated label

* Invoices - Integrated label 85x54 mm

* Invoices - Japanese and Chinese

* Invoices - dual RTL and LTR

* Invoices - grouped by categories, packs itemized

* Invoices CZ v1

* Invoices or orders

* Invoices v2

* Invoices with a message from the customer

* Invoices with images

* Invoices with localized amounts

* Invoices with more columns

* Invoices with repeating header

* Labels 101x59 mm

* Labels 89x28 mm

* Labels 89x36 mm

* Labels A4 105x37 mm 16x

* Labels A4 105x48 mm 12x margin

* Labels A4 105x49 mm 12x

* Labels A4 105x49 mm UK

* Labels A4 105x74 mm 8x

* Labels A4 105x74 mm logo

* Labels A4 148x105 mm 4x

* Labels A4 297x210 mm logo

* Labels A4 63.5x38.1 mm 21x margin

* Labels A4 70x25 mm 33x margin

* Labels A4 70x37 mm 24x

* Labels A4 70x42.3 mm 21x

* Mailing labels

* Mezinárodní dobírková poukázka TFP3

* Obchodní balík

* PPL 4x etiketa A4

* PPL etiketa předtisk

* PPL seznam dobírkových balíků

* Podací arch

* Podací arch - stará verze

* Podací hárok SK A4

* Podací lístek A4 4x

* Podací lístok SK

* Postal order SK

* ~ Debug template

* ~ Test template

 

Note: non English named templates are created for special purposes in some countries

Share this post


Link to post
Share on other sites

I wanted to point out that the official website of prestashop still has not updated form.

Share this post


Link to post
Share on other sites

It's not that I can move the license on your site ?

Share this post


Link to post
Share on other sites

Hi tuk66,

 

I have been using your module for a while and have just upgraded my prestashop to 1.5.4. Now when I add an order through BO, the customer is sent an email with prestashop's invoice template, not yours. Please can you help me to fix this so that your template is attached to emails?

 

Thanks!

Share this post


Link to post
Share on other sites

I wanted to point out that the new version is not yet available on the official servers of Prestashop !

Share this post


Link to post
Share on other sites

I wanted to point out that the new version is not yet available on the official servers of Prestashop !

Please contact the PrestaShop Addons support. I uploaded the last version a month ago and get confirmed that this version is available to download.

Share this post


Link to post
Share on other sites

The new version of the module is immediately available at www.presta-addons.com. All upgrades are FREE for life.

 

CHANGELOG

 

v1.8.1 (2013-07-23)

- Fixed displaying of images in Catalog table in administration (PrestaShop v1.4.3 and newer)

- Fixed Quantity in Catalog table in administration (PrestaShop v1.5)

Share this post


Link to post
Share on other sites

Hi tuk66,

 

I have been using your module for a while and have just upgraded my prestashop to 1.5.4. Now when I add an order through BO, the customer is sent an email with prestashop's invoice template, not yours. Please can you help me to fix this so that your template is attached to emails?

 

Thanks!

Look at the "Payment Module" settings in the module administration. You have to have this feature enabled and set a template used.

Share this post


Link to post
Share on other sites

Hi tuk66,

 

Yes, I already did that from the start. And the correct invoice template is used when customers complete the checkout process, it is only when I create the order in the back office that the wrong template is used. The default prestashop invoice gets attached to 'order_conf' email template, no matter which payment module I assign when adding the order through Back office. And the prestshop invoice is nasty to edit, it does not support the variables from your template.

 

Anyone else found a solution to this problem in prestashop 1.5.4.1?

Edited by duratex (see edit history)

Share this post


Link to post
Share on other sites

Hi tuk66,

 

Yes, I already did that from the start. And the correct invoice template is used when customers complete the checkout process, it is only when I create the order in the back office that the wrong template is used. The default prestashop invoice gets attached to 'order_conf' email template, no matter which payment module I assign when adding the order through Back office. And the prestshop invoice is nasty to edit, it does not support the variables from your template.

 

Anyone else found a solution to this problem in prestashop 1.5.4.1?

Already found a solution. The /override/classes/pdf/PDF.php file was not exist probably due to failed module installation or upgrading of PrestaShop as this file is copied by PrestaShop from the same file stored under the /modules/m4pdf/override/classes/pdf directory. The solution is to copy this file from /modules/... to /override/...

Share this post


Link to post
Share on other sites

Hi TUK66

 

Why you wrote that "The new version of the module is immediately available at www.presta-addons.com. All upgrades are FREE for life"?

 

I purchuased it on Prestashop and despite infroamtion about new version still can download only v1.7.1 from my account.

 

What is the problem for it?

Share this post


Link to post
Share on other sites