Change the current configuration to the given distributor or the company (if left empty).Note: Although there's a seamless transition to the distributor it should be used sparingly, as it creates new configurations in the background.
CfgrUtils.onBeforeCheckout(async () => { if (country === 'AT') { await CfgrUtils.changeDistributor('distributorAT'); }});
name of the distributor to switch to, or null to switch to company
true to copy all cfgn values (input), false to use an empty cfgn
Generated using TypeDoc
Change the current configuration to the given distributor or the company (if left empty).
Note: Although there's a seamless transition to the distributor it should be used sparingly, as it creates new configurations in the background.
Example