Cream77 Posted December 9, 2020 Share Posted December 9, 2020 Salut la team petite question intégration Front est ce que quelqu'un saurait comment changer le "type" de choix couleurs ? trasformer imput couleur > en select ? Couleur : {foreach from=$group.attributes key=id_attribute item=group_attribute} <label class="label-color"> <input class="input-color d--none" type="radio" data-product-attribute="{$id_attribute_group}" name="group[{$id_attribute_group}]" value="{$id_attribute}"{if $group_attribute.selected} checked="checked"{/if}> <span {if $group_attribute.html_color_code && !$group_attribute.texture}class="color" style="background-color: {$group_attribute.html_color_code}" {/if} {if $group_attribute.texture}class="color texture" style="background-image: url({$group_attribute.texture})" {/if} ><span class="sr-only">{$group_attribute.name}</span></span> </label> {/foreach} Select classique : <select class="custom-select w-auto" id="group_{$id_attribute_group}" data-product-attribute="{$id_attribute_group}" name="group[{$id_attribute_group}]"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <option value="{$id_attribute}" title="{$group_attribute.name}"{if $group_attribute.selected} selected="selected"{/if}>{$group_attribute.name}</option> {/foreach} </select> Merci pour votre aide Link to comment Share on other sites More sharing options...
Mediacom87 Posted December 9, 2020 Share Posted December 9, 2020 Link to comment Share on other sites More sharing options...
Cream77 Posted December 9, 2020 Author Share Posted December 9, 2020 merci pour ton retour mais avec ce syteme je perd la pastille de couleur et j'aurais uniquement le nom Link to comment Share on other sites More sharing options...
HeineFR Posted December 9, 2020 Share Posted December 9, 2020 C'est justement l'inconvénient d'un select.... Il va falloir passer par un module spécifique en modifiant le template afficher vous ne ferez que forcer un select sans couleur. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now