Wie Sprachwechsler in Subshops anlegen um zwischen den Supshops zu wechseln?

Könnte so aussehen, wenn du die ganzen IFs- einmal entfernst.

{extends file="parent:widgets/index/shop_menu.tpl"}

{block name='frontend_index_actions_active_shop'}
        
            {block name='frontend_index_actions_active_shop_top_bar_language'}
                    
                        {block name="frontend_index_actions_active_shop_language_form_content"}
                            
                                    {$shop->getName()}
                                {block name="frontend_index_actions_active_shop_language_form_select"}
                                    
                                        
                                            {foreach $languages as $language}
                                                getId() === $shop->getId()}selected="selected"{/if}>
                                                    {$language->getName()}
                                                
                                            {/foreach}
                                            getId() === $shop->getId()}selected="selected"{/if}>
                                                Localhost
                                            
                                        
                                    
                                {/block}
                                
                                {block name="frontend_index_actions_active_shop_inline"}{/block}
                            
                        {/block}
                    
            {/block}
        
{/block}