mickael6333 Posted September 5, 2011 Share Posted September 5, 2011 Bonjour je souhaiterai effacer les deux attribut suivant j'ai rajouter le code pour faire apparaitre l'attibut couleur a droite de "choisissez un coloris : <!-- colors --> <div id="color_picker"> <!-- attributes --> <div id="attributes"><p>{l s='Pick a color:' js=1} {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count} {assign var="groupName" value="group_$id_attribute_group"} <select name="{$groupName}" id="group_{$id_attribute_group|intval}" onchange="javascript:findCombination();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> </p> {/if} {/foreach} </div> <div class="clear"></div> je souhaiterai supprimer l'attribut taille (ci-joint photo) et suprimer l'attribut couleur dans le bloc ajouter au panier merci Link to comment Share on other sites More sharing options...
mickael6333 Posted September 5, 2011 Author Share Posted September 5, 2011 j'ai rajouter le code pour faire apparaitre l'attibut couleur a droite de "choisissez un coloris : <!-- colors --> <div id="color_picker"> <!-- attributes --> <div id="attributes"><p>{l s='Pick a color:' js=1} {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count} {assign var="groupName" value="group_$id_attribute_group"} <select name="{$groupName}" id="group_{$id_attribute_group|intval}" onchange="javascript:findCombination();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> </p> {/if} {/foreach} </div> <div class="clear"></div> je souhaiterai supprimer l'attribut taille (ci-joint photo) pour le code ajouter au panier <!-- attributes --> <div id="attributes"> {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count} <p> <label for="group_{$id_attribute_group|intval}">{$group.name|escape:'htmlall':'UTF-8'} :</label> {assign var="groupName" value="group_$id_attribute_group"} <select name="{$groupName}" id="group_{$id_attribute_group|intval}" onchange="javascript:findCombination();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> </p> {/if} {/foreach} </div> {/if} et supprimer l'attribut couleur dans le bloc ajouter au panier 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