J'ai fais deux façons de renseigner ces informations.
La première étant de mettre les dimensions sur plusieurs lignes.Dans le fichier :
catalog/controller/product/product.php,
Chercher cette ligne :
- Code: Tout sélectionner
$this->data['text_model'] = $this->language->get('text_model');
Et ajouter ces lignes dessous :
- Code: Tout sélectionner
$this->data['text_dimensions'] = $this->language->get('text_dimensions');
$this->data['text_length'] = $this->language->get('text_length');
$this->data['text_width'] = $this->language->get('text_width');
$this->data['text_height'] = $this->language->get('text_height');
Chercher cette ligne :
- Code: Tout sélectionner
$this->data['model'] = $product_info['model'];
Et ajouter ces lignes dessous :
- Code: Tout sélectionner
$this->data['length'] = $product_info['length'];
$this->data['width'] = $product_info['width'];
$this->data['height'] = $product_info['height'];
Dans le fichier :
catalog/language/french/product/product.php,
Chercher cette ligne :
- Code: Tout sélectionner
$_['text_model'] = 'Modèle :';
Et ajouter ces lignes dessous :
- Code: Tout sélectionner
$_['text_dimensions'] = 'Dimensions (en centimètres)';
$_['text_length'] = 'Longueur :';
$_['text_width'] = 'Largeur :';
$_['text_height'] = 'Hauteur :';
Dans le fichier :
catalog/view/theme/default/template/product/product.tpl,
Chercher ces lignes :
- Code: Tout sélectionner
<tr>
<td><b><?php echo $text_model; ?></b></td>
<td><?php echo $model; ?></td>
</tr>
Et ajouter ces lignes dessous :
- Code: Tout sélectionner
<tr>
<td><b><u><?php echo $text_dimensions; ?></u></b></td>
</tr>
<tr>
<td><b><?php echo $text_length; ?></b></td>
<td><?php echo $length; ?></td>
</tr>
<tr>
<td><b><?php echo $text_width; ?></b></td>
<td><?php echo $width; ?></td>
</tr>
<tr>
<td><b><?php echo $text_height; ?></b></td>
<td><?php echo $height; ?></td>
</tr>
La seconde étant de mettre les dimensions sur une même ligne.Dans le fichier :
catalog/controller/product/product.php,
Chercher cette ligne :
- Code: Tout sélectionner
$this->data['text_model'] = $this->language->get('text_model');
Et ajouter ces lignes dessous :
- Code: Tout sélectionner
$this->data['text_dimensions'] = $this->language->get('text_dimensions');
$this->data['text_by'] = $this->language->get('text_by');
Chercher cette ligne :
- Code: Tout sélectionner
$this->data['model'] = $product_info['model'];
Et ajouter ces lignes dessous :
- Code: Tout sélectionner
$this->data['length'] = $product_info['length'];
$this->data['width'] = $product_info['width'];
$this->data['height'] = $product_info['height'];
Dans le fichier :
catalog/language/french/product/product.php,
Chercher cette ligne :
- Code: Tout sélectionner
$_['text_model'] = 'Modèle :';
Et ajouter ces lignes dessous :
- Code: Tout sélectionner
$_['text_dimensions'] = 'Dimensions (L x l x H) :';
$_['text_by'] = ' x ';
Dans le fichier :
catalog/view/theme/default/template/product/product.tpl,
Chercher ces lignes :
- Code: Tout sélectionner
<tr>
<td><b><?php echo $text_model; ?></b></td>
<td><?php echo $model; ?></td>
</tr>
Et ajouter ces lignes dessous :
- Code: Tout sélectionner
<tr>
<td><b><?php echo $text_dimensions; ?></b></td>
<td><?php echo $length; ?><?php echo $text_by; ?><?php echo $width; ?><?php echo $text_by; ?> <?php echo $height; ?></td>
</tr>
It's all.