Fluent Commerce Logo
Docs
Sign In

Packing List Generation Logic

Essential knowledge

Author:

Fluent Commerce

Changed on:

17 Dec 2024

Overview

The values on the packing list.

Key points

  • List of values on the packing list 

The values on the packing list are displayed based on the value of the object passed in the code listed below:

  • Customer Info:
  • order.customer.firstName
  • order.customer.lastName -order.customer.primaryEmail -order.customer.primaryPhone -fulfilment.toAddress.street -fulfilment.toAddress.city -fulfilment.toAddress.state -fulfilment.toAddress.postcode -fulfilment.toAddress.country -Order Number: -order.ref
  • Fulfilment Number:
  • fulfilment.id
  • Items Included / Pending Items
    • Product Description:
  • order.item.product.ref
  • order.item.product.name
  • order.item.product.attribute('brand').value
  • order.item.product.attribute('COLOUR_DESC').value
  • order.item.product.attribute('SIZE_DESC' or 'SIZE_NUMBER').value
  • Unit Price:
  • order.item.totalPrice + order.item.totalTaxPrice
  • Quantity:
  • order.item.quantity

Returns Information:

You can have a setting PACKING_SLIP_PROPS which has the following json structure (each field is optional):

1{
2    "returnInfo": "Some info how to do returns/conditions",
3    "contactEmail": "someEmail", // overwrites the retailer email address
4    "contactPhone": "somePhoneNumber", // overwrites the retailer phone number
5    "contactWebsite": "someWebsite"// overwrites the retailer website
6}

Language: json

Name: PACKING_SLIP_PROPS

Description:

sample setting of PACKING_SLIP_PROPS

Contact Us:

1retailer.supportPhone
2retailer.supportEmail
3retailer.websiteUrl
4retailer.logo (not available via GQL)

Language: json

Name: Contact Us

Description:

field can be used in the packing slip

Fluent Commerce

Fluent Commerce