Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Topic author was deleted
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
Also tried this (from docs) without success:
var customPropertiesToAdd = new Dictionary<string, string>();
customPropertiesToAdd.Add("address", "Roemersvej 19c");
TC.AddOrUpdateOrderProperties(1, customPropertiesToAdd);
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 regardsAnders
Wonderful that worked! Thanks!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Topic author was deleted
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:
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
Also tried this (from docs) without success:
var customPropertiesToAdd = new Dictionary<string, string>();
customPropertiesToAdd.Add("address", "Roemersvej 19c");
TC.AddOrUpdateOrderProperties(1, customPropertiesToAdd);
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
Wonderful that worked! Thanks!
is working on a reply...