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

#   admin invoice.php total HT

##

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

13 years 2 months ago [\#124096](#124096) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[admin invoice.php total HT](/forum/5-support-en-francais-french-support-/862124-admin-invoice-php-total-ht#124096 "-- HikaShop version -- : 221 -- Joomla version -- 2514  dans /administrator/templates/TPL/html/com&#95;hikashop/order/invoice.php il y a echo JText::&#95;( 'HIKASHOP&#95;TOTAL' )  comment a cet endroit je peux savoir que le prix a ete paye HT ou TTC ? pour ne pas afficher juste Total mais Total TTC ou Total HT quelle est la variable qui stocke la taxe qui doit etre à 0 en ce cas ?  merci")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

-- HikaShop version -- : 221
-- Joomla version -- 2514

dans /administrator/templates/TPL/html/com_hikashop/order/invoice.php il y a echo JText::_( 'HIKASHOP_TOTAL' )

comment a cet endroit je peux savoir que le prix a ete paye HT ou TTC ? pour ne pas afficher juste Total mais Total TTC ou Total HT
quelle est la variable qui stocke la taxe qui doit etre à 0 en ce cas ?

merci

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

13 years 2 months ago [\#124106](#124106) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[admin invoice.php total HT](/forum/5-support-en-francais-french-support-/862124-admin-invoice-php-total-ht#124106 "-- HikaShop version -- : 221 -- Joomla version -- 2514  dans /administrator/templates/TPL/html/com&#95;hikashop/order/invoice.php il y a echo JText::&#95;( 'HIKASHOP&#95;TOTAL' )  comment a cet endroit je peux savoir que le prix a ete paye HT ou TTC ? pour ne pas afficher juste Total mais Total TTC ou Total HT quelle est la variable qui stocke la taxe qui doit etre à 0 en ce cas ?  merci")*

Bonjour,

Vous pouvez le savoir grâce à la variable: Code:

$this-&gt;config-&gt;get('price_with_tax')

Si cela vaut "1" alors c'est TTC sinon c'est HT.

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

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

13 years 2 months ago -  13 years 2 months ago [\#124107](#124107) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[admin invoice.php total HT](/forum/5-support-en-francais-french-support-/862124-admin-invoice-php-total-ht#124107 "-- HikaShop version -- : 221 -- Joomla version -- 2514  dans /administrator/templates/TPL/html/com&#95;hikashop/order/invoice.php il y a echo JText::&#95;( 'HIKASHOP&#95;TOTAL' )  comment a cet endroit je peux savoir que le prix a ete paye HT ou TTC ? pour ne pas afficher juste Total mais Total TTC ou Total HT quelle est la variable qui stocke la taxe qui doit etre à 0 en ce cas ?  merci")*

merci mais où le placer , je ne récupère jamais la condition == 0

la seule maniere de le recuperer que j'ai trouve c'est dans le foreach ligne 137

if($product-&gt;order_product_tax == 0){
$notax = ' ' . JText::_('PRICE_WITHOUT_TAX_FULL');
}

si je fais ligne 370

&lt;?php echo JText::_( 'HIKASHOP_TOTAL' ) . ' -&gt;' . $this-&gt;config-&gt;get('price_with_tax'); ?&gt;

j'ai toujours la valeur = 1

Last edit: 13 years 2 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

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

13 years 2 months ago [\#124111](#124111) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[admin invoice.php total HT](/forum/5-support-en-francais-french-support-/862124-admin-invoice-php-total-ht#124111 "-- HikaShop version -- : 221 -- Joomla version -- 2514  dans /administrator/templates/TPL/html/com&#95;hikashop/order/invoice.php il y a echo JText::&#95;( 'HIKASHOP&#95;TOTAL' )  comment a cet endroit je peux savoir que le prix a ete paye HT ou TTC ? pour ne pas afficher juste Total mais Total TTC ou Total HT quelle est la variable qui stocke la taxe qui doit etre à 0 en ce cas ?  merci")*

Autant pour moi, ceci vient de la configuration générale, et en aucun cas ne montre comment la commande à été payée.

Pour le savoir il suffit de se baser sur la variables "$taxes".
Si cette dernière est à "0" alors la commande à été payée sans taxes et sinon avec taxes.

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

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

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

13 years 2 months ago [\#124112](#124112) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[admin invoice.php total HT](/forum/5-support-en-francais-french-support-/862124-admin-invoice-php-total-ht#124112 "-- HikaShop version -- : 221 -- Joomla version -- 2514  dans /administrator/templates/TPL/html/com&#95;hikashop/order/invoice.php il y a echo JText::&#95;( 'HIKASHOP&#95;TOTAL' )  comment a cet endroit je peux savoir que le prix a ete paye HT ou TTC ? pour ne pas afficher juste Total mais Total TTC ou Total HT quelle est la variable qui stocke la taxe qui doit etre à 0 en ce cas ?  merci")*

ca marche tres bien, merci Code:

&lt;td class="key"&gt; &lt;label&gt; &lt;?php if($taxes == 0){ $notax = ' ' . JText::_('PRICE_WITHOUT_TAX_FULL'); } echo JText::_( 'HIKASHOP_TOTAL' ) . $notax ; ?&gt; &lt;/label&gt; &lt;/td&gt;

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

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

13 years 2 months ago -  13 years 2 months ago [\#124366](#124366) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[admin invoice.php total HT](/forum/5-support-en-francais-french-support-/862124-admin-invoice-php-total-ht#124366 "-- HikaShop version -- : 221 -- Joomla version -- 2514  dans /administrator/templates/TPL/html/com&#95;hikashop/order/invoice.php il y a echo JText::&#95;( 'HIKASHOP&#95;TOTAL' )  comment a cet endroit je peux savoir que le prix a ete paye HT ou TTC ? pour ne pas afficher juste Total mais Total TTC ou Total HT quelle est la variable qui stocke la taxe qui doit etre à 0 en ce cas ?  merci")*

la variable $taxes marche très bien pour trouver si un total est avec ou sans taxes sur des prix sans réduction
mais des qu'un produits a une remise de 10% (par exemple) cette valeur $taxes est fausse une idée pourquoi ?

ert meme si dans le foreach des produits je fais

if($product-&gt;order_product_tax == 0){
$ht = 1;
}

ça me retourne $ht = 0 alors qu'on est dans les dom tom

Last edit: 13 years 2 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

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

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

13 years 1 month ago [\#124461](#124461) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[admin invoice.php total HT](/forum/5-support-en-francais-french-support-/862124-admin-invoice-php-total-ht#124461 "-- HikaShop version -- : 221 -- Joomla version -- 2514  dans /administrator/templates/TPL/html/com&#95;hikashop/order/invoice.php il y a echo JText::&#95;( 'HIKASHOP&#95;TOTAL' )  comment a cet endroit je peux savoir que le prix a ete paye HT ou TTC ? pour ne pas afficher juste Total mais Total TTC ou Total HT quelle est la variable qui stocke la taxe qui doit etre à 0 en ce cas ?  merci")*

aucune idée ?

je n'arrive pas a determiner à coup sur si le total est HT ou non avec cette variable $taxes, pouvez vous contrôler de votre cote sur un article qui aune réduction en % ?

merci

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

13 years 1 month ago [\#124514](#124514) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[admin invoice.php total HT](/forum/5-support-en-francais-french-support-/862124-admin-invoice-php-total-ht#124514 "-- HikaShop version -- : 221 -- Joomla version -- 2514  dans /administrator/templates/TPL/html/com&#95;hikashop/order/invoice.php il y a echo JText::&#95;( 'HIKASHOP&#95;TOTAL' )  comment a cet endroit je peux savoir que le prix a ete paye HT ou TTC ? pour ne pas afficher juste Total mais Total TTC ou Total HT quelle est la variable qui stocke la taxe qui doit etre à 0 en ce cas ?  merci")*

Bonjour,

Pourquoi ne pas se baser sur "order_product_total_price_no_vat" et "order_product_total_price" ?
La différence des deux devrait vous donner les informations sur les taxes. non ?

Cordialement,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

13 years 1 month ago [\#124587](#124587) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[admin invoice.php total HT](/forum/5-support-en-francais-french-support-/862124-admin-invoice-php-total-ht#124587 "-- HikaShop version -- : 221 -- Joomla version -- 2514  dans /administrator/templates/TPL/html/com&#95;hikashop/order/invoice.php il y a echo JText::&#95;( 'HIKASHOP&#95;TOTAL' )  comment a cet endroit je peux savoir que le prix a ete paye HT ou TTC ? pour ne pas afficher juste Total mais Total TTC ou Total HT quelle est la variable qui stocke la taxe qui doit etre à 0 en ce cas ?  merci")*

impossible de le récupérer de cette manière , ou d'une maniere directe

je suis obligé de faire
Code:

$hastax = 0; foreach($this-&gt;order-&gt;products as $product){ if ($product-&gt;order_product_tax &gt; 0){ $hastax = 1; }

je comprend mal qu'on n'ait pas une uniformité partout : cart , mail de notification de commande, facture dans l'admin

avec des variables les memes partout pour afficher

sous total
taxe
total

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

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