Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Rustaurius

    (@rustaurius)

    Hi Hojja,

    That’s not really possible at this time. We’ll add it to our feature suggestion list though. You could modify the code in the file “EWD_OTP_Return_Results.php” but you’d be on your own for figuring how it needs to be modified exactly.

    I’m not sure if you want this code, I know it was a month ago, but if you are still looking for a fix:

    1) comment out line 97 using //
    2) change line 100 to:
    $ReturnString .= end($Statuses)->Order_Status;
    3) comment out line 111 as well.

    That will do what you want it too.

    +1 for displaying latest order status.

    Kozza – I tried your instructions and it didn’t work. Could you please tell me the code that I am commenting out for lines 97 and 111?

    Thank you!!

    This is what I did for line 91 – 110:

    if (in_array("Order_Status", $Order_Information) and in_array("Order_Updated", $Order_Information)) {$ReturnString .= "<div class='pure-u-3-5'></div>";}
            elseif (in_array("Order_Status", $Order_Information) or in_array("Order_Updated", $Order_Information)) {$ReturnString .= "<div class='pure-u-4-5'></div>";}
            else {$ReturnString .= "<div class='pure-u-1'></div>";}
            if (in_array("Order_Status", $Order_Information) or in_array("Order_Updated", $Order_Information)) {
                //foreach ($Statuses as $Status) {
                    if (in_array("Order_Status", $Order_Information)) {
                        $ReturnString .= "<div class='ewd-otp-status-message pure-u-1-5'>";
                        $ReturnString .= end($Statuses)->Order_Status;
                        $ReturnString .= "</div>";
                    }
                    if (in_array("Order_Updated", $Order_Information)) {
                        $ReturnString .= "<div class='ewd-otp-status-time pure-u-1-5'>";
                        if ($Localize_Date_Time == "European") {$ReturnString .= date("d-m-Y H:i:s", strtotime($Status->Order_Status_Created));}
                        else {$ReturnString .= $Status->Order_Status_Created;}
                        $ReturnString .= "</div>";
                    }
                    if (in_array("Order_Status", $Order_Information) and in_array("Order_Updated", $Order_Information)) {$ReturnString .= "<div class='pure-u-3-5'></div>";}
                    else {$ReturnString .= "<div class='pure-u-4-5'></div>";}
                //}
            }

    I’m sorry it took me so long to get back to you, I didn’t bother checking again because it worked fine. Good luck tho!

    Hello,

    Is it possible to display a list with all statuses, and not only the last one?
    I need all of them

    Thanks a lot

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi didi,

    Do you mean all the status updates? If so, they are already displayed in a list as you change the order’s information.

    If you go to our demo page here, and display the order #001, you should be able to see the history of all the changes.

    Let us know if that is what you inquired about.

    Regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘last status on Order Information Displayed’ is closed to new replies.