digidpedro
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] How do I add attributes to the tagsThank you very much, you guys are awesome 🙂
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] How do I add attributes to the tagsSorry, can you help, I have one more issue.
One of the custom attributes that I want to have in the root tag is dynamic, is there a way to do that?
My root tag is the one bellow, and I want the created attribute to be dynamic.
<semiramis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="com.cisag.app.sales.obj.SalesOrder" locale="en-US-XMLSchemaCompliant" nlsMode="SINGLE_LANGUAGE" created="2021-12-22T14:00:01.1201Z" xsi:schemaLocation="com.cisag.app.sales.obj.SalesOrder SalesOrder.xsd" dateTimeMode="COMPACT">Thanks in advance!
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] How do I add attributes to the tagsThanks a lot, it worked well 🙂
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] How do I add attributes to the tagsThank you for your reply and help!
But can you say where exactly where is supposed to add that code for the first tag?
It’s here?//activate hooks only when export starts add_filter('woe_settings_validate_defaults', function ($settings) { if( !empty($settings['custom_xml_format']) ) { $settings['format'] = "XML";//force format $settings['format_xml_root_tag'] = ""; //force main tag add_filter("woe_xml_output_filter", array($this,"woe_xml_make_order"), 10, 2 ); } return $settings; } );The second tag, can I add it here?
// make xml for one order $xml = new SimpleXMLElement( "<SalesOrder xmlns="com.cisag.app.sales.obj.SalesOrder"/>" );Thanks in advance!