• Resolved janbrokes

    (@janbrokes)


    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

    (@wpallimport)

    Hi @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). 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.

    3. Disable CDATA tags: https://d.pr/xtCH8n.

Viewing 1 replies (of 1 total)
  • The topic ‘custom xml settings’ is closed to new replies.