Contact - Liquid Object Reference
On this page
Description
The Contact object contains information about an individual customer who has an Account.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the Contact Salesforce object. A theme writes it as contact.
| Liquid attribute | Salesforce field |
|---|---|
sso_provider |
s_c__SSO_Provider__c |
username |
s_c__Username__c |
Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from contact.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
account |
Account | Returns the Account for this Contact |
campaigns |
List[Campaign] | Returns a list of Campaigns that this Contact is subscribed to |
can_purchase_for_account? |
Boolean | Indicates whether the Contact is allowed to make purchases for this Contact’s Account using Pay by Account |
can_use_account_credit? |
Boolean | Indicates whether the Contact is allowed to make purchases for this Contact’s Account using Account Credit |
can_use_account_points? |
Boolean | Indicates whether the Contact is allowed to make purchases for this Contact’s Account using Account Points |
can_use_account_pricing? |
Boolean | Indicates whether the Contact is allowed to make purchases for this Contact’s Account using the Account’s Pricing |
carts |
List[Cart] | Returns a list of carts owned by this Contact that can be resumed |
email |
String | Returns the value of the Email attribute |
firstname |
String | Returns the value of the Firstname attribute |
fulfillments |
List[Fulfillment] | Returns a list of Fulfillments for this Contact |
has_login? |
Boolean | Returns true if the Contact has a login account (ie saved a password) |
id |
String | Returns the unique id for this Contact |
last_login_date |
Timestamp | Returns the date and time when the Contact last logged in |
lastname |
String | Returns the value of the Lastname attribute |
mailing_address_lines |
List[String] | Returns a list of all the address lines in the Mailing Street |
mailing_city |
String | Returns the value of the City attribute of the Mailing Address |
mailing_country |
String | Returns the value of the Country attribute of the Mailing Address |
mailing_postal_code |
String | Returns the value of the Postal Code attribute of the Mailing Address |
mailing_state |
String | Returns the value of the State attribute of the Mailing Address |
mailing_street |
String | Returns the value of the Street attribute of the Mailing Address |
membership |
Membership | Returns the associated Membership for this Contact |
mobile_phone |
String | Returns the value of the Mobile Phone attribute |
name |
String | Returns the value of the Name attribute |
orders |
List[Order] | Returns a list of Orders for this Contact |
phone |
String | Returns the value of the Phone attribute |
sso_provider |
String | Returns the SSO Provider this Contact logs in with |
subscriptions |
List[Subscription] | Returns a list of Subscriptions for this Contact |
terms_accepted_on |
Timestamp | Returns the date and time when the Contact accepted the terms and conditions |
username |
String | Returns the value of the Username attribute |
Available on
- AccountCreditTransaction - Liquid Object Reference —
contact - AccountPointsTransaction - Liquid Object Reference —
contact - Booking - Liquid Object Reference —
contact - BookingAttendee - Liquid Object Reference —
contact - Cart - Liquid Object Reference —
contact - CustomFormSubmission - Liquid Object Reference —
contact - Global - Liquid Object Reference —
current_customer - Order - Liquid Object Reference —
bill_to_contact,contact,ship_to_contact - PromotionScope - Liquid Object Reference —
contact - Subscription - Liquid Object Reference —
contact
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.