Invoice hack, step by step

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
Micha
Phoca Member
Phoca Member
Posts: 26
Joined: 17 Oct 2008, 02:43
Location: Netherlands

Invoice hack, step by step

Post by Micha »

Hi Joomlers,

Is there a way tot test step by step the printing of a invoice?
I'am trying now for a year to make this hack working on my site. I installed before and they work fine but on my own site NOT. The only thing i get is a pdf (not in the browser but FF download it). When i rename the pdf to html i'll see this in the file:

Code: Select all

Parse error: syntax error, unexpected T_STRING in /home/babymore/public_html/administrator/components/com_virtuemart/classes/ps_delivery.php(514) : eval()'d code on line 81

Fatal error: Class 'PDF' not found in /home/babymore/public_html/administrator/components/com_virtuemart/classes/ps_delivery.php on line 515
I read in the VirtueMart forum that you can set after the url the tekst: &testmode=1 When i do that i see the pdf template in the browser and it looks like:

Code: Select all

Image('/home/babymore/public_html/components/com_virtuemart/shop_image/vendor/ff51738d681b768b6cd30b643aeb28f9.jpg',20,15,70);	
		$this->SetX(-107);
		$this->SetFont('Arial','B',15);
		$this->Cell(80,10,' Factuur',0,0,'R');
		$this->Ln(40);
		$this->SetX(-107);
		$this->SetFont('Arial','B',9);
		if("2" != '') {
			$this->Cell(24,5,'Factuur nr.',0,0,'C');
		} else {
			$this->Cell(24,5,'Datum',0,0,'L');
		}
		$this->Cell(28,5,'Order nr.',0,0,'C');
                --- cut -----
Everythings woking exept generate the pdf file. I normaly (on other sites) get a page with the invoice and i can print that. I know that this forum is for J1.5 but thats my next step. Joomla settings: Gzip is off, extra tab is there, add invoice ok, delete order etc. is working fine. I have read the forum 100 times and tested all the written options but non are working for me :cry:
Please help me with this problem. What steps can i do to test the process step by step.

Micha
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Invoice hack, step by step

Post by Jan »

Please let me know which version of Joomla! do you use?
If you find Phoca extensions useful, please support the project
Micha
Phoca Member
Phoca Member
Posts: 26
Joined: 17 Oct 2008, 02:43
Location: Netherlands

Re: Invoice hack, step by step

Post by Micha »

Jan wrote:Please let me know which version of Joomla! do you use?
Hi Jan, for your information i use J1.0.15 an VM1.0.15. But today i found the bug :twisted:
In the delivery costs i had programed "TNT Post <20KG" and this is one of the problems. The sign < i can not use!?

The second problem i had was the user City. For testing i always used my own city: 's-Hertogenbosch
The sign ' is also a wrong thing. That's why i get no pdf prints.

So i changed all the delivery options to "TNT Post max 20KG"
But for the City data i have no solution :(
I now use: s-Hertogenbosch but in the Netherlands you have many city's that use the ' sign so there must be a solution. Prints are well now and i now know what's going wrong. Cost me a year to fined out :x
Why can't i use the < and ' signs? Do you have a solution?

Micha
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Invoice hack, step by step

Post by Jan »

Hi, this addon works only under Joomla! 1.5 (it uses Joomla! 1.5 framework for creating PDFs)
If you find Phoca extensions useful, please support the project
Micha
Phoca Member
Phoca Member
Posts: 26
Joined: 17 Oct 2008, 02:43
Location: Netherlands

Re: Invoice hack, step by step

Post by Micha »

Jan,

I know but i read that the hack is based on the first build in Joomla 1.0 so every
tip, hint en trick would help me, thanks.

:wink: Micha
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Invoice hack, step by step

Post by Jan »

I don't know the 1.0 framework :idea: I have begun to develop from 1.5 :(
If you find Phoca extensions useful, please support the project
Post Reply