WordPress.org

Ready to get started?Download WordPress

Forums

Forms: 3rd-Party Xml Post
Customize XML structure (2 posts)

  1. yanivjs
    Member
    Posted 5 months ago #

    Hi,

    I'm trying to adjust the XML structure to fit ZebraCRM. Is there a way to have the XML structure customized like this:

    <?xml version="1.0" encoding="utf-8"?>
    <ROOT>
    <PERMISSION>
    <USERNAME>Mark</USERNAME>
    <PASSWORD>1234567</PASSWORD>
    </PERMISSION>
    <CARD_TYPE>private_customer</CARD_TYPE>
    <CUST_DETAILS>
    <P_N></P_N>
    <MAIL></MAIL>
    <REM></REM>
    <SOURCE>Website</SOURCE>
    </CUST_DETAILS>
    </ROOT>

    Only P_N, MAIL and REM receive values from the form submission, the rest is static - its stays the same in all forms submitted.

    I tried altering with forms-3rdparty-xpost.php, but its a long shot for me since I dont know much php or JS.

    Any hint on this?

    Thanks!

    Yaniv

    https://wordpress.org/plugins/forms-3rd-party-xpost/

  2. zaus
    Member
    Plugin Author

    Posted 1 month ago #

    Hi, sorry for the delay -- try the latest version 0.2.

    You can specify nesting with / in the field mapping names, so:

    * permission/username
    * permission/password
    * cust_details/p_n
    * etc

    should work for you.

Reply

You must log in to post.

About this Plugin

About this Topic