Remove commas from WooCommerce checkout addresses fields


My client’s WooCommerce shop is exporting orders as comma separated files for creation of packaging labels and accounting in C5.

When users enter an address with a comma upon checkout, this screws up the CSV export. Example: “60 Brickyard Road, Lapeer”. The comma after “Road” confuses C5 when importing.

How can I filter out any commas before the address value is saved to the order?

, , Skovsgaard 4 years 2019-05-06T02:42:14-05:00 0 Answers 122 views 0

Leave an answer