• Good morning,
    
    I added the code: https://docs.algolplus.com/algol_order_export/woocommerce-bookings/ in order to be able to add the reservation information to my xml.
    
    I have a problem, the product xml tags are displayed as attributes. I would like to display them as a simple tag.
    
    Plan :
    
    <User>
    
       <Billing_First_Name>Navy</Billing_First_Name>
    
       <Billing_Last_Name>AUDE</Billing_Last_Name>
    
       <Billing_Email>[email protected]</Billing_Email>
    
       <Billing_Phone>+33670868872</Billing_Phone>
    
       <Products>
    
         <46>
    
           <Sku>LOCBUR3</Sku>
    
           <Booking_Start_Date>September 26, 2023 9:00 a.m.</Booking_Start_Date>
    
           <Booking_End_Date>September 26, 2023 3:00 p.m.</Booking_End_Date>
    
           <Booking_Resource>Yes</Booking_Resource>
    
         </46>
    
       </Products>.
    
    I would like to see:
    
    <User>
    
       <Billing_First_Name>Navy</Billing_First_Name>
    
       <Billing_Last_Name>AUDE</Billing_Last_Name>
    
       <Billing_Email>[email protected]</Billing_Email>
    
       <Billing_Phone>+33670868872</Billing_Phone>
    
       <Sku>LOCBUR3</Sku>
    
      <Booking_Start_Date>September 26, 2023 9:00 a.m.</Booking_Start_Date>
    
      <Booking_End_Date>September 26, 2023 3:00 p.m.</Booking_End_Date>
    
      <Booking_Resource>Yes</Booking_Resource>
    
    Can you help me please ?
    
    Thank you so much
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hello

    How should it looks like if you will have 2-3 bookings inside one order ?

    Thread Starter cmss09

    (@cmss09)

    Hello ,

    <User>
    
    <order>
    
    ??<Billing_First_Name>Navy</Billing_First_Name>
    
    ??<Billing_Last_Name>AUDE</Billing_Last_Name>
    
    ??<Billing_Email>[email protected]</Billing_Email>
    
    ??<Billing_Phone>+33670868872</Billing_Phone>
    
    ??<product>LOCBUR3</product>
    
    ? <Booking_Start_Date>September 26, 2023 9:00 a.m.</Booking_Start_Date>
    
    ? <Booking_End_Date>September 26, 2023 3:00 p.m.</Booking_End_Date>
    
    ? <Booking_Resource>Yes</Booking_Resource>
    
    </order>
    
    <order>
    
    ?<Billing_First_Name>Navy</Billing_First_Name>
    
    ??<Billing_Last_Name>AUDE</Billing_Last_Name>
    
    ??<Billing_Email>[email protected]</Billing_Email>
    
    ??<Billing_Phone>+33670868872</Billing_Phone>
    
    ??<product>LOCBUR1</product>
    
    ? <Booking_Start_Date>September 26, 2023 5:00 p.m.</Booking_Start_Date>
    
    ? <Booking_End_Date>September 26, 2023 10:00 p.m.</Booking_End_Date>
    
    ? <Booking_Resource>Yes</Booking_Resource>
    
    </order>
    
    <User>
    
    do you think it's possible?
    
    Thank you so much
    Thread Starter cmss09

    (@cmss09)

    correction of my previous message

    <User>
    
    <order>
    
    <Billing_First_Name>Navy</Billing_First_Name>
    <Billing_Last_Name>AUDE</Billing_Last_Name>
    <Billing_Email>[email protected]</Billing_Email>
    <Billing_Phone>+33670868872</Billing_Phone>
    <product>LOCBUR3</product>
    <Booking_Start_Date>September 26, 2023 9:00 a.m.</Booking_Start_Date>
    <Booking_End_Date>September 26, 2023 3:00 p.m.</Booking_End_Date>
    <Booking_Resource>Yes</Booking_Resource>
    <product>….</product>
    <booking_start_date>…
    <booking_stard_date>…
    
    </order>
    </user>
    Plugin Author algol.plus

    (@algolplus)

    so each booking should create separate entry <order> ?

    I don’t see easy/quick solution . It requires some programming in any case.

    Please, visit https://docs.algolplus.com/algol_order_export/sample-addons/
    Download and install XML plugin ( via >Plugins>Add New>Upload)
    Go back to export – you should mark checkbox at bottom (just above buttons)
    Use FileZilla to edit file /wp-content/plugins/woe-custom-xml/woe-custom-xml.php

    Thread Starter cmss09

    (@cmss09)

    Good morning,

    Thank you for your quick response.
    I just want to ungroup the product elements. I would like the product elements not to be in products.

    Example of what I would like:

    <?xml version=”1.0″ encoding=”ISO-8859-1″ standalone=”yes”?>

    <RESERVATIONS>

    <RESERVATION>

    <GROUPE>location1</GROUPE>

    <NOM>PIERRE</NOM>

    <PRENOM>STEVEN</PRENOM>

    <ARRIVEE>30/07/2013 16:00</ARRIVEE>

    <DEPART>31/07/2013 11:00</DEPART>

    <COD>912491</COD>

    </RESERVATION>

    <RESERVATION>

    <GROUPE>location2</GROUPE>

    <NOM>OLIVIER</NOM>

    <PRENOM>HENRY</PRENOM>

    <ARRIVEE>10/08/2013 17:00</ARRIVEE>

    <DEPART>10/08/2013 15:00</DEPART>

    <COD>776085</COD>

    </RESERVATION> <RESERVATION>

    <GROUPE>location3</GROUPE>

    <NOM>ALEX</NOM>

    <PRENOM>JACQUES</PRENOM>

    <ARRIVEE>12/08/2013 14:00</ARRIVEE>

    <DEPART>12/08/2013 21:00</DEPART>

    <COD>620372</COD>

    </RESERVATION>

    What I currently have:
    
    “Billing_Phone> +33670868872</Billing_Phone>
    <Products>
    <46>
    <Sku>LOCBUR3 </Sku>
    <Booking_Start_Date> September 26, 2023 9:00 a.m.</Booking Start_Date> <Booking_End_Date> September 26, 2023 3:00 p.m.</Booking_End_Date>
    <Booking_Resource> Yes</Booking_Resource>
    </46>
    </Products>
    </User>
    
    Is my request clearer to you?
    
    Thank you so much
    
    
    Plugin Author algol.plus

    (@algolplus)

    Yes, but it will require programming in any case .

    Please, hire php programmer, he can contact us and we’ll help him for free.

    But we just have no time for any custom work

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Balises xml woocommerce bookings’ is closed to new replies.