0

I try do code a custom tool to import many clients from a custom CSV file. This CSV file is NOT generated by woocommerce, but contain a "money spent" column.

How to store this "money_spent" value to conserve client history in fresh install of WooCommerce ?

I've tried to manualy update the "_money_spent" user meta but this value is overrided on each new order...

  • You will likely need to contact WooCommerce since it sounds like their plugin is overriding your manually-inserted values. It could be that Woo checks all of the orders associated with a particular user and tallies them to calculate the new money spent, which would explain why your values would get overwritten when they place new orders. – WebElaine Nov 19 '19 at 16:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.