Copied to clipboard

Flag this post as spam?

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


  • Tor Langlo 151 posts 400 karma points
    Jan 06, 2019 @ 17:35
    Tor Langlo
    0

    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, 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.
  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Jan 06, 2019 @ 20:56
    Matt Brailsford
    0

    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

  • Tor Langlo 151 posts 400 karma points
    Jan 06, 2019 @ 22:09
  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Jan 07, 2019 @ 10:42
    Matt Brailsford
    0

    Awesome! Thank you :)

  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Jan 07, 2019 @ 14:55
    Matt Brailsford
    100

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies