Jump to content

Supprimer la déclinaison par défaut du produit | Liste avec un champs vide


Recommended Posts

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 :

liste-deroulante.jpg

 

Se sont les attributs. Ou dois-je changer le code ? et comment ?

 

Un grand merci pour votre aide

Edited by n-inconito (see edit history)
Link to comment
Share on other sites

  • 2 years later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...