Non profit site - how to display shop gross sales

Highlighted
New Member
1 0 0

We are creating a shop that will sell many products online for charity towards the corona virus. I would like to display the total amount of money sold on the shop. Is there a way to do this in Liquid?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 167

Hey @desafiocorona,

 

You might be able to loop through orders in liquid, and add the totals, but the site would get slower with each order and you'd eventually hit limits.

 

I'd recommend creating an app to keep track of the total, and have the app store the total in a metafield or asset.

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes