How to display revenue generated by a product from WooCommerce on the frontend

217 views Asked by At

I am trying to display certain text on a website I am working on that is donations based. It uses WooCommerce and WordPress to handle the donations.

I am trying to display the text "Raised so far: $xx" dynamically so it shows the amount raised but I am struggling to find anything on Google/Stackoverflow that would give me the solution to this problem.

Does anyone know of a plugin that exists for this or some code that could make this possible? Thank you in advance.

Edit: See updated solution here

0

There are 0 answers