• Resolved ricardhh10

    (@ricardhh10)


    Hi, first of all thanks for the plugin, it is very useful.

    I have a problem, I have a field “Provincia” that I created with this code to get the value of $state_name_full

    add_filter(‘woe_get_order_value_customer_details’, function ($value, $order, $fieldname) {

    $country_states = WC()->countries->get_states( $order->get_billing_country() );
    $state_name_full = $country_states[ $order->get_billing_state() ];

    $value = ‘Provincia: ‘ . $state_name_full. “\n”;
    return $value;
    }, 10, 3);

    When exporting it, the value is displayed correctly except when it has accents, which is displayed like this:
    https://i.imgur.com/jXK1JgZ.png (the word is Cádiz).

    How could I correct it? the type of file I am exporting is .xlsx

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.