# Track Order

Using this you can ask user his order id and registered email/phone no. and provide him with his order details directly in frontman.

### Connecting Shopify account with Frontman

**View Settings:** Access the "View Settings" option for the Shopify card.

<figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2F4PGdxqbMr2Klt5QIgbMP%2Ftrack%20order.png?alt=media&#x26;token=29f674be-d3ab-4e33-a0fb-dfd9fba65720" alt=""><figcaption></figcaption></figure>

* **Activate Shopify Assist:** Enable Shopify Assist within the Frontman style builder.
* **Enter Shop URL:** Enter your Shopify store URL (e.g., \[invalid URL removed]).

  <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2Fvgvm7SLuOaU57VNHwK3X%2Fconnec%20shopify.png?alt=media&#x26;token=de8a8070-75a1-442d-8256-651f4ef82272" alt=""><figcaption></figcaption></figure>
* **Enter Admin Access Token:** Provide an access token with the necessary permissions for Shopify Assist to function.

  <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FXgzULUiBWQh9039sVYnz%2Ftoken%20point.png?alt=media&#x26;token=913f6dde-ad27-4b59-b9d1-bccbb77d3719" alt=""><figcaption></figcaption></figure>

### How to use Shopify Track order Card

Drag your shopify track order card into story builder and in the default form you will find

1. **Form Heading:** "Shopify Track Order"

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FFHdHwfsVwiTDUvdAVvua%2Ftrack%20order1.png?alt=media&#x26;token=3b9c3f16-dd7e-4b7f-b68b-fbbbda3f83b8" alt=""><figcaption></figcaption></figure>
2. **Order Number:**

   * Label: "What's your Order number?"
   * Input type: Text field
   * **Email Address (Optional):**
     * Label: "What's your registered email address or phone number?" (Allow for either)
     * Input type: Text field
   * **Validation:** If the order number cannot be found, display an error message: "Sorry, we couldn't find your order number in our records."
   * **Fulfillment Message:** Displayed upon successful validation and currently you'll find a sample message with basic system attributes present in the system, you can customize it according to your need.
     * Current message - Current shipment status for your order #{{shopify\_order\_number}} is {{shopify\_shipment\_status}} placed on {{shopify\_order\_creation\_date}}. Here is your tracking ID: {{shopify\_tracking\_id}}. Click this link to track your order {{shopify\_tracking\_url}}<br>

       <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FLEc82mERsiVKmCa6r5kC%2Ftrack%20order%202.png?alt=media&#x26;token=7847f13a-789e-4f9d-8b2f-671ff0c7bff6" alt=""><figcaption></figcaption></figure>
   * Current system attributes for shopify present in frontman<br>
     * **Order Details:**
       * `{{shopify_order_number}}`: Unique identifier for the Shopify order.
       * `{{shopify_order_id}}`: Internal Shopify ID for the order.
       * `{{shopify_order_creation_date}}`: Date and time the order was created on Shopify.
       * `{{shopify_order_cancellation_date}}` (if applicable): Date and time the order was cancelled on Shopify.
       * `{{shopify_email_or_phone}}`: Customer's email address or phone number associated with the order.
     * **Order Status:**
       * `{{shopify_shipment_status}}`: Current shipment status of the order (e.g., fulfilled, partially fulfilled, on hold).
     * **Fulfillment Wait Time:**
       * `{{shopify_wait_time}}` (if applicable): Estimated wait time for order fulfillment.
     * **API Status:**
       * `{{shopify_api_status}}`: Indicates the status of the Shopify API connection within Frontman (e.g., success, failure).
     * **Customer Validation:**
       * `{{shopify_is_validated}}`: Confirms whether the customer information has been validated by Shopify.
     * **Return Details:**
       * `{{shopify_return_request_date}}` (if applicable): Date and time the customer requested a return.
       * `{{shopify_return_type}}` (if applicable): Type of return initiated (e.g., full refund, exchange).
       * `{{shopify_return_deadline}}` (if applicable): Deadline for the customer to return the items.
     * **Shipment Tracking:**
       * `{{shopify_courier_partner}}` (if applicable): Name of the courier company responsible for delivering the order.
       * `{{shopify_tracking_url}}` (if applicable): URL for tracking the order shipment.
       * `{{shopify_tracking_id}}` (if applicable): Unique identifier for tracking the order shipment.

   Other than this you can also add custom user attributes

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FKzLtkYnzFiu9NfeeIaxa%2Ftrack%20order%202.png?alt=media&#x26;token=98fb6848-4a0b-4d19-bdfa-81cf19239bec" alt=""><figcaption></figcaption></figure>

{% content-ref url="../../../../audience/user-attributes" %}
[user-attributes](https://docs.makerobos.com/frontman-enterprise-chatbot-platform/audience/user-attributes)
{% endcontent-ref %}
