• Resolved Anderson Narciso

    (@andersonnarciso)


    All right, guys? Would anyone know or have you ever done something like this?

    When a user makes a purchase in the shop, would you automatically like to create a post in a post type “cards” with a custom message that would come from a custom field that will be available at checkout?

    You can? Would anyone know how to help me?

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

    (@conschneider)

    Engineer

    Hi there,

    When a user makes a purchase in the shop, would you automatically like to create a post in a post type “cards” with a custom message that would come from a custom field that will be available at checkout?

    The purchase creates a custom post type of it’s own, the order.
    The created order properly has the custom field that is available at checkout.

    Step 1: I would use something similar like this or similar: https://stackoverflow.com/a/42533543/7249161 to retrieve the data and then

    Step 2:
    funnel this as arguments into: https://developer.wordpress.org/reference/functions/wp_insert_post/

    Kind regards,

    Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    I hope the suggestion helped you resolved the issue. 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 ‘Create a post when you have a new order’ is closed to new replies.