total woocommerce spent on a specific product id php
-
I would like to know if there is a php snippet that shows the total spent by the current user on a specific product.
example for the product with id 2000 shows the user logged in based on the orders he has made for that product the total he has spent.
“For product 2000 you spent in total: x €”
Thanks and Sorry for my english.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘total woocommerce spent on a specific product id php’ is closed to new replies.