• Resolved enrico11095372

    (@enrico11095372)


    Hi all,
    I need some assistance. I tried creating custom order tags to allow a third party tool to be able to differentiate between wholesale and retail users.

    I created custom code to add a custom meta field but according to the third party this is different to a tag on the orders however, the only tags I can find are product tags.

    How does one tag orders dynamically?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mouli a11n

    (@mouli)

    Hi there,
    You are correct, Tags are not by default a taxonomy that can be applied to orders.
    I suggest that you consider https://woocommerce.com/products/automatewoo/?aff=10486&cid=1131038 which enables you to set up actions that are triggered by events in your WooCommerce store.
    For instance, you can set up a trigger such that when:

    • A new order is created
    • AND the user has a User Role of Wholesaler
    • Add a Note to the order to the effect that this is a Wholesale Order

    That is a pretty simplistic solution but serves to demonstrate the principle.
    You can also use the trigger to update a custom field on the order and even run a custom function so it really is very powerful.

    I hope that helps you to figure it out.
    Feel free to get back to us if you have further questions.

    • This reply was modified 4 years, 1 month ago by mouli a11n.
    Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    I hope you found the previous reply helpful. We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce Custom Order Tags’ is closed to new replies.