Closed sjcallender closed 1 month ago
You can if you like! You just need to alter your syntax.
'services' => [
'S_GROUND' => [
'enabled' => true,
'name' => 'UPS Ground (1-5 Days)',
'shippingCategories' => [
1 => [
'condition' => 'disallow',
],
],
],
],
Note that the array index 1
in this case refers to your Shipping Category ID, not just the array index.
Question
Is it possible to set the values for a service's 'Shipping Category Conditions' values in the config/postie.php file?
It appears not. Since we need specific rules, we're unable to use the
services
config at all as it sets each category condition to "Allow."Additional context
We have this our config/postie.php file...
In the CP, the result is...
...where we can't set a condition to "Disallow."
We have to remove the
services
config in order to achieve the following...We'd like to be able to define all this in the config file if possible.