- Posts: 14
- Thank you received: 1
Affichage du tarif dans la fiche produit
Je cherche à intervertir le prix hors taxe et le prix TTC dans la présentation de ma fiche,
je pense que c'est dans le show.php mais je n'arrive pas à trouver quelle ligne modifier ...
affichage actuel :
119,60 € (100,00 € h.t.)
je préférerai :
100 € h.t.
119,60 €
le top serait de pouvoir attribuer une classe css au tarif ht
Merci beaucoup en tout cas ..
TOUT EN 1
Gestion de sites Internet
Touten1.frhttp://www.touten1.fr
Please Log in or Create an account to join the conversation.
La vue avec le prix est "product / listing_price".
Elle est utilisée par "product / show" mais aussi par "product / listing" afin d'être au maximum homogène.
Cordialement,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Par contre je ne vois pas comment changer l'ordre d'affichage (inverser le HT et le TTC, j'ai bien compris que tout ce jouait entre la ligne 22 et 54 mais je n'arrive pas à changer l'ordre... je cherche, je cherche
TOUT EN 1
Gestion de sites Internet
Touten1.frhttp://www.touten1.fr
Please Log in or Create an account to join the conversation.
c'est à la ligne 25 :
if($this->params->get('price_with_tax')){
echo $this->currencyHelper->format($price->price_value_with_tax,$price->price_currency_id);
}
if($this->params->get('price_with_tax')==2){
echo JText::_('PRICE_BEFORE_TAX');
}
if($this->params->get('price_with_tax')==2||!$this->params->get('price_with_tax')){
echo $this->currencyHelper->format($price->price_value,$price->price_currency_id);
}
if($this->params->get('price_with_tax')==2){
echo JText::_('PRICE_AFTER_TAX');
il faut transformer comme ça :
if($this->params->get('price_with_tax')==2){
echo JText::_('PRICE_BEFORE_TAX');
}
if($this->params->get('price_with_tax')==2||!$this->params->get('price_with_tax')){
echo $this->currencyHelper->format($price->price_value,$price->price_currency_id);
}
if($this->params->get('price_with_tax')==2){
echo JText::_('PRICE_AFTER_TAX');
}
if($this->params->get('price_with_tax')){
echo $this->currencyHelper->format($price->price_value_with_tax,$price->price_currency_id);
}
et ça marche !!!
Merci beaucoup pour l'excellente piste !
TOUT EN 1
Gestion de sites Internet
Touten1.frhttp://www.touten1.fr
Please Log in or Create an account to join the conversation.