News:

Looking for documentation? Take a look on our wiki

Main Menu

Empty invoices

Started by maxdeal, June 11, 2013, 09:11:32 AM

Previous topic - Next topic

admiss

#30
Hello,


I use VirtueMart 2.0.26d with Joomla 2.5.17.
The print option works well but the Delivery note and Invoice PDF  will not display correctly.
They are almost empty...only vendor logo, Invoice date , Order Number, Order Date , Order Status, Shipment are shown.
What is interesting, some pdf documents are OK, containing all neccessary information.

In Config-Checkout
Default Order Status to create an invoice, Default Order Status to send email to shopper, Default Order Status to send email to vendor -are set to ALL.
/components/com_virtuemart/vmfiles/invoices/ - is empty
I'm looking for someone, who is prof in VM "invoicing"....and could help me to solve this urgent problem.
Please, drop me a PM, so that I can give you access to admin, ftp if neccessary.

Thank you



reinhold

Do your shipment/payment method names contain HTML code? Typically this kind of error happens when the shipping or payment method name contains invalid HTML. The TCPDF library used by VM to convert the HTML invoice to PDF is VERY picky about correct HTML and will stop processing in many cases where a browser will display the broken HTML just fine.

admiss

#32
Thanks for reply.

For checkout I (will)  use PayPal Express Checkout Pluginhttp://forum.virtuemart.net/index.php?topic=104184.0
For shipping VM shipping by weight, zip, countries.

I accept your comment about invalid HTML- s, but how is it possible, that once it works, once not? :/ If there exist some broken html-s, they are always there...

By the way, could you tell me, how/or where/in which folder could I find the answer for your question, related to shipment/payment method's (invalid) HTML codes?
Could HTML Link Validator help me?

Thank you.

reinhold

You can check the HTML code in the HTML view of the invoice.

Another possibility is that the TCPDF library cannot properly handle payment method logos. Do you have any graphics set as logo?

admiss

#34
Links:

Download successful
http://www.foodhungary.co.uk/index.php?option=com_virtuemart&view=invoice&layout=deliverynote&format=pdf&tmpl=component&virtuemart_order_id=241&order_number=98c40199&order_pass=p_965ef&create_invoice=1
http://www.foodhungary.co.uk/index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&virtuemart_order_id=241&order_number=98c40199&order_pass=p_965ef&create_invoice=1


Download failed
http://www.foodhungary.co.uk/index.php?option=com_virtuemart&view=invoice&layout=deliverynote&format=pdf&tmpl=component&virtuemart_order_id=242&order_number=ff600200&order_pass=p_9303c&create_invoice=1
http://www.foodhungary.co.uk/index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&virtuemart_order_id=242&order_number=ff600200&order_pass=p_9303c&create_invoice=1

I don't see any suspecious in case of failed download . . .

Yes
It might be worth playing with this logo thing ....yes, I have  https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckout.gif
That was the problem, definitely - I hope.

But I still don't understand, why was it once ok, once not....
Whatever, you never know when operate with freeware softwares.

Once I downloaded one "OK Invoice" and under the logo I faced the following: "Notice: Trying to get property of non-object in/var/www/clients/client186/web266/web/plugins/vmpayment/paypalexpresscheckoutssc/paypalexpresscheckoutssc.php on line 313"


You are the best :) really thank you for your help.
I was spent a lot of time to explore the reason of this annoying problem.



Milbo

It has not really something todo with free software. You just used the gif, which is not supported by tcpdf. ahh okey and the reason is maybe, because it is opensource. GIF is patented and not liked in the free software world
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

admiss

Okay Milbo, but beeing a beginner, how could I know that I shouldn't spend plenty of time to find solution for eg. this problem, because gif is just not supported by tcpdf, and is not liked in the FreeWare World... :)

Milbo

uuh. Hmm, it is a very, very old story. A story of the netscape times, no google insight. It is about 20 years old. But you are right, we should add a warning. Actually if it just would get the thumbnail instead of the orginal gif, then it should work. The Thumbnailer is making always jpg, imho.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/