Affichage du tarif dans la fiche produit

  • Posts: 14
  • Thank you received: 1
12 years 2 months ago #38433

Bien le bonjour,
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 :) mais bon je vais pas pousser ... ;)

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.

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
12 years 2 months ago #38462

Bonjour,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 1
12 years 2 months ago #38537

Trouvé et localisé ! merci beaucoup !!!

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.

  • Posts: 14
  • Thank you received: 1
12 years 2 months ago #38538

Trouvé ! :P
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
The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum