feat(dashboard): SO cart item total rules UI (#10386)
This commit is contained in:
1 parent
9e797dc3d2
commit
a1a1e0e789
33 files changed
+1947
-190
No files matched your search
@@ -5544,6 +5544,144 @@
|
||||
"required": ["action"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"conditionalPrices": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"header": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"attributes": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cartItemTotal": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"cartItemTotal"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"summaries": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"range": {
|
||||
"type": "string"
|
||||
},
|
||||
"greaterThan": {
|
||||
"type": "string"
|
||||
},
|
||||
"lessThan": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"range",
|
||||
"greaterThan",
|
||||
"lessThan"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"actions": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"addPrice": {
|
||||
"type": "string"
|
||||
},
|
||||
"manageConditionalPrices": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"addPrice",
|
||||
"manageConditionalPrices"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"rules": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"amount": {
|
||||
"type": "string"
|
||||
},
|
||||
"gte": {
|
||||
"type": "string"
|
||||
},
|
||||
"lte": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"amount",
|
||||
"gte",
|
||||
"lte"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"customRules": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"label": {
|
||||
"type": "string"
|
||||
},
|
||||
"tooltip": {
|
||||
"type": "string"
|
||||
},
|
||||
"eq": {
|
||||
"type": "string"
|
||||
},
|
||||
"gt": {
|
||||
"type": "string"
|
||||
},
|
||||
"lt": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"label",
|
||||
"tooltip",
|
||||
"eq",
|
||||
"gt",
|
||||
"lt"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"errors": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"amountRequired": {
|
||||
"type": "string"
|
||||
},
|
||||
"minOrMaxRequired": {
|
||||
"type": "string"
|
||||
},
|
||||
"minGreaterThanMax": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"amountRequired",
|
||||
"minOrMaxRequired",
|
||||
"minGreaterThanMax"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"header",
|
||||
"description",
|
||||
"attributes",
|
||||
"summaries",
|
||||
"actions",
|
||||
"rules",
|
||||
"customRules",
|
||||
"errors"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"fields": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -5644,7 +5782,14 @@
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": ["create", "delete", "edit", "pricing", "fields"],
|
||||
"required": [
|
||||
"create",
|
||||
"delete",
|
||||
"edit",
|
||||
"pricing",
|
||||
"conditionalPrices",
|
||||
"fields"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"serviceZones": {
|
||||
|
||||
@@ -1463,6 +1463,39 @@
|
||||
"pricing": {
|
||||
"action": "Edit prices"
|
||||
},
|
||||
"conditionalPrices": {
|
||||
"header": "Conditional Prices for {{name}}",
|
||||
"description": "Manage the conditional prices for this shipping option based on the cart item total.",
|
||||
"attributes": {
|
||||
"cartItemTotal": "Cart item total"
|
||||
},
|
||||
"summaries": {
|
||||
"range": "If <0>{{attribute}}</0> is between <1>{{gte}}</1> and <2>{{lte}}</2>",
|
||||
"greaterThan": "If <0>{{attribute}}</0> ≥ <1>{{gte}}</1>",
|
||||
"lessThan": "If <0>{{attribute}}</0> ≤ <1>{{lte}}</1>"
|
||||
},
|
||||
"actions": {
|
||||
"addPrice": "Add price",
|
||||
"manageConditionalPrices": "Manage conditional prices"
|
||||
},
|
||||
"rules": {
|
||||
"amount": "Shipping option price",
|
||||
"gte": "Minimum cart item total",
|
||||
"lte": "Maximum cart item total"
|
||||
},
|
||||
"customRules": {
|
||||
"label": "Custom rules",
|
||||
"tooltip": "This conditional price has rules that cannot be managed in the dashboard.",
|
||||
"eq": "Cart item total must equal",
|
||||
"gt": "Cart item total must be greater than",
|
||||
"lt": "Cart item total must be less than"
|
||||
},
|
||||
"errors": {
|
||||
"amountRequired": "Shipping option price is required",
|
||||
"minOrMaxRequired": "At least one of minimum or maximum cart item total must be provided",
|
||||
"minGreaterThanMax": "Minimum cart item total must be less than or equal to maximum cart item total"
|
||||
}
|
||||
},
|
||||
"fields": {
|
||||
"count": {
|
||||
"shipping_one": "{{count}} shipping option",
|
||||
|
||||
Reference in new issue
Block a user