Prestashop - Multi Shop Associations - Missing Group name
<p>Im making a multi shop module, the module saves / adds to the modules shop tables etc.</p>

<p>This part is fine.</p>

<p>I just have an issue with the GUI its missing the Group names, to me it looks like I'm missing something for a sprintf() I just see the %s and not the group name.</p>

<p>The image shows what I mean.</p>

<p><a href="https://i.stack.imgur.com/mtwr2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mtwr2.png" alt="enter image description here"></a></p>

<p>In my renderform function I have added.</p>

<pre><code>if (Shop::isFeatureActive()) 
    {
        $this-&gt;fields_form['input'][] = array(
            'type' =&gt; 'shop',
            'label' =&gt; $this-&gt;l('Shop association'),
            'name' =&gt; 'checkBoxShopAsso',
            'values' =&gt; Shop::getTree()
        );
    }
</code></pre>

<p>I wonder do i need to add anything else? all of the other modules I have look fine.</p>

<p>Thanks.</p>

<p>** Updated ** </p>

<p>Have just found the template, it is the sprintf() that is not working because if i relace the line it works fine.</p>

<pre><code>{*&lt;label class="tree-toggler"&gt;{l s='Group: %s' sprintf=$node['name']}&lt;/label&gt;*}
&lt;label class="tree-toggler"&gt;{$node['name']}&lt;/label&gt;
</code></pre>

<p>Any Ideas?</p>

<p>Thanks.</p>