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

#   Affichage "HT"

##

- **[arveni](/forum/user/33539-arveni "View arveni's Profile")**
- [![arveni's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/33539-arveni "View arveni's Profile") Topic Author
- [ Offline](/forum/user/33539-arveni)

Less More

- Posts: 79
- Thank you received: 0
-
-

12 years 1 month ago [\#171203](#171203) by [arveni](/forum/user/33539-arveni "View arveni's Profile")  *[Affichage "HT"](/forum/5-support-en-francais-french-support-/871058-affichage-ht#171203 "-- HikaShop version -- : 2.3.2  Bonjour,  Je souhaiterai afficher &quot;HT&quot; ou &quot;TTC&quot; sur les prix quand un seul des 2 n'est affiché. En effet le HT apparait uniquement quand je coche l'option &quot;afficher les 2 prix avec et sans taxe  J'ai regardé pour éditer le fichier &quot;listing price&quot; . il fait bien référence à la variable PRICE&#95;AFTER&#95;TAX mais j'avoue ne pas tout comprendre. Quelqu'un saurait ou ajouter du code pour résoudre ce problème?")* was created by *[arveni](/forum/user/33539-arveni "View arveni's Profile")*

-- HikaShop version -- : 2.3.2

Bonjour,

Je souhaiterai afficher "HT" ou "TTC" sur les prix quand un seul des 2 n'est affiché. En effet le HT apparait uniquement quand je coche l'option "afficher les 2 prix avec et sans taxe

J'ai regardé pour éditer le fichier "listing price" . il fait bien référence à la variable PRICE_AFTER_TAX mais j'avoue ne pas tout comprendre. Quelqu'un saurait ou ajouter du code pour résoudre ce problème?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 1 month ago [\#171260](#171260) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Affichage "HT"](/forum/5-support-en-francais-french-support-/871058-affichage-ht#171260 "-- HikaShop version -- : 2.3.2  Bonjour,  Je souhaiterai afficher &quot;HT&quot; ou &quot;TTC&quot; sur les prix quand un seul des 2 n'est affiché. En effet le HT apparait uniquement quand je coche l'option &quot;afficher les 2 prix avec et sans taxe  J'ai regardé pour éditer le fichier &quot;listing price&quot; . il fait bien référence à la variable PRICE&#95;AFTER&#95;TAX mais j'avoue ne pas tout comprendre. Quelqu'un saurait ou ajouter du code pour résoudre ce problème?")*

Bonjour,

Il faudra ajouter du code personnalisé afin d'afficher HT ou TTC selon le prix affiché.
Quelque chose comme cela à la fin de la vue: Code:

if($this-&gt;params-&gt;get('price_with_tax') == 1){ echo "TTC"; }else{ echo "HT"; }

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

- **[arveni](/forum/user/33539-arveni "View arveni's Profile")**
- [![arveni's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/33539-arveni "View arveni's Profile") Topic Author
- [ Offline](/forum/user/33539-arveni)

Less More

- Posts: 79
- Thank you received: 0
-
-

12 years 1 month ago [\#172110](#172110) by [arveni](/forum/user/33539-arveni "View arveni's Profile")  Replied by *[arveni](/forum/user/33539-arveni "View arveni's Profile")* on topic *[Affichage "HT"](/forum/5-support-en-francais-french-support-/871058-affichage-ht#172110 "-- HikaShop version -- : 2.3.2  Bonjour,  Je souhaiterai afficher &quot;HT&quot; ou &quot;TTC&quot; sur les prix quand un seul des 2 n'est affiché. En effet le HT apparait uniquement quand je coche l'option &quot;afficher les 2 prix avec et sans taxe  J'ai regardé pour éditer le fichier &quot;listing price&quot; . il fait bien référence à la variable PRICE&#95;AFTER&#95;TAX mais j'avoue ne pas tout comprendre. Quelqu'un saurait ou ajouter du code pour résoudre ce problème?")*

Bonjour,

Un numéro de ligne me serait bien utile

Je souhaiterai que le HT apparaisse à la fois dans le listing des produits et dans la fiche description produit. svp

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

12 years 1 month ago [\#172149](#172149) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Affichage "HT"](/forum/5-support-en-francais-french-support-/871058-affichage-ht#172149 "-- HikaShop version -- : 2.3.2  Bonjour,  Je souhaiterai afficher &quot;HT&quot; ou &quot;TTC&quot; sur les prix quand un seul des 2 n'est affiché. En effet le HT apparait uniquement quand je coche l'option &quot;afficher les 2 prix avec et sans taxe  J'ai regardé pour éditer le fichier &quot;listing price&quot; . il fait bien référence à la variable PRICE&#95;AFTER&#95;TAX mais j'avoue ne pas tout comprendre. Quelqu'un saurait ou ajouter du code pour résoudre ce problème?")*

Bonjour,

Xavier indique dans son message d'ajouter ce code à la fin du fichier.
Dans mon cas c'est la ligne 200.
N'oubliez pas les balises &lt;?php et ?&gt; autour du code que vous ajoutez car sinon cela ne fonctionnera pas.

The following user(s) said Thank You: [arveni](/forum/user/33539-arveni "View arveni's Profile")

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

- **[arveni](/forum/user/33539-arveni "View arveni's Profile")**
- [![arveni's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/33539-arveni "View arveni's Profile") Topic Author
- [ Offline](/forum/user/33539-arveni)

Less More

- Posts: 79
- Thank you received: 0
-
-

12 years 1 month ago [\#173696](#173696) by [arveni](/forum/user/33539-arveni "View arveni's Profile")  Replied by *[arveni](/forum/user/33539-arveni "View arveni's Profile")* on topic *[Affichage "HT"](/forum/5-support-en-francais-french-support-/871058-affichage-ht#173696 "-- HikaShop version -- : 2.3.2  Bonjour,  Je souhaiterai afficher &quot;HT&quot; ou &quot;TTC&quot; sur les prix quand un seul des 2 n'est affiché. En effet le HT apparait uniquement quand je coche l'option &quot;afficher les 2 prix avec et sans taxe  J'ai regardé pour éditer le fichier &quot;listing price&quot; . il fait bien référence à la variable PRICE&#95;AFTER&#95;TAX mais j'avoue ne pas tout comprendre. Quelqu'un saurait ou ajouter du code pour résoudre ce problème?")*

Bonjour,

Merci j'ai bien réussi à le mettre en place le HT

Aujourd'hui je souhaiterai ajouter un champ personnalisé "(prix public)" à la suite de HT donc dans le fichier listing_price.php. Quel est le code pour insérer un champs personnalisé dans ce fichier. (J'ai mis le champs dans la table produit.)

J'ai crée un champs personnalisé car je souhaite l'appliquer à une certaine catégorie et il me faut une traduction pour le site en anglais

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 1 month ago [\#173700](#173700) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Affichage "HT"](/forum/5-support-en-francais-french-support-/871058-affichage-ht#173700 "-- HikaShop version -- : 2.3.2  Bonjour,  Je souhaiterai afficher &quot;HT&quot; ou &quot;TTC&quot; sur les prix quand un seul des 2 n'est affiché. En effet le HT apparait uniquement quand je coche l'option &quot;afficher les 2 prix avec et sans taxe  J'ai regardé pour éditer le fichier &quot;listing price&quot; . il fait bien référence à la variable PRICE&#95;AFTER&#95;TAX mais j'avoue ne pas tout comprendre. Quelqu'un saurait ou ajouter du code pour résoudre ce problème?")*

Bonjour,

Vous pouvez utiliser le code suivant: Code:

&lt;?php echo $this-&gt;element-&gt;CUSTOMFIELD_NAME; ?&gt;

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

- **[arveni](/forum/user/33539-arveni "View arveni's Profile")**
- [![arveni's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/33539-arveni "View arveni's Profile") Topic Author
- [ Offline](/forum/user/33539-arveni)

Less More

- Posts: 79
- Thank you received: 0
-
-

12 years 1 month ago -  12 years 1 month ago [\#173857](#173857) by [arveni](/forum/user/33539-arveni "View arveni's Profile")  Replied by *[arveni](/forum/user/33539-arveni "View arveni's Profile")* on topic *[Affichage "HT"](/forum/5-support-en-francais-french-support-/871058-affichage-ht#173857 "-- HikaShop version -- : 2.3.2  Bonjour,  Je souhaiterai afficher &quot;HT&quot; ou &quot;TTC&quot; sur les prix quand un seul des 2 n'est affiché. En effet le HT apparait uniquement quand je coche l'option &quot;afficher les 2 prix avec et sans taxe  J'ai regardé pour éditer le fichier &quot;listing price&quot; . il fait bien référence à la variable PRICE&#95;AFTER&#95;TAX mais j'avoue ne pas tout comprendre. Quelqu'un saurait ou ajouter du code pour résoudre ce problème?")*

Je viens d'essayer et ça ne marche pas malheureusement.

Pour le moment je m'en suis sorti avec la variable PER_UNIT que j'ai déplacé à la fin du code en ajoutant

Code:

echo JText::_('PER_UNIT');

une autre solution?

Last edit: 12 years 1 month ago by [arveni](/forum/user/33539-arveni "View arveni's Profile").

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

12 years 4 weeks ago [\#173883](#173883) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Affichage "HT"](/forum/5-support-en-francais-french-support-/871058-affichage-ht#173883 "-- HikaShop version -- : 2.3.2  Bonjour,  Je souhaiterai afficher &quot;HT&quot; ou &quot;TTC&quot; sur les prix quand un seul des 2 n'est affiché. En effet le HT apparait uniquement quand je coche l'option &quot;afficher les 2 prix avec et sans taxe  J'ai regardé pour éditer le fichier &quot;listing price&quot; . il fait bien référence à la variable PRICE&#95;AFTER&#95;TAX mais j'avoue ne pas tout comprendre. Quelqu'un saurait ou ajouter du code pour résoudre ce problème?")*

Dans le code de Xavier, il faut remplacer CUSTOMFIELD_NAME par le nom de colonne du champs personnalisé avec la même casse, sinon cela ne fonctionnera pas.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODcxMDU4LWFmZmljaGFnZS1odD90bXBsPW1hcmtkb3du) 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.119 seconds

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

[](#top)
