Skip Navigation

[Resolved] List all orders of a variable product

This support ticket is created 2 years, 9 months 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 2 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#2111961

Pat

Hello,

I'm using Toolset + WC and would like to list all orders concerning a specific product.
So, I'm able to create a Views based on order postype.
As my products are variable products, I don't see how I can display the needed info (product variant, qty and price).
Can you help on this point please?
Regards
Par

#2111983

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

To display the variable product price what if you try to use the shortcode: [wpv-woo-product-price]
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-154347

There is no built-in feature available in Toolset plugins to display the product variation on view listing order, but here are the few links that will help you to get the product variations from an order:
- hidden link
- https://stackoverflow.com/questions/48390818/get-the-selected-variation-attributes-from-orders-in-woocommerce-3

You can use logic from these guides and build a custom shortcode and then place it in your view loop for the orders.

#2115015

Pat

Hi Minesh,

Thanks for the info
I will give a look on this and come to you if any additional issue.
Regards
Pat

#2115057

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

ok - fine.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.