Saltar navegación

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

This support ticket is created 4 years, 7 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

Zona horaria del colaborador: Africa/Casablanca (GMT+01:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Jamal 4 years, 7 months ago.

Asistido por: Jamal.

Autor
Mensajes
#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.