I have a code that shows the user’s current total spend of all orders that are “Completed”, and displays content based on his total spend. It works great, but unfortunately, suborders are also counted in this total span.
Please tell me how to correct the code to exclude suborders?