• Resolved cfeldens

    (@cfeldens)


    Hello, please, I need a lot to export an extra field of subtotal order in JSON.
    In short I need two subtotal fields but the plugin only allows me 1.
    It is possible???
    Please

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author algol.plus

    (@algolplus)

    hello

    Could you paste sample json here? or email it to [email protected] ?
    thanks, alex

    Thread Starter cfeldens

    (@cfeldens)

    Yes, thank you.

    A brief example:

    {
    “order_total”: “10.00”,
    “order_subtotal”: “9.00”,
    “_order_subtotal”: “9.00”, // It does not exist for me. I need him ??
    }

    Please ??

    Plugin Author algol.plus

    (@algolplus)

    try this code to modify json

    add_filter( "woe_json_output_filter", "woe_modify_json_output",10,2);
    function woe_modify_json_output( $json, $data) {
    	$data['_order_subtotal'] =$data['order_subtotal']; 
    	return json_encode($data,JSON_PRETTY_PRINT);
    }
    
    Thread Starter cfeldens

    (@cfeldens)

    Ok very very thanks

    Your plugin is the best

    Your support is the best

    Plugin Author algol.plus

    (@algolplus)

    you’re welcome

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘An extra subtotal field, Is this possible?’ is closed to new replies.