Order Property

AddOrUpdateOrderProperty

Adds or updates a single custom order property on the current order. If the customer does not have a current order a new one will be created.

    AddOrUpdateOrderProperties

    Adds or updates a collection of custom order properties on the current order. If the customer does not have a current order a new one will be created.

      System Properties

      When updating an order, as well as the properties passed via the AddOrUpdateOrderProperty or AddOrUpdateOrderProperties methods properties collection as documented above, Tea Commerce will also add some system defined properties to the Order who's values will be automatically extracted. Details of these properties and how they are extracted can be found below.

      Name Source Description
      CustomerId Current logged in Members member ID. Extracted at the time of GeneratePaymentForm() being called. The ID of the customer making the order. Useful if you have a members only store and you want to find all orders belonging to the same customer.
      PaymentInformation.FirstName Extracted from an Orders properties collection. Property alias must be "firstName". The first name of the person making the order.
      PaymentInformation.LastName Extracted from an Orders properties collection. Property alias must be "lastName". The last name of the person making the order.
      PaymentInformation.Email Extracted from an Orders properties collection. Property alias must be "email". The email address of the person making the order.
      Last Updated: 9/2/2019, 10:22:34 AM