Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Topic author was deleted

    Jan 27, 2014 @ 15:39

    Order 'address' not populating

    Hello,

    I'm able to get everything working on TC except I cannot populate the address field on orders.  I'm using this in a surface controller:

    TC.AddOrUpdateOrderProperty(1, "address", "123 Anywhere St"); //also tried 'billingAddress'

    I can populate 'firstName', 'lastName', 'zipCode' and all the others.  Just not 'address'.  Is there a different key I should be using?  Is there a list that maps all of the typical order field aliases?

  • Comment author was deleted

    Jan 27, 2014 @ 15:52

    Also tried this (from docs) without success:

                var customPropertiesToAdd = new Dictionary<string, string>();

                customPropertiesToAdd.Add("address", "Roemersvej 19c");

                TC.AddOrUpdateOrderProperties(1, customPropertiesToAdd);

  • Anders Burla 2560 posts 8256 karma points
    Jan 27, 2014 @ 15:54
    Anders Burla
    100

    I think it is "streetAddress" - don't know why :)

    You can find the ones we normally use in the starter kit or in the editOrder.cshtml file

    Kind regards
    Anders

  • Comment author was deleted

    Jan 27, 2014 @ 15:59

    Wonderful that worked!  Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft