Skip Navigation

[Resolved] Managing WooCommerce orders

This support ticket is created 3 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by Jamal 3 years, 5 months ago.

Assisted by: Jamal.

Author
Posts
#2105429

Pat

Hi Jamal,

I can understand your point.
Now, I would like to better understand what is feasible within a Views managing WC orders (which is currently a possibility offered by Toolset !).
Can you provide me with a link to a page where I can have all needed info on this?

Regards
Pat

#2105435

Hello Pat,

Toolset does not have any tight integration with WooCommerce regarding orders management. The current integration consists of two plugins:
- Toolset WooCommerce Blocks: https://toolset.com/download/toolset-woocommerce-views/
- Toolset Forms Commerce: https://toolset.com/download/toolset-cred-commerce/

Toolset WooCommerce Blocks allows building e-commerce sites with WooCommerce and Blocks. It will allow you to customize how the shop page and single product page appear, through a number of blocks and shortcodes. It will also allow having custom searches within the shop(by price, stock availability, etc.)

Toolset Forms Commerce adds payment collection to Toolset forms. Allowing you to charge clients for submitting posts or for registering new users.

Check these articles about the current Toolset<>WooCommerce integration:
- https://toolset.com/related-lesson/e-commerce/
- https://toolset.com/course/custom-woocommerce-sites/

So, regarding orders, Toolset does not add anything specific to WooCommerce. Orders are a custom post type, registered by WooCommerce, and they can be managed by Toolset in the same way as any other custom post type. For example, listing orders in views with query filters(by status, by the customer, etc.), and you can also manage them through Toolset Forms.

However, changing an order status through a Toolset form will not trigger the same workflow that WooCommerce does(for example, it will not trigger the email notification that WooCommerce does). Because, under the hood, WooCommerce does additional processing than just changing an order status(updating stocks, sending notifications, etc.)

You can always use Toolset Forms and custom code to trigger any WooCommerce workflow you want. For example using the following WooCommerce functions:
- wc_update_order() : hidden link
- wc_update_product_stock_status() : hidden link

I hope this answers your request, let me know if you have any further questions.

#2105447

Pat

Hi Jamal,

Thanks for all your inputs and recommandations.
My question was not to modify WC orders, but to better understand what could be managed inside a Views. As you know, when we use a Toolset Views, we have the ability to make this Views based on WC orders (postype choice available in the top of the Views page).
So, I would like to have a better understanding on what kind of fields I can use in the Views template if I chose the "WC orders" as parameter?
Is there somewhere in the Toolset site, a page where I can find this info (I have search until now but dioid not found anything relevant !).

Let me know
Regards
Pat

#2105479

Well, there are no special treatments for orders within Toolset. I mean, you can only display order data through the default Toolset shortcodes. You will have to know the custom field that you want to display or use your custom shortcodes.

Toolset offers shortcodes to display data related to products. The available shortcodes are the ones you can find in this article https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#woocommerce-blocks