• Resolved vievioor

    (@vievioor)


    Is it possible to change the status of the Woocommerce order? I use CRM and, for example, if I change the stage in CMR, I would like the order status to change from processing to completed. Is it possible by your plugin and zapier?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ironikus

    (@ironikus)

    Hey @vievioor – thank you a lot for reaching out!
    Yes, this is possible with our plugin, but only with the Pro version (for now), since you need the webhook to update posts.

    To tell you more on how it would work: You will be able to define a new argument within your webhook request called “post_status” – If you set it to “wc-complete”, it will set the order to complete.

    In case you want more information on that, feel free to reach out at any time!

    Hello, I posted in another thread a moment ago.

    Is there any chance you can post a dummy example of full Woocommerce Order Object that is returned as JSON. Either here, or on your website.

    My other posts just a moment ago relates somewhat to this request. The big issue we have is whether the Dokan Multi-vendor JSON data is also included as part of the Woocommerce Order Object. We need that information to tie into our standalone application that operates outside of the WordPress Database, but resides on the same server. In the future it may not reside on the same server. We will also have login, registration and HASH passing of login details with various forms most likely with registration on our applications website because the password HASH string is different from WordPress.

    And finally, we are using the Woodmart Theme (very popular) with Dokan inside. I have refrained from links to avoid keyword flags that block my post. They links are very easy to find. They are very popular themes and plugins.

    Finally, we are full stack coders. So, we don’t pepper plugin builders for support. Seeing a WooCommerce Order Object and the JSON string that WP Webhooks returns is probably our first step to see if we will be able to use your tool. A generic Woocommerce will help, but there is a Dokan Lite version that probably is not a waste of your time to install and test. There are a lot of users with that plugin.

    Cheers

    Plugin Contributor Ironikus

    (@ironikus)

    Hey @enduser670 – thank you for your message.

    Can you tell me about which webhook trigger/action you are talking?
    Our plugin basically only integrates actions such as creating a Woocommerce Order, Customer, Subcription, … on your website.

    For webhook triggers, Woocommerce offers their own functionality which you can check out here: https://docs.woocommerce.com/document/webhooks/

    In case you talk about parsing the Woocommerce object within the response of a webhook action call. you can modify the response easily using the native Woocommerce REST API: https://woocommerce.github.io/woocommerce-rest-api-docs/wp-api-v2.html

    Hope this helps.
    If you have further questions, feel free to reach out at any time.

    Thank you for your input. I do believe I was probably in error. We are trying to get a Webhook when a Stripe Account is created in the Dokan plugin inside Woocommerce. Specifically, the “CUSTOM Accounts” https://stripe.com/docs/connect/custom-accounts under Stripe Connect that are created when someone signs up as vendor to a Woocommerce shopping cart. Not as a customer of a Woocommerce shopping cart, but as a vendor that can sell inside that cart. Much like an Amazon marketplace cart.

    A Stripe Account is the actual user account to receive funds, so looking over the webhooks sent by Woocommerce, this does not appear to be included or handled by Woocommerce. It is in fact done by Stripe who sends it’s own Webhook back to Dokan which does the insert statements into the the WordPress database. We would like to tap into this step and insert things into our own remote application when this step occurs. Unfortunately Dokan is poorly documented in this area and does not have a webhook system built in. Additionally, their Action hooks are not as clearly defined in their documentation, so it would be hit or miss for us trying to find out when and where we would tap in.

    We will probably build our own webhook endpoint to receive the Account setup information directly from Stripe. It is not ideal, because we would like to make this step happen AFTER the Dokan insert statements are done and completed in the WordPress database. Just in case their step fails and ours does not.

    As a side note, I could see where your WP Webhooks might be useful for people using Stripe. They have a bunch of different products. Please let me know if your Woocommerce plugin covers any of the Stripe features and I may have overlooked that. This is why I was interested in seeing an actual example of returned JSON data from Woocommerce in my intitial post.

    Sorry for the long post, but I wanted to share more detail about what we were looking for.

    Plugin Contributor Ironikus

    (@ironikus)

    Hi @enduser670 – thank you for your details.
    We basically do not have a specific functionality for Stripe available, but if there is an integration that uses Stripe and Woocommerce and has a REST API available, you can use that functionality as well.

    Since our plugin currently includes the whole functionality of the Woocommerce REST API, you will find more details on how the response looks in their documentation, because we basically only tunnel the data: https://woocommerce.github.io/woocommerce-rest-api-docs/wp-api-v2.html#introduction

    In general, if Strip sends webhooks, you can always connect them with WP Webhooks and map the data using our data mapping feature.
    Alternatively, you can use third-party providers like Zapier or Integromat to do that visually.

    For Woocommerce, we only offer action calls, since Woocommerce takes care by itself about the default webhook functionality.

    Hope this helps.
    If you have further questions, please let me know.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change Woocommerce order status’ is closed to new replies.