• Resolved elisafern

    (@elisafern)


    Hello!

    I wanted to know if I could get your quick input on this integration:

    I have a service, similar to a travel agency, using Woocommerce.

    – You have to create an account to order.

    – Once you have an account, you can “buy” products.

    – Within your account page, you can add “travellers”, or “family members”.

    – Therefore, that would mean that when you are in your account page, you would have a repeatable group with multiple fields where you can add your family members and some of their preferences (meal preferences, seat…etc.)

    – Once you save a “travellers”, you could modify the preferences.

    – What I think I could do is create a custom post type, where all “additional members” would go in there, and then attach this custom post type to the Woocommerce account page so that when the customer signs in into his account, he can see the members he added (only his).

    – My question is: Could I use CMB2 to attach/assign a custom post type to the account page, so that the account page can “fetch” these additional members? Similar to the taxonomy select/check, where the select/check are populated by the taxonomies values.

    I hope my question is not to blurry!

    Thank you a lot, any pointers would be appreciated! 🙂

    https://wordpress.org/plugins/cmb2/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If I’m understanding correctly, you just need a way to query for and select posts from the post types, and then save the selected values to the user meta of the user. Once on their member page, you would be able to query those saved values and display, possibly also allow to update.

    It would take a little bit of custom work, but I believe a solution should be possible here.

    Thread Starter elisafern

    (@elisafern)

    I think this is it!
    To also allow customer, in their profile page, to access a frond-end version of the meta-box so that they could modify they the values if necessary.
    I’ll investigate more on this.
    Just by curiosity, would you accept this freelance custom work for this?

    Thanks!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Should be able to display metaboxes on the frontend as well. We have a lot of documentation and code snippets for various use cases on GitHub that we can link.

    No, sorry, regarding the freelance. I’m not doing that type of work at the moment.

    Thread Starter elisafern

    (@elisafern)

    Thank you Michael! I’ve managed to make some things work and will continue.

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Populate a select menu with custom post type values, but ID specific.’ is closed to new replies.