Answer the question
In order to leave comments, you need to log in
How to get the sum of the cost of all goods?
Hello, please tell me how to display the sum of the cost of all goods that are in stock? The task is to add such a field in the admin panel so that the owner can see what theoretical volume in monetary terms he has in the store
Answer the question
In order to leave comments, you need to log in
Run through all the goods and count.
Only this procedure is difficult and it is desirable to throw the result into transients.
edit upon change, removal of goods
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question