Page 1 of 1

VQMod showing inv no in orderlist

Posted: Sun Nov 10, 2013 3:05 am
by thbr02
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.

Re: VQMod showing inv no in orderlist

Posted: Mon Nov 11, 2013 5:10 am
by thbr02
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.

Re: VQMod showing inv no in orderlist

Posted: Thu Feb 27, 2014 11:24 am
by Anthony1632
Hi,

Did you ever sort out the XML for this? I tried it but it gives an error.

Re: VQMod showing inv no in orderlist

Posted: Thu Feb 27, 2014 4:00 pm
by thbr02
Works fine for me (except for sortorder). What version of OC are you using?

Re: VQMod showing inv no in orderlist

Posted: Thu Feb 27, 2014 4:20 pm
by Anthony1632
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

Re: VQMod showing inv no in orderlist

Posted: Thu Feb 27, 2014 6:06 pm
by thbr02
Send me a PM about it.

Re: VQMod showing inv no in orderlist

Posted: Sat Nov 05, 2016 7:01 am
by burley
any idea on how to update it so it works on V2.2 and up?

Re: VQMod showing inv no in orderlist

Posted: Sat Nov 05, 2016 10:07 am
by IP_CAM
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. :D

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

Re: VQMod showing inv no in orderlist

Posted: Sun Nov 06, 2016 11:24 pm
by burley
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?

Re: VQMod showing inv no in orderlist

Posted: Mon Nov 07, 2016 1:57 am
by IP_CAM
Well, such a Filter does exist, and it even works:

Code: Select all

<?php if(empty($order['invoice_no'])){echo '-'; } else { echo $order['invoice_prefix'] . $order['invoice_no'];} ?></td>
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