Created
January 27, 2022 01:50
-
-
Save RenzoTejada/791c1e76f92b90b07d182339d3a88037 to your computer and use it in GitHub Desktop.
Exportar pedidos con Ubigeo Perú
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('woe_get_order_value__billing_departamento', | |
function($value,$order,$item){ | |
return rt_ubigeo_get_departamento_por_id($value)['departamento']; | |
}, | |
10,3); | |
add_filter('woe_get_order_value__billing_provincia', | |
function($value,$order,$item){ | |
return rt_ubigeo_get_provincia_por_id($value)['provincia']; | |
}, | |
10,3); | |
add_filter('woe_get_order_value__billing_distrito', | |
function($value,$order,$item){ | |
return rt_ubigeo_get_distrito_por_id($value)['distrito']; | |
}, | |
10,3); | |
add_filter('woe_get_order_value__shipping_departamento', | |
function($value,$order,$item){ | |
return rt_ubigeo_get_departamento_por_id($value)['departamento']; | |
}, | |
10,3); | |
add_filter('woe_get_order_value__shipping_provincia', | |
function($value,$order,$item){ | |
return rt_ubigeo_get_provincia_por_id($value)['provincia']; | |
}, | |
10,3); | |
add_filter('woe_get_order_value__shipping_distrito', | |
function($value,$order,$item){ | |
return rt_ubigeo_get_distrito_por_id($value)['distrito']; | |
}, | |
10,3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment