I've created a vqmod (see the attached file) which will show invoice no in orderlist. I'm almost done, but I've got problem including the invoice prefix into the invoice no. So right now the invoice no only contains of the last numbers (INV-2013- is not included).
This mod will be a free contribution on OC extension site. So if somebody can give a hint how to include the prefix I would be happy.
This mod will be a free contribution on OC extension site. So if somebody can give a hint how to include the prefix I would be happy.
Now fixed so the prefix is shown as well. Works fine except for the invoice sortorder. Some help to fix the sortorder would be nice.
OC Default 1.5.4.1 . It gives a vqmod cache error on line 371 vqcache\vq2-admin_controller_sale_order.php on line 371Notice: Undefined index: invoice_prefix
Sure, search for each VqMod SEARCH POSITION Content, especially in the controller/ Files,to find
any differences, by Example in the
admin/controller/sale/order.php
this:
index="1,2,3,5,6,7,8,9 would only be index="1,2,3,5,6
and:
filter_invoice_no would (probably!) only be invoice_no
or:
$this->data['whatever would only be $data['whatever
and so on, in v.2 OC-Versions, just to mention a few, after taking a short look.
It's a long VqMod, so, it will take some time and brainpower, to make it work. But it probably will depend on
the OC-2 Version used, since so many things have changed during the last 11 OC-2 Subversions. May be one
Reasons, that such Extensions do not longer just come for free, for a good While, at least !
Good Luck !
Ernie
any differences, by Example in the
admin/controller/sale/order.php
this:
index="1,2,3,5,6,7,8,9 would only be index="1,2,3,5,6
and:
filter_invoice_no would (probably!) only be invoice_no
or:
$this->data['whatever would only be $data['whatever
and so on, in v.2 OC-Versions, just to mention a few, after taking a short look.
It's a long VqMod, so, it will take some time and brainpower, to make it work. But it probably will depend on
the OC-2 Version used, since so many things have changed during the last 11 OC-2 Subversions. May be one
Reasons, that such Extensions do not longer just come for free, for a good While, at least !
Good Luck !
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Thanks for your reply! As, I'm not a guru like you it took my quite a while, but i managed to fix it for my version!
THANKS!
edit: only bad thing is that it does show the invoice number even though none is present jet. So it will show 000.
Anybody has a fix for that?
THANKS!
edit: only bad thing is that it does show the invoice number even though none is present jet. So it will show 000.
Anybody has a fix for that?
Well, such a Filter does exist, and it even works:
but it just does not work this way, in your OC-2 Version, as it looks.
Better check your VqMod Error Log's, to find out, where you still have some misses!
Ernie
Code: Select all
<?php if(empty($order['invoice_no'])){echo '-'; } else { echo $order['invoice_prefix'] . $order['invoice_no'];} ?></td>
Better check your VqMod Error Log's, to find out, where you still have some misses!
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Who is online
Users browsing this forum: No registered users and 91 guests