Skip Navigation

[Resolved] How can make a woocommerce product view displays best selling products?

This support ticket is created 3 years, 2 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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 3 years, 2 months ago.

Assisted by: Jamal.

Author
Posts
#2197777

The woocommerce default best-selling item block has poor customization. I would like to make my own. But how can I do it with View?

#2198331

Hello and thank you for contacting Toolset support.

WooCommerce stores the total number of sales of a product in a custom field(total_sales) for the product. So, you can create a view that queries products and that sorts them by total_sales custom field.
You may need to register the "total_sales" custom field in Toolset->Settings->Front-end Content->Hidden fields.

I hope this helps. Let me know if you have any questions.