Right now it only displays on status. The code is:
"order_status" => "16"
16 is my shipping label status in Opencart
I'm stuck trying to figure out how I add a and/or to that line.
I would like it display not only "16" but also "2" which is my confirmed order status.
Anybody a code wizard that can tell me how?
Wiki: https://github.com/opencart/opencart/wiki/Events-System .
However, since you've developed a label program, if it's external from Opencart, you could also rely on the External API from my repository: https://github.com/straightlight/openca ... upload/api .
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
What line?Rainforest wrote: ↑Tue Oct 20, 2020 10:07 pmThank you but no.
I'm just looking to edit that line. That's all.
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester

"Right now it only displays on status.
The code is:
order_status" => "16""
Is that part of code to fill array ?
Like:
Code: Select all
$statuses[] = array(
"label" => "My label 16",
"order_status" => "16"
);
Like:
Code: Select all
if ($order_status_id == 16) then {
$statuses[] = array(
"label" => "My label 16",
"order_status" => "16"
);
}
Rainforest wrote: ↑Tue Oct 20, 2020 9:52 pmI would like it display not only "16" but also "2" which is my confirmed order status.
Code: Select all
if ($order_status_id == 16) then {
$statuses[] = array(
"label" => "My label 16",
"order_status" => "16"
);
} elseif ($order_status_id == 2) then {
$statuses[] = array(
"label" => "Confirmed",
"order_status" => "2"
);
}
Yeah, I read it. It's just too vague.Rainforest wrote: ↑Wed Oct 21, 2020 6:31 pmI think you didn't read my original post![]()
"Right now it only displays on status.
The code is:
order_status" => "16""
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
adding a comma
"16,20"
To look for two different statuses
Users browsing this forum: No registered users and 4 guests