Here are a couple more Tea Commerce "features" which should be added to the documentation:
Auto assigned properties on the Order object
Order.CustomerId - If a user is signed in (as evidenced by Membership.GetUser()) at the time the GeneratePaymentForm() method is called, then User.ProviderUserKey is assigned to Order.CustomerId.
Order.PaymentInformation.FirstName, PaymentInformation.LastName, and PaymentInformation.Email - if you add "firstName", "lastName", and "email" properties to the order's custom properties, then these properties will be assigned to the respective PaymentInformation properties whenever the order is saved. These PaymentInformation properties end up being saved as FirstName, LastName, and Email fields in the TeaCommerce_Order table in the database. The typical place to define the custom properties is via the call to AddOrUpdateOrderProperties as documented in Tea Commerce.
More documentation feature requests
Here are a couple more Tea Commerce "features" which should be added to the documentation:
Auto assigned properties on the Order object
Order.CustomerId
- If a user is signed in (as evidenced by Membership.GetUser()) at the time the GeneratePaymentForm() method is called, then User.ProviderUserKey is assigned to Order.CustomerId.Order.PaymentInformation.FirstName
,PaymentInformation.LastName
, andPaymentInformation.Email
- if you add "firstName", "lastName", and "email" properties to the order's custom properties, then these properties will be assigned to the respective PaymentInformation properties whenever the order is saved. These PaymentInformation properties end up being saved as FirstName, LastName, and Email fields in the TeaCommerce_Order table in the database. The typical place to define the custom properties is via the call toAddOrUpdateOrderProperties
as documented in Tea Commerce.Hi Tor,
Thanks for the suggestions. Would you mind raising these (and any others you come across) as issues on the docs github repository?
https://github.com/TeaCommerce/Tea-Commerce-Documentation/
Many thanks
Matt
Yes, forgot :-)
https://github.com/TeaCommerce/Tea-Commerce-Documentation/issues/2#issue-396299468
-Tor
Awesome! Thank you :)
Just to close off on this with an answer, these docs have now been added at https://docs.teacommerce.net/3.0.0/api/order-property/#system-properties
is working on a reply...