Has anybody a working solution to show payment_name in the invoice?
In the forum are some solutions, but nothing is working with the latest downloadable files...
I tried also a direct database request, but my knowledge is to poor.
Thanks,
Holger
(1.0.9 VM IDnR) solved anybody missing payment in invoice?
-
- Phoca Newbie
- Posts: 3
- Joined: 19 Mar 2013, 20:40
-
- Phoca Newbie
- Posts: 3
- Joined: 19 Mar 2013, 20:40
Re: (1.0.9 VM IDnR) solved anybody missing payment in invoic
Code: Select all
case 'dbp':
$query = "SELECT a.payment_method_id, p.payment_method_name FROM #__{vm}_order_payment AS a"
." LEFT JOIN #__{vm}_payment_method AS p ON a.payment_method_id = p.payment_method_id"
." WHERE order_id='".(int)$var['order_id']."'";
break;
Could anybody correct the query? My knowledge is to poor to get this working (i tried some hours...)
Thanks,
Holger
- Jan
- Phoca Hero
- Posts: 48398
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: (1.0.9 VM IDnR) solved anybody missing payment in invoic
Hi, the query should be OK
You as for p.payment_method_name - p means, that you will ask table p which is:
LEFT JOIN #__{vm}_payment_method AS p
You as for p.payment_method_name - p means, that you will ask table p which is:
LEFT JOIN #__{vm}_payment_method AS p
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 19 Mar 2013, 20:40
Re: (1.0.9 VM IDnR) solved anybody missing payment in invoic
Thanks,
meanwhile i worked through the code and realized this. But i can't find any failure.
It is also not possible to request "payment_method_name" directly.
I believe i have to give up... it is pity, 'cause it would be a really good plugin.
Holger
meanwhile i worked through the code and realized this. But i can't find any failure.
It is also not possible to request "payment_method_name" directly.
I believe i have to give up... it is pity, 'cause it would be a really good plugin.
Holger