Skip Navigation

[Resolved] Woocommerce product child price

This thread is resolved. Here is a description of the problem and solution.

Problem: I have created a custom post type and made it a parent of the WooCommerce Product post type. When I create or edit my parent post, I would like to be able to manage the WooCommerce Product price directly from the Post Relationship editor.

Solution: Unfortunately this is not currently possible, and you must manage the price from the Product editor area.

This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.76 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 9 replies, has 2 voices.

Last updated by oriolc 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#576076

Hi,
I have created a Post type Eventos. This is parent child of Woocommerce Product Post Type.
When I created an Eventos Post, I want to add a Product via wordpress backend.
I can see Product post title but I can't see the price to add it.
I actived _price post field in post form to use it, but this post field won't appear in child Product inside Eventos.
How can I did it?

#576110
Screen Shot 2017-10-04 at 10.18.31 AM.png

Hi, when you edit the Parent Post Type in the Post Type editor, you can scroll down to the Children Post Types section and find "Product". Right next to that, after you check it and save, you will find an option to select fields. Then a popup dialog will be displayed. I chose "Title, all custom fields and parents" and clicked Apply. Now in the parent post editor, when I create a product, I am shown the price input field. See the attached screenshot.

Please let me know if this process does not work for you and I'll take another look.

#576391
Product_problem.jpg

That doesn't work for me.
A part, I want two post parents for the same child and now, the other post parent appears in post editor when I want to create a product.

#576630

Okay may I look in your wp-admin area to see what's going on here? It works for me so there must be something else I'm missing.

#577332

Okay I see now, the field that is displayed on my screen is a WooCommerce Views field, not the original WooCommerce price field. Those original WC fields aren't accessible here, so you won't be able to add a price, or product type, etc. You can manage a product's other Types relationship associations, or any WC Views fields, but the native WC fields aren't accessible.

#577369

But this only happens in Post Relationship, because I have created product post forms in frontend and it works.
That can be cause this posts (Eventos, Retiros) have parents too?

#577472

No, the behavior is the same even if Eventos / Retiros do not have parents, so I don't think that is relevant. It's more likely this is because of the way WooCommerce stores some product information in hidden postmeta fields.

#579140

An there is no way to show it?

#579161

No, unfortunately you must manage the Product's Price from the Product editor screen.

#579690

Thanks!!!!!!!
No problem