Developer forum

Forum » Integration » Cart Delivery Address Missing when Integrating with AX

Cart Delivery Address Missing when Integrating with AX

Andrew Rushworth
Reply

Hi,

My client is currently on version 9.8.8, and the live order integration with AX does not seem to be sending through the Shipping address information to AX at each step in the cart (multi-step checkout). If I look in the logs the address fields are in the XML, but the data is blank as per below.

Does this need to be configured?

            <column columnName="OrderDeliveryAddress"></column>
            <column columnName="OrderDeliveryAddress2"></column>
            <column columnName="OrderDeliveryCity"></column>
            <column columnName="OrderDeliveryState"></column>
            <column columnName="OrderDeliveryZip"></column>
            <column columnName="OrderDeliveryCountryCode">ZA</column>
            <column columnName="OrderDeliveryEmail"></column>
            <column columnName="OrderDeliveryPhone"></column>
            <column columnName="OrderDeliveryFax"></column>
            <column columnName="OrderDeliveryCompany"></column>

Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Andrew,
this information is filled from the order Delivery* properties, the Live integration method source code is below:
private void AddOrderDeliveryInformation(XmlElement orderNode, Order order)
        {
            AddChildXmlNode(orderNode, "OrderDeliveryName", !string.IsNullOrWhiteSpace(order.DeliveryName) ? order.DeliveryName : order.CustomerName);
            AddChildXmlNode(orderNode, "OrderDeliveryAddress", order.DeliveryAddress);
            AddChildXmlNode(orderNode, "OrderDeliveryAddress2", order.DeliveryAddress2);
            AddChildXmlNode(orderNode, "OrderDeliveryCity", order.DeliveryCity);
            AddChildXmlNode(orderNode, "OrderDeliveryState", order.DeliveryRegion);
            AddChildXmlNode(orderNode, "OrderDeliveryZip", order.DeliveryZip);
            AddChildXmlNode(orderNode, "OrderDeliveryCountryCode", order.DeliveryCountryCode);
            AddChildXmlNode(orderNode, "OrderDeliveryEmail", order.DeliveryEmail);
            AddChildXmlNode(orderNode, "OrderDeliveryPhone", order.DeliveryPhone);
            AddChildXmlNode(orderNode, "OrderDeliveryFax", order.DeliveryFax);
            AddChildXmlNode(orderNode, "OrderDeliveryCompany", order.DeliveryCompany);
        }
So try to check your Dynamicweb order gets those properties filled with not empty values, then they will be passed in the request.
Also you can try to set the Global setting: /Globalsettings/Ecom/Cart/CopyCustomerFieldsToDelivery
and check if it will help with this, this option will set Delivery Address from the Customer Adress information.
Kind regards, Dmitrij

 

You must be logged in to post in the forum