feat(dashboard,core,modules): free shipping promotion in dashboard (#13263)

* feat(dashboard,core,modules): free shipping promotion in dashboard

* self-review

* adapt for edit to work

* changeset

* integration tests

* across for each

* remove only from tests

* remove console log

* revert to across

* update wording for shipping promotions

* modify changeset

* suggestion frane

* fix i18n schema
This commit is contained in:
William Bouchard
2025-08-22 16:30:30 -04:00
committed by GitHub
parent 92e3b2b432
commit 486621383a
22 changed files with 474 additions and 331 deletions
@@ -7516,14 +7516,47 @@
"target-rules": {
"type": "object",
"properties": {
"title": {
"type": "string"
"order": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": ["title", "description"],
"additionalProperties": false
},
"description": {
"type": "string"
"shipping_methods": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": ["title", "description"],
"additionalProperties": false
},
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": ["title", "description"],
"additionalProperties": false
}
},
"required": ["title", "description"],
"required": ["order", "shipping_methods", "items"],
"additionalProperties": false
},
"buy-rules": {
@@ -2010,8 +2010,18 @@
"description": "Which customer is allowed to use the promotion code? Promotion code can be used by all customers if left untouched."
},
"target-rules": {
"title": "What items will the promotion be applied to?",
"description": "The promotion will be applied to items that match the following conditions."
"order": {
"title": "What items will the promotion be applied to?",
"description": "The promotion will be applied to items that match the following conditions."
},
"shipping_methods": {
"title": "What shipping methods will the promotion be applied to?",
"description": "The promotion will be applied to shipping methods that match the following conditions."
},
"items": {
"title": "What items will the promotion be applied to?",
"description": "The promotion will be applied to items that match the following conditions."
}
},
"buy-rules": {
"title": "What needs to be in the cart to unlock the promotion?",