hello
for which state ? shipping? billing ?
We support https://docs.algolplus.com/algol_order_export/hooks-filters/
So you can just use substr($value,0,20)
For shipping. Yeah problem is I have no idea about php, be nice if there was some form of click and drop php 🙂
For example shipping state has 24 characters and i want to export max 20 characters.
Hope i make sense 🙂
please, open section “Misc Settings” and add this code
add_filter('woe_get_order_value_shipping_state_full',function ($value, $order,$fieldname) {
$value = substr($value,0,20);
return $value;
},10,3);
Thanks very much. What does the 10,3 mean at the end?