EcoFee
EcoFeeRule
Returns ecoFee, category, and weight of linear products
Notification level: Not applicable
Key | Value |
---|---|
ID | EcoFeeRule |
Translation key | Not applicable |
Overload Parameter
The overload is formatted as a JSON object, in which each property gives us the range to compute the weight of linear products and compute the ecofee price.
Key name | Type | Default value | Description |
---|---|---|---|
* | string | – | Mandatory This will be category id which will be the same as paramater ecoFeeCategory parameter which will be available on the product. It can be anything. |
weights | array | – | Mandatory. Defines the range of weights which will have min, max, and price set for category. |
Note:
Overloads will be same as Sample json provided below.
Sample
{
"category_1":{
"weights":[
{
"min":0.5,
"max":0.5,
"price":0.04
},
{
"min":0.5,
"max":1,
"price":0.12
},
{
"min":1,
"max":2,
"price":0.2
},
{
"min":2,
"max":5,
"price":0.4
},
{
"min":5,
"max":10,
"price":1
},
{
"min":10,
"max":20,
"price":2.2
},
{
"min":20,
"max":30,
"price":3.5
},
{
"min":30,
"max":40,
"price":4.7
},
{
"min":40,
"max":60,
"price":6.7
},
{
"min":60,
"max":100,
"price":10.6
},
{
"min":100,
"max":150,
"price":18
},
{
"min":150,
"max":200,
"price":24
},
{
"min":200,
"max":250,
"price":30
},
{
"min":250,
"max":300,
"price":38
},
{
"min":300,
"max":400,
"price":47
}
],
"extra":{
"min":400,
"step":100,
"price":13.5
}
},
"category_2":{
"weights":[
{
"min":0.5,
"max":0.5,
"price":0.04
},
{
"min":0.5,
"max":1,
"price":0.1
},
{
"min":1,
"max":2,
"price":0.17
},
{
"min":2,
"max":5,
"price":0.32
},
{
"min":5,
"max":10,
"price":0.82
},
{
"min":10,
"max":20,
"price":1.8
},
{
"min":20,
"max":30,
"price":2.8
},
{
"min":30,
"max":40,
"price":3.9
},
{
"min":40,
"max":60,
"price":5.3
},
{
"min":60,
"max":100,
"price":8.5
},
{
"min":100,
"max":150,
"price":15
},
{
"min":150,
"max":200,
"price":19.5
},
{
"min":200,
"max":250,
"price":25
},
{
"min":250,
"max":300,
"price":33
},
{
"min":300,
"max":400,
"price":41
}
],
"extra":{
"min":400,
"step":100,
"price":10.5
}
},
"category_3":{
"weights":[
{
"min":0.5,
"max":0.5,
"price":0.02
},
{
"min":0.5,
"max":1,
"price":0.07
},
{
"min":1,
"max":2,
"price":0.12
},
{
"min":2,
"max":5,
"price":0.22
},
{
"min":5,
"max":10,
"price":0.56
},
{
"min":10,
"max":20,
"price":1.3
},
{
"min":20,
"max":30,
"price":2
},
{
"min":30,
"max":40,
"price":2.8
},
{
"min":40,
"max":60,
"price":3.7
},
{
"min":60,
"max":100,
"price":6.2
},
{
"min":100,
"max":150,
"price":11
},
{
"min":150,
"max":200,
"price":14
},
{
"min":200,
"max":250,
"price":18
},
{
"min":250,
"max":300,
"price":24
},
{
"min":300,
"max":400,
"price":30
}
],
"extra":{
"min":400,
"step":100,
"price":7.5
}
},
"category_4":{
"weights":[
{
"min":0.5,
"max":0.5,
"price":0.02
},
{
"min":0.5,
"max":1,
"price":0.06
},
{
"min":1,
"max":2,
"price":0.11
},
{
"min":2,
"max":5,
"price":0.19
},
{
"min":5,
"max":10,
"price":0.48
},
{
"min":10,
"max":20,
"price":1.15
},
{
"min":20,
"max":30,
"price":1.75
},
{
"min":30,
"max":40,
"price":2.3
},
{
"min":40,
"max":60,
"price":3.2
},
{
"min":60,
"max":100,
"price":5.3
},
{
"min":100,
"max":150,
"price":9.5
},
{
"min":150,
"max":200,
"price":12
},
{
"min":200,
"max":250,
"price":15
},
{
"min":250,
"max":300,
"price":21
},
{
"min":300,
"max":400,
"price":26
}
],
"extra":{
"min":400,
"step":100,
"price":6.3
}
}
}
This rule is used to calculate ecofee, category and weight of linear products and add it in BOM and export worktop.
Trigger Conditions
This rule is triggered for linear products having the parameter "ecoFeeCategory" on a product and parameter "surfaceWeight" for worktops & wallpanels and "linearweight" for other linear.