Title: custom xml settings
Last modified: June 30, 2018

---

# custom xml settings

 *  Resolved [janbrokes](https://wordpress.org/support/users/janbrokes/)
 * (@janbrokes)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/custom-xml-settings/)
 * Hello , this part of my code: `
    <!–order itempolozka–> <ord:orderItem>
 *  <ord:text>{Product Name}</ord:text>
    <ord:quantity>{Quantity}</ord:quantity>
   <ord:delivered>0</ord:delivered> <ord:rateVAT>high</ord:rateVAT> <ord:homeCurrency
   ><typ:unitPrice>{Item Cost}</typ:unitPrice></ord:homeCurrency> <ord:stockItem
   ><typ:stockItem><typ:ids>{SKU}</typ:ids></typ:stockItem></ord:stockItem> </ord:
   orderItem>`
 * but this is the wrong result
    <ord:orderItem> <ord:text>Pleťová voda 100ml- complexion
   water</ord:text> <ord:text> Pleťová voda se solí z mrtvého moře 250ml </ord:text
   > <ord:text>Koupelový pudr moře 100ml</ord:text> <ord:text> Pleťový krém noční
   omlazovací 50ml-complexion cream night </ord:text> <ord:text> koupelová sůl pacific
   sun hrubá modrá plast 380g </ord:text> <ord:quantity>2</ord:quantity> <ord:quantity
   >1</ord:quantity> <ord:quantity>1</ord:quantity> <ord:quantity>1</ord:quantity
   > <ord:quantity>1</ord:quantity> <ord:delivered></ord:delivered> <ord:rateVAT
   >high</ord:rateVAT> <ord:homeCurrency> <typ:unitPrice>77.00</typ:unitPrice> <
   typ:unitPrice>87.00</typ:unitPrice> <typ:unitPrice>75.00</typ:unitPrice> <typ:
   unitPrice>77.00</typ:unitPrice> <typ:unitPrice>49.00</typ:unitPrice> </ord:homeCurrency
   > <ord:stockItem> <typ:stockItem> <typ:ids>96849</typ:ids> <typ:ids>96090</typ:
   ids> <typ:ids>12463</typ:ids> <typ:ids>90007</typ:ids> <typ:ids>70401</typ:ids
   > </typ:stockItem> </ord:stockItem> </ord:orderItem>
 * Have you any idea how to change it?
    Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/custom-xml-settings/#post-10455650)
 * Hi [@janbrokes](https://wordpress.org/support/users/janbrokes/)
 * I see that we’ve already solved this for you via our support system. In case 
   it helps anyone else, you can change the item loop in a WooCommerce Orders custom
   XML export like so:
 * 1. Pass the order item information to a custom PHP function (see: [https://d.pr/TD4D5j](https://d.pr/TD4D5j)).
   Example:
 *     ```
       <items>
         [my_output_items({SKU},{Product ID},{Quantity},{Item Cost})]
       </items>
       ```
   
 * 2. Save the code for your function in the Function Editor. Example: [https://d.pr/n/O1XOfP](https://d.pr/n/O1XOfP).
 * 3. Disable CDATA tags: [https://d.pr/xtCH8n](https://d.pr/xtCH8n).

Viewing 1 replies (of 1 total)

The topic ‘custom xml settings’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-export/assets/icon-256x256.png?rev=2570162)
 * [WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel](https://wordpress.org/plugins/wp-all-export/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-export/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-export/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-export/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-export/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-export/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/custom-xml-settings/#post-10455650)
 * Status: resolved