Display Order Items On The Customer Collection Screen
Author:
Fluent Commerce
Changed on:
18 July 2024
Key Points
- It’s possible to enhance Service Point to show order items from the current order on the collection screen.
- This can be achieved by adding a specific setting and making sure that the user’s role has the appropriate permissions.
Steps
Overview
This topic explains the implementation details of adding order items from current order to collection details page in Service Point to help store associates.
Click and Collect increases foot traffic to store and this can be utilised to generate additional revenue if stores can recommend products to customers. Knowing what they recently ordered helps understand their behaviours and motivations to provide better and relevant recommendations.
This feature provides the following functionality:
- Displays the list of order items from customer's current order they they are picking up (verification screen).
- The list includes all order items without limiting to what's in the current parcel.
- Ability to switch on/off using the DISPLAY_ORDER_ITEMS_IN_COLLECTION_SCREEN screen. By default, this setting is off as not all retailers require it.
- Both GI enabled and [compatibility] clients can see the order items.
- An error message indicating the problem is displayed if the user does not have the necessary permission to view the order items.
- Standard paging mechanism is available for order items.
For more information, see Retailer Settings
To display the orders on the screen follow these steps:
1) Add the DISPLAY_ORDER_ITEMS_IN_COLLECTION_SCREEN settings for your retailer.
Setting:
1Endpoint: [http://..api.fluentretail.com/api/v4.1/settings/retailer//DISPLAY_ORDER_ITEMS_IN_COLLECTION_SCREEN](http://<your subdomain>.sandbox.api.fluentretail.com/api/v4.1/settings/retailer/3/DISPLAY_ORDER_ITEMS_IN_COLLECTION_SCREEN)
Language: java
Name: Endpoint
Description:
[Warning: empty required content area]Method: PUT
Token: Retailer
Request Payload:
1{
2 "setting":
3 {
4 "key": "DISPLAY_ORDER_ITEMS_IN_COLLECTION_SCREEN",
5 "value": "true",
6 "type": "BOOLEAN"
7 }
8}
Language: json
Name: Setting Payload
Description:
[Warning: empty required content area]2) Grant ROLE_MANAGER role to your retailer RETAILER CONTEXT
[Endpoint:][http://..api.fluentretail.com/api/v4.1/user//grant](http://<your subdomain>.sandbox.api.fluentretail.com/api/v4.1/user/tsausuat_admin/grant
Method: PUT
Token: Retailer
1{
2 "roleContextList":
3 [
4 {
5 "roleId": "ROLE_MANAGER",
6 "contextType": "RETAILER",
7 "contextId": "<retailer_id>"
8 }
9 ]
10}
Language: json
Name: Request Payload
Description:
[Warning: empty required content area]3) Update the STORE role with the following permissions
Token: Retailer
1mutation{updateRole(input:{
2 name:"STORE"
3 permissions:[
4 {name:"ORDERITEM_VIEW"}
5 {name:"PRODUCT_VIEW"}
6 {name:"VARIANTPRODUCT_VIEW"}
7 {name:"STANDARDPRODUCT_VIEW"}
8 {name:"GROUPPRODUCT_VIEW"}
9 {name:"CATEGORY_VIEW"}
10 ]
11
12}
13
14){name
15permissions{name}}}
Language: java
Name: The Update Role mutation
Description:
[Warning: empty required content area]Ensure to logout and re login to your store on ServicePoint,
To see the Order items on the customer collection screen, logout and return to your store ServicePoint.