Adding to Status items list

opmonline
opmonline
Offline
0
Is it possible to add an additional status to the Status list in Invoice Manger? Eg;- Held, Misc, etc. I'm assuming this would be done via a language ini, or php file or similar. Or would I have to also need to effect changes to the database?
Responses (6)
  • Accepted Answer

    Monday, March 17 2014, 11:08 AM - #Permalink
    0
    You can add new status by code, on the file /components/com_invoices/helpers/helpers.php around line 240, you will see function

    function getStatus(){


    be careful! :)
    The reply is currently minimized Show
  • Accepted Answer

    opmonline
    opmonline
    Offline
    Monday, March 17 2014, 09:10 PM - #Permalink
    0
    Awesome! Many thanks.
    Cheers! :)
    The reply is currently minimized Show
  • Accepted Answer

    QuannyUK
    QuannyUK
    Offline
    Thursday, July 17 2014, 06:48 PM - #Permalink
    0
    Apologies to bring up an old thread, but this is something I'd like to implement also. I followed the advice, and added to helpers.php

    $status[] = "held";


    And added to the language file

    HELD="Held"


    And this correctly shows up in the list of statuses. However, the system shows this as 'Not Set' when viewing the list of invoices. Do I need to add code somewhere else to have it show up as Held correctly?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, July 17 2014, 07:16 PM - #Permalink
    0
    find the function render_status in the same file, you need to change this one too :)
    The reply is currently minimized Show
  • Accepted Answer

    QuannyUK
    QuannyUK
    Offline
    Sunday, July 20 2014, 12:16 PM - #Permalink
    0
    Great... got it working. Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    mitchie
    mitchie
    Offline
    Thursday, October 16 2014, 04:03 PM - #Permalink
    0
    Hi,
    I'm going to hack the script to add the same.
    Could you please expand the list to list all hikashop (or find out a way to let the user list all statuses in a text field comma separated, just to say, and let the two functions process the list) order status?
    Thanks in advance.
    The reply is currently minimized Show
Your Reply