• Resolved Md Shukur Miah

    (@shukur5674)


    In My website customer can download downloadable products when order status ‘Processing’ or ‘Completed’. I have created a custom order status called Shipped. Now I want to allow customer to download product when order status is set to Shipped.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @shukur5674

    Thanks for reaching out!

    Now I want to allow customer to download product when order status is set to Shipped.

    I understand that you would like to enable your customers to download products when the order status is changed to Shipped.

    This is a bit of a complicated topic that would need some customization to address. Unfortunately, custom coding is not something we can assist with directly. However, I’ll keep this thread open for a bit to see if anyone from the community can lend a hand.

    If you have any other questions related to development or custom coding, don’t hesitate to reach out to some of the great resources we have available for support. The WooCommerce community is filled with talented open-source developers, and many of them are active on the channels listed below:

    Hope this helps!

    Thread Starter Md Shukur Miah

    (@shukur5674)

    Thank you, I already solved the issue with bellow code below.

    //Allow Customer to download with order status shipped


    function add_shipped_status_to_download_permission($data, $order) {
    if ( $order->has_status( ‘custom_status’ ) ) { return true; }
    return $data;
    }
    add_filter(‘woocommerce_order_is_download_permitted’, ‘add_shipped_status_to_download_permission’, 10, 2);

    Hi @shukur5674,

    Thank you, I already solved the issue with bellow code below.

    Great to hear that you’ve managed to solve the issue on your own! Your code snippet could be very helpful to others who are looking to achieve the same thing. Thank you for sharing your solution with us.

    I’ll go ahead and mark this thread as resolved. However, if you ever have more questions or issues in the future, don’t hesitate to kick off a new topic.

    Hope you have a fantastic day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Allow Customer to download Products with customer order Status’ is closed to new replies.