[Skip to main content](#vessel-content)

#   Affichage du tarif dans la fiche produit

##

- **[Touten1](/forum/user/122-touten1 "View Touten1's Profile")**
- [![Touten1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar122.jpg)](/forum/user/122-touten1 "View Touten1's Profile") Topic Author
- [ Offline](/forum/user/122-touten1)

Less More

- Posts: 14
- Thank you received: 1
-
-

14 years 9 months ago [\#38433](#38433) by [Touten1](/forum/user/122-touten1 "View Touten1's Profile")  *[Affichage du tarif dans la fiche produit](/forum/5-support-en-francais-french-support-/38433-affichage-du-tarif-dans-la-fiche-produit#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 ..")* was created by *[Touten1](/forum/user/122-touten1 "View Touten1's Profile")*

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 ![:)](/media/kunena/emoticons/3.png ":)") mais bon je vais pas pousser ... ![;)](/media/kunena/emoticons/24.png ";)")

Merci beaucoup en tout cas ..

---

**TOUT EN 1**
Gestion de sites Internet
[ Touten1.frhttp://www.touten1.fr](http://www.touten1.fr)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMzg0MzMtYWZmaWNoYWdlLWR1LXRhcmlmLWRhbnMtbGEtZmljaGUtcHJvZHVpdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

14 years 9 months ago [\#38462](#38462) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Affichage du tarif dans la fiche produit](/forum/5-support-en-francais-french-support-/38433-affichage-du-tarif-dans-la-fiche-produit#38462 "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 ..")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMzg0MzMtYWZmaWNoYWdlLWR1LXRhcmlmLWRhbnMtbGEtZmljaGUtcHJvZHVpdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Touten1](/forum/user/122-touten1 "View Touten1's Profile")**
- [![Touten1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar122.jpg)](/forum/user/122-touten1 "View Touten1's Profile") Topic Author
- [ Offline](/forum/user/122-touten1)

Less More

- Posts: 14
- Thank you received: 1
-
-

14 years 9 months ago [\#38537](#38537) by [Touten1](/forum/user/122-touten1 "View Touten1's Profile")  Replied by *[Touten1](/forum/user/122-touten1 "View Touten1's Profile")* on topic *[Re: Affichage du tarif dans la fiche produit](/forum/5-support-en-francais-french-support-/38433-affichage-du-tarif-dans-la-fiche-produit#38537 "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 ..")*

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 ![;)](/media/kunena/emoticons/24.png ";)")

---

**TOUT EN 1**
Gestion de sites Internet
[ Touten1.frhttp://www.touten1.fr](http://www.touten1.fr)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMzg0MzMtYWZmaWNoYWdlLWR1LXRhcmlmLWRhbnMtbGEtZmljaGUtcHJvZHVpdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Touten1](/forum/user/122-touten1 "View Touten1's Profile")**
- [![Touten1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar122.jpg)](/forum/user/122-touten1 "View Touten1's Profile") Topic Author
- [ Offline](/forum/user/122-touten1)

Less More

- Posts: 14
- Thank you received: 1
-
-

14 years 9 months ago [\#38538](#38538) by [Touten1](/forum/user/122-touten1 "View Touten1's Profile")  Replied by *[Touten1](/forum/user/122-touten1 "View Touten1's Profile")* on topic *[Re: Affichage du tarif dans la fiche produit](/forum/5-support-en-francais-french-support-/38433-affichage-du-tarif-dans-la-fiche-produit#38538 "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 ..")*

Trouvé ! ![:P](/media/kunena/emoticons/14.png ":P")
c'est à la ligne 25 :

> if($this-&gt;params-&gt;get('price\_with\_tax')){
> echo $this-&gt;currencyHelper-&gt;format($price-&gt;price\_value\_with\_tax,$price-&gt;price\_currency\_id);
> }
> if($this-&gt;params-&gt;get('price\_with\_tax')==2){
> echo JText::\_('PRICE\_BEFORE\_TAX');
> }
> if($this-&gt;params-&gt;get('price\_with\_tax')==2\|\|!$this-&gt;params-&gt;get('price\_with\_tax')){
> echo $this-&gt;currencyHelper-&gt;format($price-&gt;price\_value,$price-&gt;price\_currency\_id);
> }
> if($this-&gt;params-&gt;get('price\_with\_tax')==2){
> echo JText::\_('PRICE\_AFTER\_TAX');

il faut transformer comme ça :

> if($this-&gt;params-&gt;get('price\_with\_tax')==2){
> echo JText::\_('PRICE\_BEFORE\_TAX');
> }
> if($this-&gt;params-&gt;get('price\_with\_tax')==2\|\|!$this-&gt;params-&gt;get('price\_with\_tax')){
> echo $this-&gt;currencyHelper-&gt;format($price-&gt;price\_value,$price-&gt;price\_currency\_id);
> }
> if($this-&gt;params-&gt;get('price\_with\_tax')==2){
> echo JText::\_('PRICE\_AFTER\_TAX');
> }
> if($this-&gt;params-&gt;get('price\_with\_tax')){
> echo $this-&gt;currencyHelper-&gt;format($price-&gt;price\_value\_with\_tax,$price-&gt;price\_currency\_id);
> }

et ça marche !!! ![:)](/media/kunena/emoticons/3.png ":)")
Merci beaucoup pour l'excellente piste !

---

**TOUT EN 1**
Gestion de sites Internet
[ Touten1.frhttp://www.touten1.fr](http://www.touten1.fr)

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMzg0MzMtYWZmaWNoYWdlLWR1LXRhcmlmLWRhbnMtbGEtZmljaGUtcHJvZHVpdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
