n-inconito Posted September 20, 2012 Share Posted September 20, 2012 (edited) Bonjour à tous, Voila j'aimerais supprimer la déclinaison par défaut d'un produit. Pour le moment quand on va sur une fiche produit, on a la déclinaison par défaut qui s'affiche directement dans la liste (par exemple : Taille disponible : T38) J'aimerais à la place avoir par exemple : Taille disponible : "Choisir la taille" ou tout simplement un "-" Voici un exemple : Se sont les attributs. Ou dois-je changer le code ? et comment ? Un grand merci pour votre aide Edited September 20, 2012 by n-inconito (see edit history) Link to comment Share on other sites More sharing options...
Ether Création Posted September 21, 2012 Share Posted September 21, 2012 Bonjour, Vous pouvez soit créer un attributs vide, soit intervenir sur le tpl. Cordialement, Arthur Link to comment Share on other sites More sharing options...
b.b.b Posted January 6, 2015 Share Posted January 6, 2015 Hello n-incognito, J'imagine que tu te souviens même plus d'avoir posé cette question, mais si à tout hasard tu te souviens comment tu as fait, je suis preneur !!!! Merci d'avance b.b.b Link to comment Share on other sites More sharing options...
fred-vinapresta Posted January 6, 2015 Share Posted January 6, 2015 Il faudrait remplacer dans product.tpl <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:'html':'UTF-8'}">{$group_attribute|escape:'html':'UTF-8'}</option> par <option value="{$id_attribute|intval}" title="{$group_attribute|escape:'html':'UTF-8'}">{$group_attribute|escape:'html':'UTF-8'}</option> et avant cette ligne, ajouter: <option value="0">-</option> 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