Dear all,
I have Joomla 3.9.0 (upgraded from 2.5)
VM 3.4.2 (upgraded from vm2)
The upgrade went well, exept for com_tcpdf. After installing com_tcpdf via the joomla installer a get a message that installing was succesfull. (See attached printscreen)
However i get the error message:
Fout
vmError: vmPdf: For the pdf, you must install the tcpdf library at /home/user204/domains/tuinboeken.com/private_html/1joomla3/libraries/tcpdf
No such a map is made after installing.
So i unpacked the zip file com_tcpdf.zip and uploaded it overthere. Still same error as above occurs. I think i miss a lot!
also the map /components/com_tcpdf is empty!
A lot is going wrong, please help? I searched the forum, but cant find the solution
Kind regards
Renata
Yes, the TCPDF "component" is empty. It has been so for at least 2 years, AFAIR, but is there so that the Joomla updater will work when a new version is released.
As for the "error" message see http://forum.virtuemart.net/index.php?topic=141174.msg496864#msg496864
This has been fixed, I thought in 3.4.2.9966 but you can now use the latest 3.4.3.9975 - http://dev.virtuemart.net/attachments/download/1147/com_virtuemart.3.4.3.9975_package_or_extract.zip
Thanks for your reply!
It is still not fixed as i still get the error when asking for a sample in VM> shop > invoices/mails.
Looking at ftp: still no map is created in libaries.
this code:
public function samplePDF() {
if(!class_exists('VmVendorPDF')){
vmError('vmPdf: For the pdf, you must install the tcpdf library at '.VMPATH_LIBS.'/tcpdf');
return 0;
}
$pdf = new VmVendorPDF();
$pdf->AddPage();
$pdf->PrintContents(vmText::_('COM_VIRTUEMART_PDF_SAMPLEPAGE'));
$pdf->Output("vminvoice_sample.pdf", 'I');
JFactory::getApplication()->close();
}
where do i change that?
kind regards
Renata
did u install again http://dev.virtuemart.net/attachments/download/1137/com_tcpdf_1.0.5.zip ?
the tcpdf is now installed @
\libraries\vendor\tecnickcom\tcpdf\
Yes i did that. I tried it again using your link.
after installing i get the message all went fine:
TCPDF 6.2.12 by Nicola Asuni. Joomla Installer by the VirtueMart Team
Cart
TcPdf moved to the joomla libraries folder
Installation Successful.
But still no map created in libaries (ftp) and still the same error message inVM
Pls advise?
Kind regards
Renata
r u checking JOOMLAROOT\libraries\vendor\tecnickcom\tcpdf\ ?
No, i did not ?
This was the error message:
Fout
vmError: vmPdf: For the pdf, you must install the tcpdf library at /home/user204/domains/tuinboeken.com/private_html/1joomla3/libraries/tcpdf
So i checked that.
Now i have checked the map you are advising and yes that one is created.
But still i got the eroor message? So it is still not working.
Enclosed please find a printscreen of the content of the map JOOMLAROOT\libraries\vendor\tecnickcom\tcpdf\
i hope to hear from you soon, thanks!
Kind regards
Renata
The file list in \libraries\vendor\tecnickcom\tcpdf\ is correct. So why is the error message still showing....
I dont kwnow. That is why i ask for your help? ;)
this code is wrong in components\com_virtuemart\controllers\invoice.php I guess it got missed when the libraries got moved etc
It is only when u use: Here you can configure the look of invoices, delivery notes etc. You can take a look at a preview page (after saving the changes) HERE.
in Shop->Invoices .. I have never used that link before ..
public function samplePDF() {
if(!class_exists('VmVendorPDF')){
vmError('vmPdf: For the pdf, you must install the tcpdf library at '.VMPATH_LIBS.'/tcpdf');
return 0;
}
$pdf = new VmVendorPDF();
$pdf->AddPage();
$pdf->PrintContents(vmText::_('COM_VIRTUEMART_PDF_SAMPLEPAGE'));
$pdf->Output("vminvoice_sample.pdf", 'I');
JFactory::getApplication()->close();
}
so for the moment ignore this .. I am sure it will be fixed in the next release
The rest all works for me
I have never used that either. I was under the impression that it did not work,,,,,, To test invoices I always generate a new one from an order.
Thanks. I got confused due to the error message itself which showed a different path. This possibility should be removed or fixed?
All is working thanks
But: i hope i can ask this question here?
I enclose a delivery note. As you can see words are suddenly abrupted. It is not nice:
the word: "Artikelstatus is splitted into "artikelstatu"en below that the "s"
More of that is in the invoice and delivery note
It is not looking nice and i wonder if the space of the content can be spread wider so this doesn't happen?
Please look at the attached file. I hope you understand what i mean (i am dutch..so diffivult for me to explain)
ps i tried with language override, but no succes
Kind regards
Renata
Problems with the error and path message already on the VM tracker to be fixed
to adjust the invoice u need to adjust your templates to suit or there are commercial templates available which are much more "capable"
e.g. Jooglies : https://www.jooglies.com/virtuemart-erweiterungen/virtuemart-rechnung-pro is good
to adjust the template over ride the templates in components\com_virtuemart\views\invoice\tmpl\
e.g. invoice_items.php
Dear GJC Web Design and Jenkinhill
Ive studied which GJC Web Design has adviced. My German is not so good...
Somewhere in TCPDF is configured which text to be used. I just want to know where so i can change them. The delivery note itself is oke exept for this. With language overrides i have had no succes. I've changed all strings related to this.
Kind regards
Renata
unclear as to what your asking?
if it is the table width it looks like the table misses a width='100%' or style="width:100%;"
I understand, i must be more specific:
As you can see in the example i enclosed before, some words are split into 2 sentences. That is not nice to look at and unprofessional. I want to change that:
There are two ways i think how you can do that:
1: the dutch translation which is used is very long: f.a.: artikelstatus. This could be shortened into: status. If i change that translation probably the problem is solved. So where can i find translations of the pdf invoice and delivery notes?
2: or we change the genereal settings of these notes as you also suggested: set the table width of that part of the invoice/delivery note. But where do i do that?
I prefer posssibily 1. If that solves the problem, not a lot of work is needed.
2
templates\xxxx\html\com_virtuemart\invoice\invoice_items.php
There is no such file in templates\xxxx\html\com_virtuemart\invoice\invoice_items.php ?
Are these invoices not generated by TCPDF?
OK so you are not overriding that file yet. In which case it will be components/com_virtuemart/views/invoice/tmpl/invoice_items.php
TCPDF creates the invoice using templates, this is the items one.
Thank you! I understand now.
I prefer to override, Is there a tutorial somewhere specially for this case?
Thanks
Kind regards
Renata!
QuoteI prefer to override, Is there a tutorial somewhere specially for this case?
GOOGLE
just put the file discussed invoice_items.php in the path I said
templates\xxxx\html\com_virtuemart\invoice\
Google? I have done that a lot! I have not found any info concerning override tcpdf forms. so i ask it here, a help forum for people who need help concerning VM....
I cannot just put a file somewhere. there must be a redirection to this new file from the original file? But i will try to sort it out myself...
Thanks
Kind regards
Renata
It is just a template you are going to edit and override. Template override functions have been included in Joomla since the launch of J2.
Try:
https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
https://www.joomlashack.com/blog/joomla/overrides/
and a lot more listed in Google.
?????
use the proper installer
http://dev.virtuemart.net/attachments/download/1137/com_tcpdf_1.0.5.zip
https://docs.joomla.org/Installing_an_extension
Dear GJC Web Design and Jenkinhill
Thanks to your help i fixed it! Now the delivery note is looking good!
for the readers:
i downloaded the file: components/com_virtuemart/views/invoice/tmpl/invoice_items.php
the invoice_items.php i uploaded in
templates\YOURTEMPLATENAME\html\com_virtuemart\invoice\invoice_items.php (you have to make the folders: com_viruemart and invoice)
You can change the width in % from line 60 to your own preferences
Thank you!
Kind regards
Renata