Home › Forums › General Issues › Convert woocommerce fields to ACF or show in ACF
So after googling for a few hours I can’t find the solution yet.
I took over a website for an animal shelter. They used Woocommerce to display animals that are up for adoption as products. But because the animals can’t be directly adopted the whole cart/checkout is not used.
I love the idea of using ACF. But all the topics I found is about adding ACF fields into Woocommerce.
I wanna use ACF fields and to slowly but steady build the website in parts show some Woocommerce fields to start with it. Because animals are added, removed, updated daily. And this doesn’t seem like a project done in an evening.
// FIELDS THAT ARE USED FOR EXAMPLE
– Featured image
– Product title
– description
– category
– pa_attributes
What is the best way to achieve this?
1. I would love this way to start with but I can’t find a way to convert/import/show the woocommerce products in to ACF fields.
2. Start all over, make new fields for the animal. Figuring a way out how to convert the woocommerce fields into the ACF fields while the volunteers can still update/add animals.
3. Other….explain please
Do you plan to use a new CPT to show animals instead of WC? Allowing them to continue editing in WC and using another CPT would mean you’d need to duplicate all of the existing posts and also duplicate and/or update the related CPT every time something is added/edited/deleted. This really would be more work than just building a new site.
You could replicate most of it, but you can’t replicate the WC attributes without a lot of work. WC is special in that each “Attibuted” is a taxonomy that is created on the fly in the admin. They are basically nested taxonomies. Each “Term” in the “Attributes” is actually a custom taxonomy and attribute value is a term in the custom taxonomy.
I hate to be the bearer of bad news but the only way to move out of WC would be to build a new site. I imagine that whoever built this used WC to reduce the amount of work that would be needed or that they were not able to do all the custom coding that would be required.
Thanks for you reply John.
After some tries I came up with this. Hopefully you understand it between all the Dutch. Still have to test it out a lot though.
Pa_attributes
Add a new animal screen
Fieldgroup
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.