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

#   Invoice question (date, PDF)

##

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

Less More

- Posts: 206
- Thank you received: 7
-
-

7 years 6 months ago [\#306766](#306766) by [c-line](/forum/user/30778-c-line "View c-line's Profile")  *[Invoice question (date, PDF)](/forum/35-orders-management/897504-invoice-question-date-pdf#306766 "-- HikaShop version -- : 4.1 -- Joomla version -- : 3.2  hello i am finishing to cutomize invoice display 1 i bought pdf invoice plugin, how to override ouput ? (backend and front-end) 2 i override show.php to display more information. How i can display payement date ? that the order&#95;modify ? regards")* was created by *[c-line](/forum/user/30778-c-line "View c-line's Profile")*

-- HikaShop version -- : 4.1
-- Joomla version -- : 3.2

hello i am finishing to cutomize invoice display
1 i bought pdf invoice plugin, how to override ouput ? (backend and front-end)
2 i override show.php to display more information. How i can display payement date ? that the order_modify ? regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5NzUwNC1pbnZvaWNlLXF1ZXN0aW9uLWRhdGUtcGRmP3RtcGw9bWFya2Rvd24=) 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: 86583
- Thank you received: 14324
-
-

7 years 6 months ago [\#306767](#306767) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Invoice question (date, PDF)](/forum/35-orders-management/897504-invoice-question-date-pdf#306767 "-- HikaShop version -- : 4.1 -- Joomla version -- : 3.2  hello i am finishing to cutomize invoice display 1 i bought pdf invoice plugin, how to override ouput ? (backend and front-end) 2 i override show.php to display more information. How i can display payement date ? that the order&#95;modify ? regards")*

Hi,

1. With the PDF invoice, you want to edit the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php

2. it's the order_invoice_created variable you want to use. That variable contains the date of the creation of the invoice number (which is created when the order changes to one of the statuses enabled under the "invoice" column of the System&gt;Order statuses menu, which is normally when the order is confirmed, after the payment is done).
There is actually already that code in order/show.php : Code:

echo JText::_('DATE').': '.hikashop_getDate($this-&gt;element-&gt;order_invoice_created, '%d %B %Y');

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

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

Less More

- Posts: 206
- Thank you received: 7
-
-

7 years 6 months ago -  7 years 6 months ago [\#306793](#306793) by [c-line](/forum/user/30778-c-line "View c-line's Profile")  Replied by *[c-line](/forum/user/30778-c-line "View c-line's Profile")* on topic *[Invoice question (date, PDF)](/forum/35-orders-management/897504-invoice-question-date-pdf#306793 "-- HikaShop version -- : 4.1 -- Joomla version -- : 3.2  hello i am finishing to cutomize invoice display 1 i bought pdf invoice plugin, how to override ouput ? (backend and front-end) 2 i override show.php to display more information. How i can display payement date ? that the order&#95;modify ? regards")*

1 pas besoins d'override on est safe niveua update ?
2 je pourrais aussi avoir la date d'envoi (changement de statut)?
3 je calcul des frais de pénalité sur la facture en prenant la date de paiement et en y ajoutant 1 mois Code:

&lt;?php $date1 = hikashop_getDate($this-&gt;element-&gt;order_modified, '%d %B %Y'); echo date('j F Y',strtotime('+1 month',strtotime($date1))); ?&gt;

le soucis c'est que la date qui sort est en anglais .. une idée ?
Merci

Last edit: 7 years 6 months ago by [c-line](/forum/user/30778-c-line "View c-line's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5NzUwNC1pbnZvaWNlLXF1ZXN0aW9uLWRhdGUtcGRmP3RtcGw9bWFya2Rvd24=) 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: 86583
- Thank you received: 14324
-
-

7 years 6 months ago [\#306801](#306801) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Invoice question (date, PDF)](/forum/35-orders-management/897504-invoice-question-date-pdf#306801 "-- HikaShop version -- : 4.1 -- Joomla version -- : 3.2  hello i am finishing to cutomize invoice display 1 i bought pdf invoice plugin, how to override ouput ? (backend and front-end) 2 i override show.php to display more information. How i can display payement date ? that the order&#95;modify ? regards")*

Bonjour,

1. Si vous installez à nouveau le plugin, vous perdrez les modifications. Mais si vous mettez à jour HikaShop vous ne les perdrez pas vu que le plugin n'est pas inclu dans HikaShop.
Vous pouvez aussi copier le fichier dans media/com_hikashop/plugins/ pour avoir un override.

2. Dans order_modified, vous avez la date de la dernière modification de la commande. Ce n'est pas vraiment la date d'envoi. Ca peut l'être dans certains cas.
Le mieux, ce serait de charger l'historique de la commande dans hikashop_history et de récupérer la date de la première entrée de l'historique avec le statut "envoyé". Ainsi, vous aurez la bonne date à coup sûr, mais cela demande un peu de développement PHP/MySQL dans la vue.

3. Au lieu de :
echo date('j F Y',strtotime('+1 month',strtotime($date1)));
essayez plutôt:
echo hikashop_getDate(strtotime('+1 month',strtotime($date1)), '%d %B %Y');

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