• Resolved ernst1234

    (@ernst1234)


    Hi Zorem

    1) We do not want orders to change status automatically when tracking info is added. This is now happening in the latest version – as soon as tracking info is added and button clicked, the order changes to “Completed” status. In the previous version, settings allowed us to control this – we just left the status unchanged. How do we control this now?

    2) Previously we removed the “Mark Order as:” from Add Tracking Info box, as we wanted the user to control the status after adding tracking info. This was a setting in the previous version. But now, there is no setting to enable the “Mark Order as” again in new version’s settings. This is an issue, because we could have at least deselected auto status change here. This would have been a work-around, as we don’t actually want this as it only displayed your pre-defined “Completed” and “Partially Shipped” status and we don’t use these.

    It boils down to, we do not want orders to change status automatically (especially not completed), in the background after hitting button. So either no auto status changed, OR we want to see our “Mark order as” box again, to allow the user to select the desired status (from our own defined statuses).

    Please help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ernst1234

    (@ernst1234)

    <fieldset class="form-field change_order_to_shipped_field">
      <span>Mark order as:</span>
      <ul class="wc-radios">
        <li>
          <label>
    <input name="change_order_to_shipped" value="change_order_to_shipped" type="checkbox" class="select short mark_shipped_checkbox" checked>Completed
          </label>
        </li>
      </ul>
    </fieldset>

    Further info :
    The html elements related to “Mark Order as:” still exists on inspection. I doubt I have any css hiding this. So this is probably a script that hides it. You will notice the “Completed” option is checked. That’s why our order status are getting updated to “Completed” when we hit the button.

    Thread Starter ernst1234

    (@ernst1234)

    Also checked the wp_options, and these are the values which may play into this problem:

    wc_ast_default_mark_shipped                    | 0
    wc_ast_unclude_tracking_info                   | a:19:{i:0;s:1:"1";i:1;s:15:"partial-shipped";i:2;s:16:"updated-tracking";i:3;s:7:"shipped";i:4;s:14:"shippedpartial";s:10:"processing";s:1:"0";s:9:"completed";s:1:"1";s:15:"partial-shipped";s:1:"1";s:16:"updated-tracking";s:1:"1";s:9:"cancelled";s:1:"0";s:7:"on-hold";s:1:"0";s:8:"refunded";s:1:"0";s:6:"failed";s:1:"0";s:24:"show_in_customer_invoice";s:1:"0";s:21:"show_in_customer_note";s:1:"0";s:7:"shipped";s:1:"1";s:14:"shippedpartial";s:1:"1";s:15:"awaitcollection";s:1:"0";s:14:"checkout-draft";s:1:"0";}
    wc_ast_show_orders_actions                     | a:16:{i:0;s:1:"1";i:1;s:9:"completed";i:2;s:7:"shipped";i:3;s:14:"shippedpartial";s:10:"processing";s:1:"1";s:9:"completed";s:1:"1";s:15:"partial-shipped";s:1:"0";s:16:"updated-tracking";s:1:"0";s:7:"on-hold";s:1:"0";s:9:"cancelled";s:1:"0";s:8:"refunded";s:1:"0";s:6:"failed";s:1:"0";s:7:"shipped";s:1:"1";s:14:"shippedpartial";s:1:"1";s:15:"awaitcollection";s:1:"0";s:14:"checkout-draft";s:1:"0";}
    wc_ast_api_date_format                         | d-m-Y
    wc_ast_status_shipped                          | 0
    wc_ast_status_delivered                        | 0
    wc_ast_hide_tracking_events                    | 2
    wc_ast_select_tracking_page_layout             | t_layout_1
    wc_ast_link_to_shipping_provider               | 1
    wc_ast_hide_tracking_provider_image            | 0
    wc_ast_hide_from_to                            | 1
    wc_ast_hide_list_mile_tracking                 | 1
    wc_ast_remove_trackship_branding               | 1

    I did try updating the value of wc_hide_from_to to 0, but that did not cause that “Mark Order as” to display.

    Plugin Author gaurav1092

    (@gaurav1092)

    Hi @ernst1234,

    You can unchecked the Mark order as Shipped(Completed) checkbox while adding tracking to the orders so order status will not automatically change to the Shipped.

    Use below code snippet in your theme/child-theme functions.php file so Mark order as Shippef checkbox is unchecked by default.

    add_filter( 'wc_ast_default_mark_shipped','wc_ast_default_mark_shipped');
    function wc_ast_default_mark_shipped( $checked ) {
    	return 0;
    }

    Thanks

    Thread Starter ernst1234

    (@ernst1234)

    Thank you. Implemented – will test and comment here if any issues with this.

    Any idea why the “Mark Order as:” is not displaying? As mentioned, even changing the “wc_ast_hide_from_to” option to 0 made no difference. (Not sure that option is the one supposed to control this.) Or perhaps a restart of services is required after changing the option. Would appreciate some insight here.

    Plugin Author gaurav1092

    (@gaurav1092)

    Can you please share the screenshot where the “Mark Order as:” is not displaying?

    Thread Starter ernst1234

    (@ernst1234)

    Hi
    Here is the temp link to the image: https://ibb.co/KwStpCV It’s not showing on the “Add Tracking Info” modal “popup”.

    Thanks

    • This reply was modified 1 year ago by ernst1234.
    Plugin Author gaurav1092

    (@gaurav1092)

    Hi @ernst1234,

    It sounds like a plugin or theme conflict. To identify the root of the problem, please follow these troubleshooting steps. Make sure to back up your site before you begin:

    1. Switch to a Default Theme: Activate a standard WordPress theme (e.g., Twenty Twenty-One ). Does the issue persist?
    2. Deactivate All Plugins: Disable all plugins and see if the issue resolves.
    3. Identify the Offending Plugin: Reactivate plugins one-by-one, checking for the issue each time. This will pinpoint the conflicting plugin.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Order auto “Completed” after add tracking info – don’t want this’ is closed to new replies.