Answer the question
In order to leave comments, you need to log in
How to create additional fields in Woocommerce?
Good afternoon. There is such a question. You need to create additional fields in the personal Woocommerce account for the pet. The site sells toys and food for pets, and you need to make a My Pets tab in your account, where you can create pets. It will contain fields: Pet photo, nickname, date of birth. You can create several pets, that is, 1 person can create 2-3 pets. What plugin can do this? Has anyone faced this issue before?
Answer the question
In order to leave comments, you need to log in
Add a tab like this
https://www.businessbloomer.com/woocommerce-add-ne...
Fields - whatever. For example ACF
But there is an opinion that you cannot do it yourself.
Create a new post type - pets, edit user roles for this type of post, add a tab simply by hand, at least in a layout template, display these posts in the tab via a query, indicating that you need to display the posts of the current user (this user = author ), create a form for creating a post in the template (see wp_insert_post() ), then yourself, if you do what you wrote, the rest will be clear.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question