Fluent Commerce Logo
Docs
Sign In

PROXIMITY.WEIGHTING.FACTOR

Setting

Changed on:

2 Jan 2024

Overview

This setting stores the default values for proximity and quantity parameters to calculate the weightage to decide the order of stores in which they will be picked up for fulfilment.SearchInventoryCommonRule uses this setting.


Setting AreaWorkflow, Orders
Supported context levels:RETAILER

Overview

This setting stores the default values for proximity and quantity parameters to calculate the weightage to decide the order of stores in which they will be picked up for fulfilment.SearchInventoryCommonRule uses this setting.


Values

Data TypeValues
INTEGER

Sample Values:

  • 50

Detailed technical description

Formula is : Fulfilled score = (if(availableQty >= RequiredQty) then return 1 else return (available/requested) + ... )

No of itemsdistance score = (nearestDistance/locationDistance)

Overall weightage = Fulfilment score * quantity weightage% + distance score * distance weightage%

Configuration example

1POST: {{fluentApiHost}}/graphql
2
3
4GraphQL Query:
5mutation CreateSetting {
6createSetting(input: {
7		name: "PROXIMITY.WEIGHTING.FACTOR", 
8		valueType: "INTEGER", 
9		value: "32", 
10		context: "RETAILER", 
11		contextId:1}) {
12    id
13    name
14  }
15}

Language: graphqlschema

Update example

1POST {{fluentApiHost}}/graphql
2
3mutation updateSetting {
4  updateSetting(input: {
5		id: 5001464,
6		name: "PROXIMITY.WEIGHTING.FACTOR", 
7		valueType: "INTEGER", 
8		value: "32", 
9		context: "RETAILER", 
10		contextId: 1}) {
11    id
12    name
13  }
14}
15

Language: graphqlschema

Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.

Fluent Logo