• Resolved pff31

    (@pff31)


    Hello,

    This plugin is exactly what i’m looking for.
    But I had a small issue with the order list screen.

    It seems, that the status from this screen is not wc-processing but processing…. it seems strange but if I change the can_reduce_stock function by adding “processing” and “completed” it works fine.
    In the order screen, it was OK with “wc-processing” status.

    `protected function can_reduce_stock( $order_id, $status ) {
    return in_array( $status, array( ‘wc-processing’, ‘wc-completed’, ‘processing’, ‘completed’ ), true ) && ‘1’ !== get_post_meta( $order_id, ‘_order_stock_reduced’, true );’

    Do you know how we can explain that?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter pff31

    (@pff31)

    Thanks, Regards

    Plugin Author Claudio Sanches

    (@claudiosanches)

    @pff31 what versions of WooCommerce are you using?

    Thread Starter pff31

    (@pff31)

    Hello,

    Wordpress : 4.7 and WooCommerce 2.6.11.
    I have an other plugin that deals with order status named “Woocommerce Awaiting Shipment” to add an order status but even desactivated it does not work.

    Thanks, Regards

    Plugin Author Claudio Sanches

    (@claudiosanches)

    @pff31 Are you sure that nothing else is using https://codex.www.ads-software.com/Function_Reference/register_post_status ?

    This is how WooCommerce 2.6.11 suppose to render the order status field:

    Screenshot from 2017 01 05 01 21 56

    Thread Starter pff31

    (@pff31)

    Hello,

    a grep of “register_post_status” provide me these files :
    wp-content/plugins/woocommerce-awaiting-shipment/woocommerce-awaiting-shipment.php
    wp-content/plugins/woocommerce/includes/class-wc-post-types.php
    wp-includes/post.php

    Even when I disable all my plugin and change the theme, it seems that there is no change : it works fine on the detail order screen but on order list screen :

    On this page, a Status variable is passed with “completed”

    Thanks, Regards

    • This reply was modified 8 years, 2 months ago by pff31.
    Thread Starter pff31

    (@pff31)

    with a screen copy :
    Screen copy of Order list screen

    Capture d cran 2017 01 06 01 12 12

    • This reply was modified 8 years, 2 months ago by pff31.
    • This reply was modified 8 years, 2 months ago by pff31.
    • This reply was modified 8 years, 2 months ago by pff31.
    Plugin Author Claudio Sanches

    (@claudiosanches)

    @pff31 yep, don’t works properly with the actions buttons, I just fixed in version 1.0.1, thanks for let me know about it.

    Thread Starter pff31

    (@pff31)

    Hello

    It works fine for me.
    Thanks a lot.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘wc-processing and processing’ is closed to new replies.