So I’m working on a website where the owner donates a certain percentage of every order to a charity.
At the bottom of the user’s account page is a section that shows the customer how much donations has been made from all of their orders.
So essentially the customer has spent £100 total across all orders and each order has had a 2% donation.
How would I do this using Liquid?
2
Answers
Sum total price of all orders.. Remove decimals.. Divide by 50..
Links to help you..