WordPress get_option() on AJAX issue

Well, for anyone that might need this in the future.

Woocommerce overrides the get_option() method with this line:
add_filter('option_woocommerce_currency_pos', array($this, 'filter_currency_position_option'));

Which then calls filter_currency_position_option

The first few lines of this method are:

function filter_currency_position_option($value){
    global $pagenow;

    if( ( is_ajax() || ( $pagenow == 'post-new.php' && isset( $_GET['post_type'] ) && $_GET['post_type'] == 'shop_order' ) ) && isset( $_COOKIE[ '_wcml_order_currency' ] ) ){
        $currency_code = $_COOKIE[ '_wcml_order_currency' ];

W-T-F

Okay, so it stores the currency position in a cookie for AJAX visits… I’m not sure if I can agree with this, but at least now I know.

Hope this will help someone else.