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

#   \[REGLE\] Mise à disposition de la facture

##

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

Less More

- Posts: 17
- Thank you received: 0
-
-

14 years 9 months ago -  14 years 8 months ago [\#41237](#41237) by [banzai](/forum/user/5449-banzai "View banzai's Profile")  *[\[REGLE\] Mise à disposition de la facture](/forum/5-support-en-francais-french-support-/41237-regle-mise-a-disposition-de-la-facture#41237 "Bonjour,  Est-il possible de mettre à disposition de la facture seulement si le statut de la commande est &quot;envoyée&quot; ou &quot;validée&quot; ou au statut à choisir ?  Car même étant &quot;annulée&quot;, le client peut toujours imprimer une facture.  D'avance merci")* was created by *[banzai](/forum/user/5449-banzai "View banzai's Profile")*

Bonjour,

Est-il possible de mettre à disposition de la facture seulement si le statut de la commande est "envoyée" ou "validée" ou au statut à choisir ?

Car même étant "annulée", le client peut toujours imprimer une facture.

D'avance merci

Last edit: 14 years 8 months ago by [banzai](/forum/user/5449-banzai "View banzai's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDEyMzctcmVnbGUtbWlzZS1hLWRpc3Bvc2l0aW9uLWRlLWxhLWZhY3R1cmU/dG1wbD1tYXJrZG93bg==) 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: 86593
- Thank you received: 14334
-
-

14 years 9 months ago [\#41417](#41417) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Mise à disposition de la facture](/forum/5-support-en-francais-french-support-/41237-regle-mise-a-disposition-de-la-facture#41417 "Bonjour,  Est-il possible de mettre à disposition de la facture seulement si le statut de la commande est &quot;envoyée&quot; ou &quot;validée&quot; ou au statut à choisir ?  Car même étant &quot;annulée&quot;, le client peut toujours imprimer une facture.  D'avance merci")*

Bonjour,

Oui. Changez la ligne: Code:

&lt;?php if(hikashop_level(1) &amp;&amp; $this-&gt;config-&gt;get('print_invoice_frontend')){ ?&gt;

en: Code:

&lt;?php if(hikashop_level(1) &amp;&amp; $this-&gt;config-&gt;get('print_invoice_frontend') &amp;&amp; !in_array($this-&gt;element-&gt;order_status,array('refunded','cancelled'))){ ?&gt;

dans le fichier "show" de la vue "order" du front end via le menu Affichage-&gt;vues.

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

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

Less More

- Posts: 17
- Thank you received: 0
-
-

14 years 8 months ago [\#42159](#42159) by [banzai](/forum/user/5449-banzai "View banzai's Profile")  Replied by *[banzai](/forum/user/5449-banzai "View banzai's Profile")* on topic *[Re: Mise à disposition de la facture](/forum/5-support-en-francais-french-support-/41237-regle-mise-a-disposition-de-la-facture#42159 "Bonjour,  Est-il possible de mettre à disposition de la facture seulement si le statut de la commande est &quot;envoyée&quot; ou &quot;validée&quot; ou au statut à choisir ?  Car même étant &quot;annulée&quot;, le client peut toujours imprimer une facture.  D'avance merci")*

Bonjour,

Merci bien pour l'interdiction d'imprimer si la commande est annulée.
Mais reste la question de savoir si on peut mettre à disposition la facture seulement si la commande est en statut "envoyée".

Pouvez-vous me dire comment faire ?

D'avance merci.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDEyMzctcmVnbGUtbWlzZS1hLWRpc3Bvc2l0aW9uLWRlLWxhLWZhY3R1cmU/dG1wbD1tYXJrZG93bg==) 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: 86593
- Thank you received: 14334
-
-

14 years 8 months ago [\#42354](#42354) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Mise à disposition de la facture](/forum/5-support-en-francais-french-support-/41237-regle-mise-a-disposition-de-la-facture#42354 "Bonjour,  Est-il possible de mettre à disposition de la facture seulement si le statut de la commande est &quot;envoyée&quot; ou &quot;validée&quot; ou au statut à choisir ?  Car même étant &quot;annulée&quot;, le client peut toujours imprimer une facture.  D'avance merci")*

Vous pouvez utiliser ce code dans ce cas:
Code:

&lt;?php if(hikashop_level(1) &amp;&amp; $this-&gt;config-&gt;get('print_invoice_frontend') &amp;&amp; in_array($this-&gt;element-&gt;order_status,array('shipped'))){ ?&gt;

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

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

Less More

- Posts: 17
- Thank you received: 0
-
-

14 years 8 months ago [\#42373](#42373) by [banzai](/forum/user/5449-banzai "View banzai's Profile")  Replied by *[banzai](/forum/user/5449-banzai "View banzai's Profile")* on topic *[Re: Mise à disposition de la facture](/forum/5-support-en-francais-french-support-/41237-regle-mise-a-disposition-de-la-facture#42373 "Bonjour,  Est-il possible de mettre à disposition de la facture seulement si le statut de la commande est &quot;envoyée&quot; ou &quot;validée&quot; ou au statut à choisir ?  Car même étant &quot;annulée&quot;, le client peut toujours imprimer une facture.  D'avance merci")*

C'est Nickel !!!
Merci bien. ![;)](/media/kunena/emoticons/24.png ";)")

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

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