cannot install tcpdf component/ override invoice and delivery note appearance

Started by Renata, October 31, 2018, 11:36:13 AM

Previous topic - Next topic

Renata

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
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

jenkinhill

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

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Renata

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
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Renata

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
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

GJC Web Design

r u checking  JOOMLAROOT\libraries\vendor\tecnickcom\tcpdf\  ?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Renata

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
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

jenkinhill

The file list in \libraries\vendor\tecnickcom\tcpdf\  is correct. So why is the error message still showing....
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Renata

I dont kwnow. That is why i ask for your help? ;)
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Renata

#11
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
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Renata

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
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

GJC Web Design

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%;"
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation