• I need to generate a new WC order using selections from this dropdown (in this case, a stock CF7 dropdown could maybe work) and then let the user go directly to checkout when they login, after being manually approved at some future time (I’m using Ultimate Member for account handling).

    I made a custom shortcode that provides a button for the user to click when they login, which takes them directly to checkout. The subadmin must manually create the order on the back end – this needs to be automated for the front end CF7 form.

    I’m using Database for Contact Form 7 plugin, so I could do this either way – direct from the CF7 form to WC or use the database as middleman (pull data from user registration and send that to WC). I think it might be simpler to just take dropdown values and plug them into WC order hook(s).

    I am not using a shop nor cart, as there are only 4 virtual “products”, and to prevent user error resulting in incorrect orders.

    I browsed the WC hooks, and there’s a ton of them, but I didn’t see anything that seemed like it would build the order from scratch as if the subadmin had done it on the back end. Maybe I overlooked it/them?

    I am aware of premium addons for WC-CF7 integration, but my client is a poor dance school and they aren’t going to pay for this – I am their pro bono webmaster, so everything has to be done for free.
    The “products” are dance classes, and, since there can be up to 5 dancers per family on a given form, I will need to potentially combine dropdown selections together for the grand total of the order.

    Help?

  • The topic ‘Create WC order from selections?’ is closed to new replies.