@rthur Posted November 14, 2019 Share Posted November 14, 2019 (edited) Bonjour. Je suis sous prestashop 1.7.5 et je souhaiterais pouvoir proposer 2 variantes possibles sur certains produits. Par exemple la taille de la table et sur roulettes ou non. Le problème c'est qu'en sélectionnant tous les attributs dans la partie déclinaison, il ne m'affiche qu'une seule déclinaisons possible et pas les 2. Avez-vous une idée? Voici mon fichier product-variant.tpl {strip} <div class="product-variants"> {hook h='displayProductPageStockIndicator' product=$product} {foreach from=$groups key=id_attribute_group item=group} {if !empty($group.attributes)} <div class="clearfix product-variants-item"> <span class="control-label">{$group.name}</span> {if $group.group_type == 'select'} <select class="form-control form-control-select" 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> {/if} </div> {/if} {/foreach} </div> {/strip} Merci Edited November 14, 2019 by @rthur (see edit history) Link to comment Share on other sites More sharing options...
@rthur Posted November 14, 2019 Author Share Posted November 14, 2019 Ok merci. 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