Leading Zero
-
I have noticed that leading zeros are being stripped from postcode when CSV is opened in excel. I need this output – 0810 but am getting this 810.
I have tried creating a custom function and adding an apostrophe at the start. While this works, it is not being recognised when I try to upload the CSV ( into AusPost website ).
add_filter('woe_get_order_value_my_postcode',function ($value, $order,$fieldname) { $value = '\'' . $order->get_shipping_postcode(); return $value; },10,3);
I have noticed the Phone(Billing) field retains the leading zero when opened in excel. Is there any way to make postcode work the same way?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Leading Zero’ is closed to new replies.