We’re using the Svea Checkout add-on and would like to disable the option in the widget to shop B2C, i.e. as a private customer “privatperson”, and only allow B2B shopping, i.e. as a company “företag”.
According to Svea, this is done by setting the preset value IsCompany
to true
and ReadOnly
:
"presetValues": [
{
"TypeName": "IsCompany",
"Value": "true",
"IsReadonly": true
}
]
In the Litium add-on accelerator files, it looks like SveaWidgetV1
CreatePaymentArgs
is configuring the Svea widget and would be the place to set this preset value. But I can’t find if “preset values” are configured in the OotB add-on, and I can’t see where I would add the “preset values” configuration. Something on the checkoutFlowInfo
perhaps.
It looks like this should end up in the createorder call in the createordermodel parameter. But I can’t figure out where the add-on is making this call and where the parameters are coming from.
Does anyone know?
Litium version: 7.6 + accelerator