• Hi,

    I have been trying to give some support to a friend with their custom order statuses. In essence, they are trying to create multiple “completed” statuses. This works for one or two additions. I have added a status “wc-completed-BT”, this successfully works on the dropdowns etc however the status change made the order vanish off of the All tab. I tracked the problem to the fact that in the DB the status is actually stored as “completed-BT” as opposed to “wc-completed-BT”. I have checked and the full “wc-completed-BT” is present in the dropdown. It seems to get stripped of the wp- by the update function.

    This is very confusing. I can hack around and get the orders to show up by changing all my code to remove the wp- from the status registration but it then seems to think of “completed-BT” as “Pending Payment” in the default selection on the order page, despite it showing ‘completed-BT” on the orders list as though it renders the select with the wc- added back on or not finding the value from the DB to render.

    How do I force it to actually store the status as wc-completed-BT instead of stripping the wc- off?

The topic ‘Custom Status stripping “wc-” prefix’ is closed to new replies.