• Resolved wallacelin

    (@wallacelin)


    Hello, I’m using this very useful plugin to export orders as XML to be sent via FTP, and need all the values to be uppercase. I tried to figure out the relatively simple PHP function to put in Misc Setting > Custom PHP code to modify output but couldn’t get it to work. Can I have some help in this matter? Thank you!

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

    (@algolplus)

    Hello

    please, try following code.
    thanks, Alex

    add_filter( "woe_xml_output_filter", function($xml, $rec, $formatter) {
     return strtoupper($xml);
    },10,3);
    Plugin Author algol.plus

    (@algolplus)

    Sorry, previous code modifies tags too.

    try this one

    add_filter( "woe_xml_prepare_record", function ($rec ) {
     array_walk_recursive($rec, function(&$item,$key){
       $item = strtoupper($item);
     });
     return $rec;
    });
    Thread Starter wallacelin

    (@wallacelin)

    Thank you, that’s perfect!

    Plugin Author algol.plus

    (@algolplus)

    you’re welcome.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Format Values as Uppercase?’ is closed to new replies.