Implement logic in Liquid that retrieves a list of the best-selling products

Implement logic in Liquid that retrieves a list of the best-selling products

Kapi09
Visitor
1 0 0

I have a task to do:
"Implement logic in Liquid that retrieves a list of the best-selling products from the same category as the viewed product. Consider using product tags or collection types for filtering."

I have no idea how to go about it and filter through the best-selling products using liquid in the product page theme file?

Reply 1 (1)

lynth
Shopify Partner
107 5 14

Bump, is it even possible guys? I did it using our analytic database and meta fields where I sent the value of orders from the last month. 

If my tips are useful, just mark it as the solution. Cheers!
Feeling grateful? Buy me a coffee!