From 1df0e69f4f891676dfef1909ce867f069bf71bfc Mon Sep 17 00:00:00 2001 From: Abdy Franco Date: Tue, 21 Apr 2026 16:05:52 -0600 Subject: [PATCH 1/3] Add options.json for shipping configurable options Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- options.json | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 options.json diff --git a/options.json b/options.json new file mode 100644 index 0000000..8627354 --- /dev/null +++ b/options.json @@ -0,0 +1,90 @@ +{ + "id": 1, + "name": "TheSSLStore Configurable Options", + "description": "Configurable options for TheSSLStore SSL certificate provisioning", + "hidden": 0, + "hide_options": 0, + "options": [ + { + "id": 1, + "label": "Additional Server", + "name": "additional_server", + "description": "Number of additional server licenses for the SSL certificate (0-9)", + "type": "quantity", + "addable": 1, + "editable": 1, + "hidden": 0, + "disable_pricing": 1, + "hide_on_invoice": 1, + "values": [ + { + "id": 1, + "name": "", + "value": "", + "default": 0, + "status": "active", + "order": 0, + "min": 0, + "max": 9, + "step": 1, + "image": null, + "pricing": [ + { + "id": 1, + "term": 1, + "period": "month", + "price": "0.0000", + "price_renews": "0.0000", + "price_transfer": null, + "setup_fee": "0.0000", + "cancel_fee": "0.0000", + "currency": "USD", + "precision": 2 + } + ] + } + ] + }, + { + "id": 2, + "label": "Additional SAN", + "name": "additional_san", + "description": "Number of additional Subject Alternative Names for the SSL certificate", + "type": "quantity", + "addable": 1, + "editable": 1, + "hidden": 0, + "disable_pricing": 1, + "hide_on_invoice": 1, + "values": [ + { + "id": 2, + "name": "", + "value": "", + "default": 0, + "status": "active", + "order": 0, + "min": 0, + "max": null, + "step": 1, + "image": null, + "pricing": [ + { + "id": 2, + "term": 1, + "period": "month", + "price": "0.0000", + "price_renews": "0.0000", + "price_transfer": null, + "setup_fee": "0.0000", + "cancel_fee": "0.0000", + "currency": "USD", + "precision": 2 + } + ] + } + ] + } + ], + "condition_sets": [] +} From 50c6420d6eb2208e638d9c5771962f788cce3f7d Mon Sep 17 00:00:00 2001 From: Abdy Franco Date: Tue, 21 Apr 2026 16:27:00 -0600 Subject: [PATCH 2/3] Fix quantity option values: set required name field Quantity type options require a non-empty name field for validation. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- options.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/options.json b/options.json index 8627354..a5dd068 100644 --- a/options.json +++ b/options.json @@ -19,7 +19,7 @@ "values": [ { "id": 1, - "name": "", + "name": "Additional Server", "value": "", "default": 0, "status": "active", @@ -59,7 +59,7 @@ "values": [ { "id": 2, - "name": "", + "name": "Additional SAN", "value": "", "default": 0, "status": "active", @@ -87,4 +87,4 @@ } ], "condition_sets": [] -} +} \ No newline at end of file From 18dfc44c732d401fefe776c7c0c81a244645fb5c Mon Sep 17 00:00:00 2001 From: Abdy Franco Date: Tue, 21 Apr 2026 16:29:37 -0600 Subject: [PATCH 3/3] Fix quantity option values: use null value instead of empty string Quantity type values are stored as null in the database, not empty string. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- options.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/options.json b/options.json index a5dd068..a606b78 100644 --- a/options.json +++ b/options.json @@ -20,7 +20,7 @@ { "id": 1, "name": "Additional Server", - "value": "", + "value": null, "default": 0, "status": "active", "order": 0, @@ -60,7 +60,7 @@ { "id": 2, "name": "Additional SAN", - "value": "", + "value": null, "default": 0, "status": "active", "order": 0,