Bonjour,
un peu tard pour répondre mais je crois comprendre ton problème.
Si j'ai bien compris, dans Magento <=1.3.2.4 au moins, le sous-total de l'ensemble de la commande sera toujours en HT quel que soit la config.
Tu dois donc te contenter de traduire le texte en "sous-total HT" pour éviter la confusion.
Il faudrait à mon avis dans l'idéal modifier la fonction Mage/Checkout/Block/Cart/Totals.php pour arriver à tes fins : il existe probablement des modules qui le font.
Personnellement j'ai contourné le problème d'une autre façon :
Dans Système/configuration/Ventes/TVA/afficher/Afficher les prix de panier/commande en HT et TTC
Et je modifie le template checkout/total/default.phtml de façon à rajouter une colonne à droite pour que les sous-totaux HT se retrouvent dans la colonne HT et le montant global TTC dans la colonne TTC.
Biensûr cette modif ne fonctionne que si on choisit la config HT et TTC sinon les sous-totaux se retrouvent dans la colonne quantité : il faudrait idéalement tester la config.
Voici le code du de default.phtml.
| Code : |
<tr>
<td style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right" colspan="<?php echo $this->getTotal()->getArea()=='footer'?$this->getColspan():($this->getColspan()-1); ?>">
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
<?php echo $this->getTotal()->getTitle() ?>
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
</td>
<td style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right">
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
<?php echo $this->helper('checkout')->formatPrice($this->getTotal()->getValue()) ?>
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
</td>
<?php echo $this->getTotal()->getArea()=='footer'?'':'<td></td>'; ?>
</tr>
|