Skip Shipping Step For A User Or Usergroup


We have a physical shop and to make sure everything goes smooth, we let people pay via the site. We have an account solely for that purpose - to handle physical shop purchases.

Because of this, the shipping step is not required (because people take it with them immediately). I want to disable the shipping step entirely for an user or user group - because at checkout it's annoying to have to push more buttons than necessary.

Can someone point me in the right direction as to what I have to do to fix this? Something that could go in my_changes would be very handy. The user group which I'm talking about is 'kassa'.

Thanks in advance!

All you need is to check Tygh::$app['session']['auth'] array for required user groups and set settings.Checkout.display_shipping_step setting to N

Registry::set('settings.Checkout.display_shipping_step', 'N');